forked from gdroberts/rashomon
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
160 lines (130 loc) · 4.8 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>Rashomon Project</title>
<link href='http://fonts.googleapis.com/css?family=Wire+One' rel='stylesheet' type='text/css' />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<link href='http://fonts.googleapis.com/css?family=Fredoka+One|Just+Me+Again+Down+Here' rel='stylesheet' type='text/css' />
<link type="text/css" href="css/jquery-ui-1.8.23.custom.modified.css" rel="Stylesheet" />
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<script src="other_js/jquery.fullscreen-min.js"></script>
<script src="other_js/moment.min.js"></script>
<script src="popcorn-complete.js"></script>
<script src="popcorn.rashomonphoto.js"></script>
<script src="popcorn.rashomonvideo.js"></script>
<script src="other_js/purl.js"></script>
<script src="other_js/jquery.tinysort.min.js"></script>
<script src="rashomon.js"></script>
<style>
#buttons { margin: 4px; }
</style>
<link rel="stylesheet" type="text/css" href="css/rashomon.css" />
<script>
$(document).ready(function(){
$("#unlock").click(function(){
Rashomon.makeDraggable();
$(".vidtime").hover(function(){ $(this).css("cursor", "-moz-grab pointer")})
});
$("#save").click(function(){
var tldata = {}
tldata.earliest = Rashomon.earliest;
tldata.vids = [];
tldata.photos = [];
$(Rashomon.videos).each(function(){
var viddata = {};
viddata.name = this.name;
viddata.offset = this.offset;
viddata.duration = this.pp.duration();
tldata.vids.push(viddata);
});
$(Rashomon.photos).each(function(){
var phodata = {};
phodata.name = this.name;
phodata.offset = this.offset;
tldata.photos.push(phodata);
});
$.ajax({
type: 'POST',
url: 'upload/admin.php',
dataType: 'JSON',
data: {
"data": tldata,
"task": "resync"
},
success: function (res, status, xhr) {
console.log(res);
},
error: function(xhr, status, err) {
alert("Chronology creation failure" + err);
}
});
});
});
</script>
</head>
<body>
<section id="fullscreen">
<div id="fsvidholder">
<div id="xbox">X</div></div>
</section>
<section id='head'>
<div id="signin" class="signin">Sign in</div>
<header id="mainL">
<div id="project"><div id="proto">Prototype: (Under Construction)</div><div>The Rashomon Project:</div></div>
<div class="projectsub">An Online Toolkit for Assembling Multi-Perspective Chronologies</div>
</header>
<header id="mainR">
<div class="projectsub"><a href="http://opinion.berkeley.edu/ddi/">A CITRIS Data & Democracy Project</a>
</div>
<header id="sub">
<nav>
<a class="but" href="https://github.com/aleatorybug/rashomon">Source Code</a>
<a class="but" href="http://automation.berkeley.edu/rashomon">About Rashomon</a>
</nav>
</header>
</header>
</section>
<section id="titlebar">
<div class="namebox">
<div id="title">TIMELINE</div>
</div>
<div id="eventTitle"> </div>
</section>
<section id="videoswrapper">
<section id="vidlines" class="mediaSection"> <h1 title="Click to collapse/expand">Videos</h1> <div class="lines"></div></section>
<section id="pholines" class="mediaSection"> <h1 title="Click to collapse/expand">Photos</h1> <div class="lines"></div></section>
</section>
<section id="tlcontainer">
<section id="controls">
<div id="controlOuter">
<i class="button icon-step-backward" id="rewind"></i>
<i class="button icon-play" id="play"></i>
<i class="button icon-pause" id="stop"></i>
<i class="button icon-step-forward" id="forward"></i>
</div>
</section>
<div class="timeline lines" id="maintimeline">
<div id="timepos"></div>
<div id="timeDisplay">00:00:00</div>
</div>
</section>
<section id="playRate">
<input id="rateControl" type="range" min="0.1" max="1" value="1" step="0.025" title="Change playback rate"></input><span id="theRate"></span>
</section>
<section id="videos"><!--
<div id="buttons">
<a class="but" id="unlock">Unlock Positions</a>
<a class="but" id="save">Save Positioning</a>
</div> -->
</section>
<section id="meta">
<div id="metadata">
<div id="metaX">x</div>
<h3>Metadata</h3>
</div>
<div id="map_canvas"></div>
</section>
</body>
</html>