GM-Connor / KanjiSheets

Web-based tool for generating printable custom tracing sheets for Kanji
GNU General Public License v3.0
12 stars 1 forks source link

Running KanjiSheets locally without a web server #37

Open tinyapps opened 6 years ago

tinyapps commented 6 years ago

Running KanjiSheets locally without a web server displays the black kanji images, but not the gray tracing images:

KanjiSheets without tracings

Mozilla Firefox can display the tracing images when run locally by changing this line in kanjisheets.js:

url: "../kanji_paths/" + kanji + ".svg",

to:

url: "file:///your/absolute/path/to/kanji_paths/" + kanji + ".svg",

e.g.,

url: "file:///Users/user/Downloads/KanjiSheets-master/kanji_paths/" + kanji + ".svg",

resulting in:

KanjiSheets with tracings

Note that "Chrome denies all XMLHttpRequests to file:// URLs".