-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (69 loc) · 3.22 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
</head>
<body>
<p id="parag">this is the product data:</p>
<p id="product" style="height:10rem;">
<div id="prod-1"></div>
<div id="prod-2"></div>
<div id="prod-3"></div>
<div id="prod-4"></div>
<div id="prod-5"></div>
<div id="prod-6"></div>
<div id="prod-7"></div>
</p>
<p id="clock" style="height:5rem;font-size: 4rem;width:100%;text-align: center;color:red;font-weight:bold;">
clock
</p>
<p>
<h2>Clock handlers</h2>
<button id="timer" onclick="clock( );" style="background-color: rgb(67, 241, 67);"> Start Timer</button>
<button id="pause_clock" onclick="pauseClockSSECycle( );" style="background-color: yellow;">Pause clock</button>
<button id="resume_clock" onclick="resumeClockSSECycle( );" style="background-color: yellow;">Resume clock</button>
<button id="stop_clock" onclick="abortClockSSECycle( );" style="background-color: rgb(238, 131, 131);">Kill clock</button>
</p>
<p>
<h2>Ajax handlers</h2>
<button id="products" onclick="products( );" style="background-color: rgb(84, 221, 84);">Start products lookup</button>
<button id="pause_products" onclick="pauseProductsSSECycle( );" style="background-color: yellow;">Pause product lookup</button>
<button id="resume_products" onclick="resumeProductsSSECycle( );" style="background-color: yellow;">Resume product lookup</button>
<button id="stop_products" onclick="abortProductsSSECycle( );" style="background-color: rgb(238, 99, 99);">Kill product lookup</button>
</p>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<script src="alternateSSE.js"></script>
<script src="demo.js"></script>
<script>
function abortClockSSECycle( ){
clock_sse.abortCycle();
}
function abortProductsSSECycle( ){
products_sse.abortCycle( );
}
function pauseClockSSECycle( ){
clock_sse.pauseCycle( );
}
function pauseProductsSSECycle( ){
products_sse.pauseCycle( );
}
function resumeClockSSECycle( ){
clock_sse.resumeCycle( );
}
function resumeProductsSSECycle( ){
products_sse.resumeCycle( );
}
</script>
</body>
</html>