-
Notifications
You must be signed in to change notification settings - Fork 7
/
school_finder_terms.html
59 lines (59 loc) · 1.96 KB
/
school_finder_terms.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
body {margin-left:20px; font-family:"Calibri";}
hr {color:grey;}
h2 {font-size:18px; color:#ee2375; }
h3 {font-size:14px; color:#ee2375; }
p {text-align: center; font-size:14px;}
p.small {font-size:12px;}
p.pink {font-size:14px; color:#ee2375; }
img.displayed {
display: block;
margin-left: auto;
margin-right: auto }
.button {
background-color: #D9407A; /* Pink */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
</style>
<script type="text/javascript">
function checkCheckBox(f) {
if (f.agree.checked == false) {
alert('Please check the box and accept the Terms of Use to open the School Finder.');
return false;
} else
return true;
}
openFinder = function(){
if (document.getElementById("agree").checked){
var h = screen.height;
var w = screen.width;
var mypopup = window.open('http://www.schools.nsw.edu.au/gotoschool/nswps-finder/index.html', '_blank');
}
else
document.getElementById("mustAgree").style.visibility = "visible";
}
resetMustAgree = function(){
document.getElementById("mustAgree").style.visibility = "hidden";
}
</script>
</head>
<body style='text-align: center'>
<img class="displayed" src="sfimage.png" alt="School Finder launch image" ><br />
<form action="http://www.schools.nsw.edu.au/gotoschool/nswps-finder/index.html" method="POST" onsubmit="return checkCheckBox(this)">
<p>I accept the Terms of Use: <input type="checkbox" value="0" name="agree" id="agree" onclick="javascript:resetMustAgree();">
<input type="button" class="button" value="Open School Finder" onclick="javascript:openFinder();"></p>
<div id='mustAgree' style='visibility:hidden; color:red; '>You must accept our terms of use before proceeding</div>
<!--<input type="button" value="Exit" onclick="document.location.href='/index.html';"></p>-->
</form>
</body>
</html>