-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
71 lines (59 loc) · 1.95 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
<!DOCTYPE html>
<html>
<head>
<title>ZyngaScroller Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex,nofollow">
<style type="text/css">
body
{
font-family: 'Trebuchet MS';
}
#relativeParent
{
border-radius:10px;
border: 1px solid #333;
position: relative;
height: 400px;
width: 500px;
overflow:hidden;
}
#absoluteScroller
{
margin: 0;
padding: 0;
position: absolute;
height: 3000px;
width: 3000px;
background-image: url(images/bg.png);
}
</style>
<!-- jquery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js" type="text/javascript"></script>
<!-- local js -->
<script type="text/javascript" src="js/jquery.signalR-1.0.0.js"></script>
<script type="text/javascript" src="js/jquery.zyngaScroller.js"></script>
<script type="text/javascript" src="js/jquery.signalRamp.js"></script>
<script type="text/javascript" src="js/underscore.js"></script>
<script type="text/javascript" src="js/scroller/raf.js"></script>
<script type="text/javascript" src="js/scroller/Animate.js"></script>
<script type="text/javascript" src="js/scroller/Scroller.js"></script>
<script type="text/javascript" src="js/scroller/EasyScroller.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#absoluteScroller").zyngaScroller({
proxyName: 'uniqueName'
, collab: { on: true }
});
});
</script>
</head>
<body>
<h2>ZyngaScroller Demo</h2>
<p>Below is a simple Zynga Scroller with SignalR Collaboration</p>
<div id="relativeParent">
<div id="absoluteScroller">
</div>
</div>
</body>
</html>