-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathofflineexample.html
34 lines (29 loc) · 1.05 KB
/
offlineexample.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<html><head></head>
<body>
<script type="text/javascript">
function GM_registerMenuCommand(dummy0,dummy1,dummy2){
// alert("Dummy System load callback");
}
</script>
<script type="text/javascript" src="qrcodejs/qrcode.js"></script>
<script type="text/javascript" src="WifiXmlToQR.user.js"></script>
<script type="text/javascript">
function validateform(){
return(false);
}
function go(){
var datastring;
datastring=document.forms["inputbox"]["xyz"].value;
genqr(datastring,options);
};
var options={};
</script>
<form action=false name="inputbox" onSubmit="return validateform();">
Width: <input type="number" min=1 size=4 name=x onchange="options.width=parseInt(x.value);">
Height: <input type="number" min=1 size=4 name=y onchange="options.height=parseInt(y.value);">
<br/>
<input name="xyz" size=80 type="text" value="WIFI:S:My Net;T:WPA;P:banana;"/>
<input type="button" onclick="go();" value="generate"/>
</form>
</body>
</html>