-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
50 lines (42 loc) · 1.13 KB
/
example.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery.xml2json.js"></script>
<script src="js/sfn.js"></script>
<script src="js/bsp.js"></script>
<link type="text/css" rel="stylesheet" href="css/example.css"/>
<style type="text/css">
</style>
<script>
window.onload = function() {
getUserVars(doUserVars);
};
function doUserVars(us)
{
printObj(us)
if(typeof us === 'undefined')
{
console.log("userVars not defined");
setTimeout(function(){getUserVars(doUserVars)},1000);
return;
}
var str='<form action="/SetValues" method="post">';
$.each(us,function(){
str+=this.key+':<br/><input class="bs_input" type="text" name="'+this.key+'" value="'+this.value+'"/><br/>';
});
str+='<br/><input id="button" type="submit" value="Set Values"/></form>';
$('div.varform').html(str);
}
</script>
<html>
<head>
<title></title>
</head>
<body>
<div id="header">User Variables</div>
<center>
<div class="varform"></div>
<div id="logo2"><img src="images/BrightSign_logo.png"></div>
</center>
</body>
</html>