-
Notifications
You must be signed in to change notification settings - Fork 0
/
vote.html
202 lines (122 loc) · 7.94 KB
/
vote.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<!-- saved from url=(0027)http://localhost/app/#/vote -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Proof</title>
<!-- <link rel="stylesheet" href="css/normalize.css"> -->
<!-- <link rel="stylesheet" href="css/style.css"> -->
<!-- Bootstrap core CSS -->
<link href="http://localhost/app/css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<!-- Custom styles for this template -->
<link href="http://localhost/app/css/sticky-footer-navbar.css" rel="stylesheet">
<link href="http://localhost/app/css/signin.css" rel="stylesheet">
<script src="js/libs/jquery-1.9.1.js"></script><style type="text/css"></style>
<script src="js/bootstrap.js"></script>
<script type="text/javascript" language="javaScript" src="js/diff_match_patch.js"></script>
<script type="text/javascript" language="javaScript">
$(document).ready(function(){
var incomingTextA = "l; whenever I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet; and especially whenever my hypos get such an upper hand of me, that it requires a super strong moral principle to prevent me from deliberately stepping into the street, and methodically knocking people's hats off- then, I account it high time to get to sea as soon as I can. This is my";
var incomingTextB = "l; whenever I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet; and especially whenever my hypos get such an upper hand of me, that it requires a super strong moral principle to prevent me from deliberately stepping onto the street, and methodically knocking people's hats off- and, I account it high time to get to sea as soon as I can. This is my";
var dmp = new diff_match_patch();
function launch() {
var text1 = incomingTextA;
var text2 = incomingTextB;
console.log(text1);
console.log(text2);
dmp.Diff_Timeout = parseFloat(0);
dmp.Diff_EditCost = parseFloat(4);
var ms_start = (new Date()).getTime();
var d = dmp.diff_main(text1, text2);
var ms_end = (new Date()).getTime();
dmp.diff_cleanupSemantic(d);
var ds = dmp.diff_prettyHtml(d);
//document.getElementById('outputdiv').innerHTML = ds + '<BR>Time: ' + (ms_end - ms_start) / 1000 + 's';
console.log(ds);
$('#voteA').text(incomingTextA);
$('#voteB').html(ds);
}
launch();
});
</script>
<script type="text/javascript" src="js/tmce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea#edit",
plugins: "save",
menubar : false,
//inline: true,
//fixed_toolbar_container: "#tmceHolder",
toolbar: "save | insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l ink image | print preview media fullpage | forecolor backcolor emoticons",
save_enablewhendirty: true,
save_onsavecallback: function() {console.log("Save");}
});
</script>
</head>
<body style="" class="ember-application">
<!-- Main template -->
<!-- Default view -->
<!-- Edit view -->
<!-- Vote view -->
<!-- User view -->
<!-- Login view -->
<div id="ember187" class="ember-view">
<!-- Wrap all page content here -->
<div id="wrap">
<div class="navbar navbar-default navbar-fixed-bottom">
<div class="container">
<div class="navbar-header">
<a href="http://localhost/app/#" class="navbar-brand"><script id="metamorph-1-start" type="text/x-placeholder"></script><script id="metamorph-1-end" type="text/x-placeholder"></script></a>
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse" id="navbar-main">
<ul class="nav navbar-nav">
<li><a id="ember198" class="ember-view" href="http://localhost/app/#/">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="http://localhost/app/#" id="themes">User <span class="caret"></span></a>
<ul class="dropdown-menu" aria-labelledby="themes">
<li><a id="ember201" class="ember-view" href="http://localhost/app/#/login">Login Controller</a></li>
<li class="divider"></li>
<li><a id="ember204" class="ember-view" href="http://localhost/app/#/user">User</a></li>
</ul>
</li>
<li><a id="ember207" class="ember-view" href="http://localhost/app/#/about">About</a></li>
<li><a id="ember211" class="ember-view" href="http://localhost/app/#/edit">Edit</a></li>
<li><a id="ember215" class="ember-view active" href="./vote_files/vote.html">Vote</a></li>
</ul>
<!--
<ul class="nav navbar-nav navbar-right">
<li id="tmceHolder"></li>
</ul>
-->
</div>
</div>
</div>
<!-- Begin page content -->
<div class="container">
<div class="row-fluid vote">
<div class="col-lg-6 choice">
<div class="content"><span class="faded">Call me Ishmael. Some years ago- never mind how long precisely- having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation. Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November</span><span class="fadein"><span> i</span><span>n</span> <span>m</span><span>y</span> <span>s</span><span>o</span><span>u</span></span><span id="voteA"></span><span class="fadeout"><span> s</span><span>u</span><span>b</span><span>s</span><span>t</span><span>i</span><span>t</span><span>u</span><span>t</span><span>e </span><span class="faded"> for pistol and ball. With a philosophical flourish Cato throws himself upon his sword; I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in their degree, some time or other, cherish very nearly the same feelings towards the ocean with me.</span></span></div>
<div class="tick green">✔</div>
</div>
<div class="col-lg-6 choice">
<div class="content"><span class="faded">Call me Ishmael. Some years ago- never mind how long precisely- having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation. Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November</span><span class="fadein"><span> i</span><span>n</span> <span>m</span><span>y</span> <span>s</span><span>o</span><span>u</span></span><span id="voteB"></span><span class="fadeout"><span> s</span><span>u</span><span>b</span><span>s</span><span>t</span><span>i</span><span>t</span><span>u</span><span>t</span><span>e </span><span class="faded"> for pistol and ball. With a philosophical flourish Cato throws himself upon his sword; I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in their degree, some time or other, cherish very nearly the same feelings towards the ocean with me.</span></span></div>
<div class="tick green">✔</div>
</div>
<div id="diff"></div>
</div>
</div>
</div>
<!--
<div id="footer">
<div class="container">
<p class="text-muted credit">Copyright Jonathon J Joomlonathon</p>
</div>
</div>
-->
</div></body></html>