|
12 | 12 | <ul>
|
13 | 13 | <li>To begin, find a sudoku puzzle and input its values below.</li>
|
14 | 14 | <li style="float: right;"><a href="help.html" target="_blank" title="Open the documentation page.">Help/About</a></li>
|
15 |
| - <li style="float: right;" id="paste_puzzle"><a href="javascript:void(0);" onclick="pastePuzzle();" title="Paste values to place into the puzzle. Note: this overwrites existing values.">Paste puzzle</a></li> |
16 |
| - <li style="float: right;" id="save_puzzle"><a href="javascript:void(0);" onclick="savePuzzle();" title="Generate a text string that stores the current clues, values, and pencilmarks.">Save</a></li> |
| 15 | + <!-- <li style="float: right;"><a href="javascript:void(0);" onclick="pastePuzzle();" title="Paste values to place into the puzzle. Note: this overwrites existing values.">Paste puzzle</a></li> --> |
| 16 | + <!-- <li style="float: right;" id="save_puzzle"><a href="javascript:void(0);" onclick="savePuzzle();" title="Generate a text string that stores the current clues, values, and pencilmarks.">Save</a></li> --> |
| 17 | + <li style="float: right;" id="load_puzzle"><a href="javascript:void(0);" onclick="saveLoadPuzzle();" title="View options to save or load a sudoku puzzle.">Save/Load</a></li> |
17 | 18 | </ul>
|
18 | 19 | </div>
|
19 |
| - |
| 20 | + |
20 | 21 | <table id="grid_table">
|
21 | 22 | <tbody></tbody>
|
22 | 23 | </table>
|
23 |
| - |
| 24 | + |
24 | 25 | <div id="controls">
|
25 | 26 | <form name="controls_form">
|
26 | 27 | <!-- <div class="small_header" id="solving_status" title="Enter the sudoku puzzle's clues and click SUBMIT CLUES to begin solving.">Entering Clues...</div> -->
|
27 | 28 | <div class="small_header"><a href="help.html" target="_blank" title="Open the documentation page.">Help/About</a></div>
|
28 | 29 | <div class="small_header"><a href="javascript:void(0);" title="Delete all cell values, reset pencil marks, and remove highlighting." onclick="clearCells();">Clear Cells</a></div>
|
29 |
| - <div class="small_header"><a href="javascript:void(0);" title="Generate a text string that stores the current clues, values, and pencilmarks." onclick="savePuzzle();">Save</a></div> |
| 30 | + <!-- <div class="small_header"><a href="javascript:void(0);" title="Generate a text string that stores the current clues, values, and pencilmarks." onclick="savePuzzle();">Save</a></div> --> |
| 31 | + <div class="small_header"><a href="javascript:void(0);" title="View options to save or load a sudoku puzzle." onclick="saveLoadPuzzle();">Save/Load</a></div> |
30 | 32 | <!-- <ul>
|
31 | 33 | <li>
|
32 | 34 | <input type="button" name="clear_cells" value="Clear cells" title="Delete all clues and values, reset pencil marks, and remove highlighting." onclick="clearCells();" />
|
|
36 | 38 | <input type="button" name="paste_puzzle" id="paste_puzzle" value="Paste puzzle" title="Paste values to place into the puzzle. Note: this overwrites existing values." onclick="pastePuzzle();" />
|
37 | 39 | </li>
|
38 | 40 | </ul> -->
|
39 |
| - |
| 41 | + |
40 | 42 | <div class="small_header">Cell Highlighting:</div>
|
41 | 43 | <ul>
|
42 | 44 | <li>
|
|
52 | 54 | <input type="button" name="highlight_none" value="Clear" class="highlight_button" title="Clear all highlighting." onclick="highlight(0);" />
|
53 | 55 | </li>
|
54 | 56 | </ul>
|
55 |
| - |
| 57 | + |
56 | 58 | <div class="small_header">Pencil Marks:</div>
|
57 | 59 | <ul>
|
58 | 60 | <li>
|
|
69 | 71 | <input type="button" name="reset_pencilmarks" value="Reset" title="Add all pencil marks to empty cells." onclick="clearPencilmarks();" />
|
70 | 72 | </li>
|
71 | 73 | </ul>
|
72 |
| - |
| 74 | + |
73 | 75 | <div class="small_header">Validation:</div>
|
74 | 76 | <ul>
|
75 | 77 | <li>
|
|
78 | 80 | </li>
|
79 | 81 | <li></li>
|
80 | 82 | </ul>
|
81 |
| - |
| 83 | + |
82 | 84 | <div class="small_header">Guessing tools:</div>
|
83 | 85 | <!-- <ul>
|
84 | 86 | <li>
|
|
121 | 123 | </tr>
|
122 | 124 | </tbody>
|
123 | 125 | </table>
|
124 |
| - |
| 126 | + |
125 | 127 | <div class="small_header">Solution/Hints:</div>
|
126 | 128 | <ul>
|
127 | 129 | <li>
|
|
134 | 136 |
|
135 | 137 | </form>
|
136 | 138 | </div>
|
137 |
| - |
| 139 | + |
138 | 140 | <div id="begin_solving">
|
139 | 141 | <input type="button" value="Begin Solving" id="begin_solving_button" class="large_button" title="Submit the entered numbers as clues and begin solving the sudoku puzzle." onclick="submitGivens();" onmouseover="this.classList.add('large_button_hover'); this.classList.remove('large_button');" onmousedown="this.classList.add('large_button_hover'); this.classList.remove('large_button');" onmouseout="this.classList.add('large_button'); this.classList.remove('large_button_hover');" />
|
140 | 142 | </div>
|
| 143 | + |
| 144 | + <div id="side_bar"> |
| 145 | + <div id="side_bar_close"><a href="javascript:void(0);" onclick="document.getElementById('side_bar').style.right='-450px';">Close</a></div> |
| 146 | + |
| 147 | + <div class="small_header">Paste Puzzle:</div> |
| 148 | + <ul> |
| 149 | + <li>Enter a sudoku puzzle. Use "0", ".", "*", or "_" for empty cells. All other characters are ignored. This overwrites existing values.</li> |
| 150 | + <li> |
| 151 | + <input type="text" id="paste_puzzle" style="width: 300px;" title="Paste values to place into the puzzle. Note: this overwrites existing values."/> |
| 152 | + <input type="button" id="paste_puzzle_button" value="Paste Puzzle" onclick="pastePuzzle();" title="Paste values to place into the puzzle. Note: this overwrites existing values." /> |
| 153 | + </li> |
| 154 | + </ul> |
| 155 | + |
| 156 | + <div class="small_header">Copy Puzzle:</div> |
| 157 | + <ul> |
| 158 | + <li>Copy the current values of the sudoku puzzle as an 81 digit text string.</li> |
| 159 | + <li> |
| 160 | + <input type="text" id="copy_puzzle" style="width: 300px;" title="Copy the current values of the sudoku puzzle." onclick="this.value = cells.toString().replace(/[^0-9]/g, ''); javascript:select();" /> |
| 161 | + </li> |
| 162 | + </ul> |
| 163 | + |
| 164 | + <div class="small_header">Export State:</div> |
| 165 | + <ul> |
| 166 | + <li>Copy this text string and paste it into a new text file to store the current state of the clues, values, and pencilmarks.</li> |
| 167 | + <li> |
| 168 | + <input type="text" id="export_save" style="width: 300px;" title="This text string stores the current state of the clues, values, and pencilmarks." onclick="this.value = encode(); javascript:select();" /> |
| 169 | + </li> |
| 170 | + </ul> |
| 171 | + |
| 172 | + <div class="small_header">Import State:</div> |
| 173 | + <ul> |
| 174 | + <li>Reload a saved sudoku puzzle by pasting the text string below.</li> |
| 175 | + <li> |
| 176 | + <input type="text" id="import_save" style="width: 300px;" title="Reload an previous save. Note: this overwrites existing values."/> |
| 177 | + <input type="button" value="Import Save" id="import_save_button" onclick="decode(document.getElementById('import_save').value);" title="Reload an previous save. Note: this overwrites existing values." /> |
| 178 | + </li> |
| 179 | + </ul> |
| 180 | + |
| 181 | + <div class="small_header">Save/Load Cookie:</div> |
| 182 | + <ul> |
| 183 | + <li> |
| 184 | + <input type="button" value="Save to Cookie" id="save_cookie" onclick="saveToCookie();" title="Save the current state of the clues, values, and pencilmarks to a cookie."/> |
| 185 | + <input type="button" value="Load from Cookie" id="load_cookie" onclick="loadFromCookie();" title="Load the sudoku puzzle saved to a cookie if one is present." /> |
| 186 | + </li> |
| 187 | + </ul> |
| 188 | + </div> |
141 | 189 | </body>
|
142 | 190 | </html>
|
0 commit comments