Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
283 lines (217 loc) · 8.48 KB
/
Copy pathindex.html
File metadata and controls
283 lines (217 loc) · 8.48 KB
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mobile Development Finale</title>
<link type="text/css" rel="stylesheet" href="css/jquery.css" />
<link type="text/css" rel="stylesheet" href="css/myApp.css" />
<link type="text/css" rel="stylesheet" href="css/survey.css" />
<link type="text/css" rel="stylesheet" href="css/custom-theme/jquery-ui-1.8.16.custom.css"/>
<script src='js/Survey.js' type='text/javascript'></script>
<script src="js/jquery-1.6.2.min.js"></script>
<script src="js/jquery-ui-1.8.16.custom.min.js"></script>
<script src="js/youtube.js"></script>
<script src="js/jqueryMobile.js"></script>
<script src="js/myApp.js"></script>
<script>
$(document).ready(function() {
var dropped = false;
var draggable_sibling;
$("#surveyElements").sortable({
start: function(event, ui) {
draggable_sibling = $(ui.item).prev();
},
stop: function(event, ui) {
if (dropped) {
if (draggable_sibling.length == 0)
$('#surveyElements').prepend(ui.item);
draggable_sibling.after(ui.item);
dropped = false;
}
}
});
$(".droppable").droppable({
activeClass: 'active',
hoverClass:'hovered',
drop:function(event,ui){
dropped = true;
var id = ui.draggable.attr('id');
Survey.emptyPreview(id);
}
});
$( "#tabs" ).tabs({
collapsible: true
});
$("button").button();
$( "#dialog:ui-dialog" ).dialog( "destroy" );
$( "#dialog-modal" ).dialog({
autoOpen: false,
height: 140,
modal: true
});
$( "#opener" ).click(function() {
$( "#dialog-modal" ).dialog( "open" );
return false;
});
});
//for footer
var myDate = new Date();
var displayDate = (myDate.getMonth()+1) + '/' + (myDate.getDate()) + '/' + myDate.getFullYear();
</script>
</head>
<body>
<!-- Start of first page: #home -->
<div data-role="page" id="home">
<div data-role="header">
<h1>Mobile Development Final</h1>
</div><!-- /header -->
<div data-role="content" >
<h2>Home</h2>
<P>Welcome to my project Home page</p>
<p>This is a jquery mobile application written in mostly jquery, jqueryMobile, javascript with a youtube HTML5 application sample</p>
<h3>Go To:</h3>
<p><a href="#two" data-role="button">Survey</a></p>
<p><a href="#three" data-role="button">Youtube Example</a></p>
<p><a href="#popup" data-role="button" data-rel="dialog" data-transition="pop">About Me</a></p>
</div><!-- /content -->
<div data-role="footer">
<h4>
<script>
document.write(displayDate);
</script>
</h4>
</div><!-- /footer -->
</div><!-- /page one -->
<!-- Start of second page: #two -->
<div data-role="page" id="two">
<div data-role="header">
<h1>Mobile Development Final</h1>
</div><!-- /header -->
<!--
This is a build your own survey app, it supports radio buttons/Text boxes with questions
And inserting spaces.
You can drag and drop the questions to reorder and to delete them.
-->
<div data-role="content" >
<h2>Survey Builder</h2>
<div id="tabs">
<ul>
<li><a href="#radioTab">Radio Button</a></li>
<li><a href="#textTab">Text Box</a></li>
<li><a href="#spaceTab">Space Box</a></li>
</ul>
<div class='tab' id='radioTab'>
<div class='control'>
<input type="text" name="Question" value="Question Text" id='radioQuestionText' />
<input type='button' onclick="Survey.addQuestion(this,'radio')" value='add Radio Button'/>
</div>
<div class='control'>
<input type="text" name="Radio Button" value="Radio Button Value" id="radioValue"/>
<input type="text" name="Radio Button" value="Radio Button Text" id="radioText"/>
<input type='button' onclick="Survey.addValue(this, 'radio')" value='add value'/>
</div>
</div>
<div class='tab' id='textTab'>
<div class='control'>
<input type="text" name="Question" value="Question Text" id='textQuestionText' />
<input type='button' onclick="Survey.addQuestion(this,'text')" value='Add Text Box'/>
</div>
<div class='control'>
<input type="text" name="text Button" value="text Button Text" id="textText"/>
<input type='button' onclick="Survey.addValue(this, 'text')" value='add value'/>
</div>
</div>
<div class='tab' id='spaceTab'>
<input type='button' onclick="Survey.addValue(this, 'space')" value='add space'/>
</div>
</div>
<div class='model'>
<center>
<div id='previewToSurvey'>
<input type='button' onclick="Survey.addPreview(this)" value='add Preview to survey'/>
</div>
</center>
<div id='preview'>
</div>
</div>
<div id='questions'>
<div id='survey'>
<h1> Survey</h1>
<ul id="surveyElements" class="connectedSortable">
</ul>
</div>
<div class="droppable" id='garbage'>
<h1>Garbage</h1>
Drop questions here to delete
</div>
</div>
</div><!-- /content -->
<div data-role="footer">
<h4>
<!-- /back button -->
<a href="#home" data-direction="reverse" data-role="button" data-theme="b">Back to Home</a>
<br>
<script>
document.write(displayDate);
</script>
</h4>
</div><!-- /footer -->
</div><!-- /page two -->
<!-- Start of second page: #Three -->
<div data-role="page" id="three">
<div data-role="header">
<h1>Mobile Development Final</h1>
</div><!-- /header -->
<div data-role="content" >
<h2>Youtube Player</h2>
<!-- 1. The <div> tag will contain the <iframe> (and video player) -->
<center>
<div id="player"></div>
<p>Controls: <a href="javascript:void(0);" onclick="playVideo();">Play</a> | <a href="javascript:void(0);" onclick="pauseVideo();">Pause</a> | <a href="javascript:void(0);" onclick="muteVideo();">Mute</a> | <a href="javascript:void(0);" onclick="unMuteVideo();">Unmute</a></p>
<FORM NAME = frmOne>
<INPUT TYPE = Text NAME = urlText SIZE = 20 value ="u1zgFlCw8Aw">
<Input Type = Button NAME = load VALUE = "load Video" onClick = loadVideo()>
</FORM>
<div id="videoInformation">
<p>Player state: <span id="playerState">--</span></p>
<p>Current Time: <span id="videoCurrentTime">--:--</span> | Duration: <span id="videoDuration">--:--</span></p>
</div>
</center>
</div><!-- /content -->
<div data-role="footer">
<h4>
<!-- /back button -->
<a href="#home" data-direction="reverse" data-role="button" data-theme="b" onclick="stopVideo();">Back to Home</a>
<br>
<script>
document.write(displayDate);
</script>
</h4>
</div><!-- /footer -->
</div><!-- /page three -->
<!-- Start of page: #popup -->
<div data-role="page" id="popup">
<div data-role="header" data-theme="e">
<h1>About Me</h1>
</div><!-- /header -->
<div data-role="content" data-theme="d" >
<p>Made by Mitchell DeMarco</p>
<p>For Programming Skills: Mobile Devices</p>
<p>With help from<br>
<a href="http://jquerymobile.com/">Jquery Mobile</a><br>
<a href="http://code.google.com/apis/youtube/overview.html">Youtube API</a><br>
</div><!-- /content -->
<div data-role="footer">
<h4>
<!-- /back button -->
<a href="#home" data-direction="reverse" data-role="button" data-theme="b">Back to Home</a>
<br>
<script>
document.write(displayDate);
</script>
</h4>
</div><!-- /footer -->
</div><!-- /page popup -->
</body>
</html>