forked from debinzhang/debinzhang.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhost_hint_test.html
40 lines (34 loc) · 1.06 KB
/
host_hint_test.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
<html>
<head>
<title>Peppermint</title>
</head>
<h1>Peppermint</h1>
<body>
<script type="text/javascript">
function sleep(milliseconds){
var start = new Date().getTime();
var keep_looping = true;
while (keep_looping) {
if ((new Date().getTime() - start)> milliseconds) {
keep_looping = false;
}
}
document.write("<img src='mint2.jpg?time_value_for_unit_test=" + start + "'>");
document.write("<p>The date value was: " + start + "<\p>");
}
function outermost(value){
middle(value);
}
function middle(value){
innermost(value);
}
function innermost(value){
document.write("<img src='mint1.jpg?rand_value_for_unit_test="+ value + "'>");
document.write("<p>Final rand value was: " + value + "<\p>");
document.write("<img src='http://www.simplypicturesbyjenniferwoolf.com/wp-content/uploads/2014/11/1.jpg?rand_value_for_unit_test="+ value + "'>");
}
sleep(1500);
outermost( Math.random() );
</script>
</body>
</html>