Skip to content

Commit ba4d15c

Browse files
authored
Add files via upload
1 parent 200eca7 commit ba4d15c

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
3+
<!doctype html>
4+
<!-- "doctype html" seems to be necessary in order to allow jQuery to get the correct Browser ViewPort width\height size -->
5+
<!-- "doctype html" declaration must be the very first thing in your HTML document, before the "html" tag -->
6+
7+
8+
<p id="ViewPortSize"> </p>
9+
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
10+
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
11+
12+
13+
<!-- Load jQuery hosted by Google into your website -->
14+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
15+
16+
17+
<script>
18+
19+
function GetViewPortSize() {
20+
$('#ViewPortSize').text("Width = " + $( window ).width() + " / Height = " + $( window ).height()); /* <!doctype html> may be necessary */
21+
}
22+
23+
/* Execute "GetViewPortSize" function at page load */
24+
$(GetViewPortSize);
25+
26+
/* Execute "GetViewPortSize" function everytime the browser viewport is resized */
27+
$( window ).resize(GetViewPortSize);
28+
29+
</script>
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
48+
49+

0 commit comments

Comments
 (0)