blob: 97d7f46105e9ff6ccbb640f47bdafdc4f7867656 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<html><head><script>
function save() {
var prefs = JSON.parse(localStorage.prefs);
prefs.nostyle = document.getElementById("nostyle").checked;
prefs.nolinks = document.getElementById("nolinks").checked;
localStorage.prefs = JSON.stringify(prefs);
}
window.onload = function() {
var prefs = JSON.parse(localStorage.prefs);
document.getElementById("nostyle").checked = prefs.nostyle;
document.getElementById("nolinks").checked = prefs.nolinks;
}
</script></head><body><form>
<p><label for="nostyle">Disable default style</label> <input id="nostyle" type="checkbox" onclick="save()"/></p>
<p><label for="nolinks">Hide links</label> <input id="nolinks" type="checkbox" onclick="save()"/></p>
</form></body></html>
|