forked from VladKhl/ScreenTask
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
248 lines (201 loc) · 8.98 KB
/
Copy pathindex.html
File metadata and controls
248 lines (201 loc) · 8.98 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
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Screen Task">
<meta name="author" content="Eslam Hamouda">
<title>Screen Task</title>
<link href="bootstrap.min.css" rel="stylesheet" />
<style>
body {
padding-top: 5px;
}
.footer {
border-top: 1px solid #eee;
margin-top: 40px;
padding-top: 40px;
padding-bottom: 40px;
}
/* Main marketing message and sign up button */
.jumbotron {
text-align: center;
background-color: transparent;
}
.jumbotron .btn {
font-size: 21px;
padding: 14px 24px;
}
/* Customize the nav-justified links to be fill the entire space of the .navbar */
.nav-justified {
background-color: #eee;
border-radius: 5px;
border: 1px solid #ccc;
}
.nav-justified > li > a {
margin-bottom: 0;
padding-top: 15px;
padding-bottom: 15px;
color: #777;
font-weight: bold;
text-align: center;
border-bottom: 1px solid #d5d5d5;
background-color: #e5e5e5; /* Old browsers */
background-repeat: repeat-x; /* Repeat the gradient */
background-image: -moz-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%); /* FF3.6+ */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Chrome 10+,Safari 5.1+ */
background-image: -o-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Opera 11.10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
background-image: linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* W3C */
}
.nav-justified > .active > a,
.nav-justified > .active > a:hover,
.nav-justified > .active > a:focus {
background-color: #ddd;
background-image: none;
box-shadow: inset 0 3px 7px rgba(0,0,0,.15);
}
.nav-justified > li:first-child > a {
border-radius: 5px 5px 0 0;
}
.nav-justified > li:last-child > a {
border-bottom: 0;
border-radius: 0 0 5px 5px;
}
@media (min-width: 768px) {
.nav-justified {
max-height: 52px;
}
.nav-justified > li > a {
border-left: 1px solid #fff;
border-right: 1px solid #d5d5d5;
}
.nav-justified > li:first-child > a {
border-left: 0;
border-radius: 5px 0 0 5px;
}
.nav-justified > li:last-child > a {
border-radius: 0 5px 5px 0;
border-right: 0;
}
}
/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
/* Remove the padding we set earlier */
.masthead,
.marketing,
.footer {
padding-left: 0;
padding-right: 0;
}
}
</style>
</head>
<body>
<div class="container">
<div class="masthead">
<h1 class="text-muted">Screen Task</h1>
<ul class="nav nav-justified">
<li class="active"><a href="./">Home</a></li>
<li><a target="_blank" href="https://github.com/EslaMx7/ScreenTask">Project On Github</a></li>
<li><a id="lnkAbout" href="#">About</a></li>
</ul>
</div>
<br />
<div id="msgAbout" class="alert alert-info alert-dismissable hidden">
<button id="closeAbout" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<strong>About!</strong>
<p>Share Your Desktop With Your Friends Inside The Internal Network [No Internet Connection Required]</p>
<p> This Application Developed by : Eslam Hamouda | © EslaMxSoft 2014 </p>
<p class="text-center"><em>Hope This Helps You On Your Work!</em></p>
<p> Send Your Feedback to : [email protected]</p>
</div>
<hr />
<!-- Preview -->
<div id="Viewer" class="imgPreview">
<img id="imgPrev" src="ScreenTask.jpg" class="img-responsive" alt="LIVE! Sever Screen Now!" />
<br />
<div class="well text-center">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4">
<button id="btnStartStop" class="btn btn-lg btn-danger" data-state="stop">Stop Watching!</button>
</div>
<div id="intervalSection" class="col-lg-4 col-md-4 col-sm-4">
<div class="input-group input-group-sm">
<input id="txtInterval" type="text" class="form-control" placeholder="Interval in Mellisecond" value="500">
<div class="input-group-btn">
<button id="btnSetTimer" type="button" class="btn btn-default btn-md dropdown-toggle" data-toggle="dropdown">Set Refresh Interval(ms)</button>
</div><!-- /btn-group -->
</div><!-- /input-group -->
</div>
<div class="col-lg-4 col-md-4 col-sm-4">
<button id="btnFullscreen" class="btn btn-lg btn-primary">Fullscreen</button>
</div>
</div>
<div class="row">
</div>
</div>
</div>
<!-- Site footer -->
<div class="footer">
<p>© Screen Task 2014 | <a href="http://eslamx.com">EslaMxSoft</a>, by <a href="https://twitter.com/EslaMx7">@EslaMx7</a>.</p>
</div>
</div> <!-- /container -->
<script>
var refreshInterval = 500;
var timer = setInterval(function () {
var ImagePreview = document.getElementById('imgPrev');
ImagePreview.src = 'ScreenTask.jpg?rand=' + Math.random();
}, refreshInterval);
var btn = document.getElementById('btnStartStop');
btn.onclick = function () {
if (btn.getAttribute('data-state') == 'stop') {
btn.setAttribute('data-state', 'start');
btn.className = "btn btn-lg btn-success";
btn.innerHTML = "Start Watching!";
clearInterval(timer);
timer = null;
} else {
btn.setAttribute('data-state', 'stop');
btn.className = "btn btn-lg btn-danger";
btn.innerHTML = "Stop Watching!";
timer = setInterval(function () {
var ImagePreview = document.getElementById('imgPrev');
ImagePreview.src = 'ScreenTask.jpg?rand=' + Math.random();
}, refreshInterval);
}
};
var btnSetTimer = document.getElementById('btnSetTimer');
btnSetTimer.onclick = function () {
var txtInterval = document.getElementById('txtInterval');
refreshInterval = txtInterval.value;
};
var lnkAbout = document.getElementById('lnkAbout');
var msgAbout = document.getElementById('msgAbout');
var closeAbout = document.getElementById('closeAbout');
lnkAbout.onclick = function () {
msgAbout.className = "alert alert-info alert-dismissable";
};
closeAbout.onclick = function () {
msgAbout.className = "alert alert-info alert-dismissable hidden";
};
function requestFullScreen(element) {
// Supports most browsers and their versions.
var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;
if (requestMethod) { // Native full screen.
requestMethod.call(element);
} else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
var wscript = new ActiveXObject("WScript.Shell");
if (wscript !== null) {
wscript.SendKeys("{F11}");
}
}
}
var btnFullscreen = document.getElementById('btnFullscreen');
btnFullscreen.onclick = function () {
var viewer = document.getElementById('Viewer');
requestFullScreen(viewer);
};</script>
</body>
</html>