2 <head><title>Kyberia Notificator Options
</title>
10 <script type=
"text/javascript">
13 if(!localStorage[
"name"]) localStorage[
"name"] =
"";
14 if(!localStorage[
"pass"]) localStorage[
"pass"] =
"";
15 if(!localStorage[
"type"]) localStorage[
"type"] =
"name";
16 if(!localStorage[
"secs"]) localStorage[
"secs"] =
30;
18 // Saves options to localStorage.
19 function save_options() {
20 localStorage[
"name"] = document.getElementById(
"name").value;
21 localStorage[
"pass"] = document.getElementById(
"pass").value;
22 localStorage[
"type"] = document.getElementById(
"type").value;
23 localStorage[
"secs"] = document.getElementById(
"secs").value;
24 localStorage[
"reconnect"] =
1;
27 // Restores select box state to saved value from localStorage.
28 function restore_options() {
29 document.getElementById(
"name").value = localStorage[
"name"];
30 document.getElementById(
"pass").value = localStorage[
"pass"];
31 document.getElementById(
"type").value = localStorage[
"type"];
32 document.getElementById(
"secs").value = localStorage[
"secs"];
37 <body onload=
"restore_options()">
39 <div style=
"text-align: center; width: 100%;">
40 <pre><h1>Kyberia.sk Mail Notificator
</h1>
41 name:
<input type=
"text" id=
"name" />
42 pass:
<input type=
"password" id=
"pass" />
43 type:
<input type=
"text" id=
"type" title=
"login type (name|id)" />
44 secs:
<input type=
"text" id=
"secs" title=
"refresh interval in seconds" />
45 <button onclick=
"save_options()">Save
</button></pre>
48 <pre style=
"float: right;">
50 / | \ _____ _______ ___ __|__| ____
51 / ~ \\__ \ \_ __ \\ \/ /| |_/ __ \
52 \ Y / / __ \_ | | \/ \ / | |\ ___/
53 \___|_ / (____ / |__| \_/ |__| \___
>
56 Brought to you by
<a href=
"https://kyberia.sk/id/3764224">Harvie
</a> 2o1o (
<a href=
"http://blog.harvie.cz/">blog
</a>).
58 <img src=
"ico-big.png" style=
"float: left;" />