aaronmaynard / Skyrim-Perk-Utility

Add / Reset your Skyrim perks using generated scripts with an easy to use graphical interface! :memo: :video_game:
https://aaronmaynard.github.io/Skyrim-Perk-Utility/
GNU General Public License v3.0
28 stars 19 forks source link

Download needs filename.txt #5

Closed aaronmaynard closed 6 years ago

aaronmaynard commented 6 years ago

First of all, Thank you for your help ❤️

The Issue

Currently when the user downloads the file in their desired browser, the file will show as "Download" (such as in Firefox). In order to run this script in the game they will first need to add a file extension, either .bat or .txt. This needs to be changed to show "addperk.txt" when initializing the download.

Your task is to fix the "Download" filename on the webpage, which you can view HERE.

$('#download-addperks').click(function() {
  return window.open("data:application/octet-stream," + (encodeURI(getAddPerksCode())));
});

This code is located in docs/js/app.js

I would start by checking on how to generate downloads with html and Javascript. Such an example would be this one

Contributing:

Asking for help

We appreciate your effort in taking the time to work on this issue and help out the open source community. If you need any help, feel free to ask below. We are always happy to help 😄

AlexanderInsulin commented 6 years ago

I'm want to do it

aaronmaynard commented 6 years ago

Fantastic! 💯