refactor index.html and update readme

This commit is contained in:
malonehunter committed 2023-10-10 12:31:24 -04:00
1 parent ea2dedc153
commit a63b24c2d4
2 files changed
+9 -5

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ To learn more about how to use Hyperdope Gematria see the Quickstart Guide in th
This repo may be cloned as-is to your **web server** for self-hosting your own fully-featured gematira calulator with integrated database matching.
To add more words or phrases to the matching database append them as new lines to the db.txt.
To add more words or phrases to the matching database append them as new lines to the db.txt. To autoload a different properly formatted .txt file you can change the reference in the AUTO LOAD DATABASE (DB) section at the bottom of index.html.s
> NOTE: You must run this app from a web server for the word matching database to autoload due to the way browsers handle local file security. Please see [this CORS error article](https://stackoverflow.com/questions/58879729/access-to-xmlhttprequest-at-file-sample-txt-from-origin-null-blocked-by-c) for more information. A quick way to run db matching offline locally is to open the project folder in VS Code and launch it with the Live Server extension.
+8 -4
View File
@@ -97,17 +97,21 @@ $(window).load(function(){
<script src="calc/coderain.js"></script>
<script src="lib/html2canvas.min.js"></script>
<!-- AUTO LOAD DATABASE (DB) -->
<!-- To change the word matching database, reference a differnt file in the script below or append lined to db.txt -->
<!-- Initialzie the calculator. This needs to run before loading a database or theme. -->
<script>
initCalc(true);
</script>
<!-- AUTO LOAD DATABASE (DB) -->
<!-- To change the word matching database reference a different file in the script below or append lines to db.txt -->
<script>
var database = loadFile('db.txt');
importFileAction(database, true);
</script>
<!-- AUTO LOAD THEME -->
<!-- To change the theme, uncomment the script below -->
<!-- To change the theme uncomment the script below -->
<!-- <script>
var theme = loadFile('theme/white-interface.js');