-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
48 lines (39 loc) · 1.45 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Speaking Mushroom</title>
<script type="text/javascript"
src="http://gestalt.ironpython.net/dlr-latest.js"></script>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body id="demo">
<div>
Type your name:
<input id="name" type="text" /><input id="go" type="button" value="go!" />
</div>
<script type="application/xml+xaml" src="mushroom.xaml" id="mushroom" width="200" height="280">
</script>
<script type="text/python" class="mushroom">
bm = xaml.blinking_mushroom
bm.left_eye_blink.Begin()
bm.right_eye_blink.Begin()
def Completed(s,e):
bm.float_bubble.Begin()
bm.show_bubble.Completed += Completed
def OnClick(s,e):
xaml.bubble_text.Text = "Hello, " + document.name.value + "!"
bm.show_bubble.Begin()
document.go.events.onclick += OnClick
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-16148811-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>