Problem: How can I put multiple puzzles on my website, so each puzzle is on a different page?
The Word Search Puzzle and Sliding Tiles Puzzle are designed to have multiple puzzles on one page, allowing the user to select a puzzle from a drop down list of puzzles available. It was designed this way as it seemed the best way to make it easy for novice web space owners to maintain their puzzles on the web. However, if you are familiar with working with your web space, there are two different ways in which you may work around this limitation.
One workaround would be to put each web page into a different folder. You would then need to put your .html file, .js file, and .jar file into each folder, generating a different .js file for each folder using the Puzzle Designer.
Another workaround which would allow you to keep them all in one folder would be to generate the .js file with the Puzzle Designer but then rename the .js file to a unique name. You would then need to modify your .html file to import your new .js file -- this is done in the script tag in the head section of the .html file. Repeat this for each puzzle you generate with the designer. One advantage of this over the first suggestion is that you will not need to have multiple copies of the .jar file on your website.
Will the browser need to reload the .jar file for each puzzle?
No, the browser only loads the jar file once during a browser session, even if you have multiple copies of the jar file on your website. It will remain loaded for any puzzles that use a jar file by that name until all browser windows are closed. Upon reopening the browser windows, it will need to take the time to load the jar file again the next time they try to do a puzzle.
Keep in mind that if you have multiple copies of a jar file, it will only load the first copy of the jar file that required for a game, regardless if it is the newest version or not. Therefore, if you require multiple copies of a jar file for puzzles that you have on your different web pages, you should ensure that they are all the same version of the jar file.
|
Hosted By
Special offer |