-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
29 lines (29 loc) · 1.49 KB
/
index.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html><head><meta http-equiv='content-type' content='text/html; charset=UTF-8'/>
<meta http-equiv='X-UA-Compatible'/>
<meta name='keywords' content='wxx,sample'/>
</head><body id='sample_body'><div>Hello! I am a static div.</div><div style='color:blue;font-size:1.5em' id='autoid__7'></div><button id='autoid__8'>Click Me!</button></body><script language='JavaScript'>var vs__0=null;vs__0='Hello! I am a hybrid div.';
vt__9=document.getElementById('autoid__7');vt__9.innerHTML=vs__0;
var dynamic_tag;var vt__1;vt__1=document.getElementById('sample_body');
if (vt__1) {
var tc=function() { var p = document.createElement("div");
p.setAttribute('style','color:green;font-size:2em;');if( typeof browser !== 'undefined' && browser=='IE' ) { p.style.setAttribute("cssText", 'color:green;font-size:2em;'); } ;p.appendChild(document.createTextNode('Hello! I am a dynamic one.'));
return p; }
dynamic_tag=tc()
;
vt__1.appendChild(dynamic_tag);
}
function f__2(arg__4) {
alert(arg__4);
}
vt__10=document.getElementById('autoid__8');vt__10.setAttribute('onclick','f__2('+'"'+'I am a static button'+'"'+')');
var vt__5;var vt__6;vt__6=document.getElementById('sample_body');
if (vt__6) {
var tc=function() { var p = document.createElement("button");
p.setAttribute('onclick','f__2('+'"'+'I am a dynamic button'+'"'+')');p.appendChild(document.createTextNode('Click Me!'));
return p; }
vt__5=tc()
;
vt__6.appendChild(vt__5);
}
</script></html>