-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.cfm
36 lines (28 loc) · 1021 Bytes
/
index.cfm
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
<!---
<cfif isdefined("cookie.person.zip")>
<cfset link = "sample.cfm?zip=" & cookie.person.zip />
<cflocation url="#link#" addToken="No">
</cfif>
--->
<!DOCTYPE HTML>
<html lang="en-GB">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Texas School Guide</title>
<script type="application/javascript">
function getgeoip(json){
document.write("Geolocation information for IP address : ", json.ip);
document.write("Country : ", json.country);
document.write("Latitude : ", json.latitude);
document.write("Longitude : ", json.longitude);
var fullLink = "index2.cfm?zip=" + json.zipcode + "&lat=" + json.latitude + "&lng=" + json.longitude;
document.write(fullLink);
location.href = fullLink;
}
</script>
<script type="application/javascript" src="http://www.telize.com/geoip?callback=getgeoip"></script>
</head>
<body>
</body>
</html>