-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTMLPage1.html
More file actions
161 lines (129 loc) · 5.54 KB
/
HTMLPage1.html
File metadata and controls
161 lines (129 loc) · 5.54 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
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>TSSV</title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/mint-choc/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
<script src="./lib/jquery.dataTables.js"></script>
<style type="text/css" title="currentStyle">
@import "./lib/DataTableCSS/Table_Style.css";
</style>
<script type="text/javascript">
//For the Background Image
$(document).ready(function () {
var bgImage = $('#background-image');
function resizeImg() {
var imgwidth = bgImage.width(),
imgheight = bgImage.height(),
winwidth = $(window).width(),
winheight = $(window).height(),
widthratio = winwidth / imgwidth,
heightratio = winheight / imgheight,
widthdiff = heightratio * imgwidth,
heightdiff = widthratio * imgheight;
if (heightdiff > winheight) {
bgImage.css({
width: winwidth + 'px',
height: heightdiff + 'px'
});
} else {
bgImage.css({
width: widthdiff + 'px',
height: winheight + 'px'
});
}
$("#background-image").show();
}
resizeImg();
$(window).resize(function () {
resizeImg();
});
});
</script>
<script type="text/javascript">
//The Main Function, executed when the document is ready
$(function ()
{
initMainMenuButtons();
});
//All helper methods are defined below
function initMainMenuButtons()
{
$("#button_home").button().click(function () {
removeUnnecessaryWidgets();
});
$("#button_testYourself").button().click(function () {
removeUnnecessaryWidgets();
});
$("#button_createTest").button().click(function () {
removeUnnecessaryWidgets();
});
$("#button_aboutUs").button().click(function () {
removeUnnecessaryWidgets();
$("#div_ajaxFiller").load("./ServerScripts/AboutUsScripts/About_Us.php");
});
$("#button_support").button().click(function () {
removeUnnecessaryWidgets();
});
$("#button_login").button().click(function () {
removeUnnecessaryWidgets();
$("#div_ajaxFiller").load("./ServerScripts/LoginScripts/Login_Form.php");
});
$("#button_debug").button().click(function () {
removeUnnecessaryWidgets();
$("#div_ajaxFiller").load("./ServerScripts/DebugScripts/Debug.php");
});
$("#button_statistics").button().click(function () {
removeUnnecessaryWidgets();
$("#div_ajaxFiller").load("./ServerScripts/StatisticsScripts/RetrieveCourseScript.php");
});
}
function removeUnnecessaryWidgets()
{
$("#div_ajaxFiller").empty();
}
</script>
<style type="text/css">
#Button1 {
height: 33px;
width: 116px;
}
#background-image{
position:absolute;
top:0;
left:0;
z-index:-10;
overflow: hidden;
width: 100%;
display:none;
}
</style>
</head>
<body>
<img id="background-image" src="./lib/Future_Website_Background.jpg" />
<div style="text-align: center;">
<div id="div_mainMenu">
<input id="button_home" class="TopMenuButtons" style="width: 10%" type="button" value="Home"/>
<input id="button_testYourself" class="TopMenuButtons" style="width: 10%" type="button" value="Test Yourself"/>
<input id="button_createTest" class="TopMenuButtons" style="width: 10%" type="button" value="Create Test"/>
<input id="button_aboutUs" class="TopMenuButtons" style="width: 10%" type="button" value="About Us"/>
<input id="button_login" class="TopMenuButtons" style="width: 10%" type="button" value="Login"/>
<input id="button_support" class="TopMenuButtons" style="width: 10%" type="button" value="Support"/>
<input id="button_debug" class="TopMenuButtons" style="width: 10%" type="button" value="Debug"/>
<input id="button_statistics" class="TopMenuButtons" style="width: 10%" type="button" value="Statistics"/>
</div>
<div id="div_ajaxFiller">
PlaceHolder for code that will be retrieved from PHP scripts through AJAX
<br />
<br />
<img src="http://www.shitalshah.com?$ (x+a)^n=\sum_{k=0}^n {n \choose k} x^k a^{n-k} $">
<br />
(x+a)^n=∑_(k=0)^n
<br />
(x+a)^n=\sum_{k=0}^n {n \choose k} x^k a^{n-k}
</div>
</div>
</body>
</html>