-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html~
40 lines (27 loc) · 1006 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Check 'this' Out!</title>
<link rel='stylesheet' type='text/css' href='spell.css'/>
<script src='jquery-1.8.3.min.js'></script>
<script src='jquery.animate-colors-min.js'></script>
<script type='text/javascript' src='spell.js'></script>
</head>
<body>
<h1>word</h1>
<p>Spell the word </p>
<input type="text" id="spellbox" value="" />
<script type="text/javascript">var input = $('input'),
label = $('span');
input.bind('keydown keypress', function() {
setTimeout(function() {
label.text(input.val());
var spell = document.getElementById('spellbox');
if (spell.value!=="") {
$('h1').empty();
} else { $('h1').append("dfdsfsdf");
}
}, 0);
});</script>
</body>
</html>