Skip to content

Commit dcec929

Browse files
committed
sounds
1 parent 7fe2f9a commit dcec929

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed

AJAX_tutorial/index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<script>
5+
function loadXMLDoc()
6+
{
7+
var xmlhttp;
8+
if (window.XMLHttpRequest)
9+
{// code for IE7+, Firefox, Chrome, Opera, Safari
10+
xmlhttp=new XMLHttpRequest();
11+
}
12+
else
13+
{// code for IE6, IE5
14+
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
15+
}
16+
xmlhttp.onreadystatechange=function()
17+
{
18+
if (xmlhttp.readyState==4 && xmlhttp.status==200)
19+
{
20+
document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
21+
}
22+
}
23+
xmlhttp.open("GET","ajax_info.txt",true);
24+
xmlhttp.send();
25+
}
26+
</script>
27+
</head>
28+
<body>
29+
30+
<div id="myDiv"><h2>Let AJAX change this text</h2></div>
31+
<button type="button" onclick="loadXMLDoc()">Change Content</button>
32+
33+
</body>
34+
</html>

coin copy.wav

119 KB
Binary file not shown.

wordtris/code.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wordtris/sounds/coin.wav

119 KB
Binary file not shown.

0 commit comments

Comments
 (0)