-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.htm
181 lines (169 loc) · 6.06 KB
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Geoflag File</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<script src="credentials.js"></script>
<script src="js/jquery.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=false"> </script>
<script src="iface/loc/geolocation.js"></script>
<script src="js/bootstrap-modal.js"></script>
<script type="text/javascript" src="//api.filepicker.io/v1/filepicker.js"></script>
<script src="iface/geotag.js"></script>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<style>
.sidebar-nav {
padding: 9px 0;
}
.progress.min-margin {
margin-bottom: 5px;
}
p.no-margin{
margin-bottom: 0px;
}
.eighthundred{
height:800px;
padding-top:50px;
}
.threehundred{
width:300px;
}
.margin40{
padding:0;
padding-top:40px;
}
#filepicker_dialog_container{
top:60px !important;
}
#gmap{
width:510px;
height:330px;
margin-top:2px;
}
</style>
</head>
<body>
<!-- Facebook API -->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : APPID_FACEBOOK,
channelUrl : APPBRIDGE_FACEBOOK,
status : true,
cookie : true,
xfbml : true
});
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
Main.accessToken = accessToken;
Main.uid = uid;
FB.api('/me', function(response) {
document.getElementById("fb_loggedin").style.display = "";
document.getElementById("fb_name").appendChild(document.createTextNode(response.name));
});
} else if (response.status === 'not_authorized') {
window.location.href = "login.htm"
} else {
window.location.href = "login.htm"
}
});
};
(function(d, debug){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all" + (debug ? "/debug" : "") + ".js";
ref.parentNode.insertBefore(js, ref);
}(document, false));
</script>
<!-- End Facebook API -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="./index.htm">GeoFlags</a>
<div class="nav-collapse collapse">
<p id ="fb_loggedin" style="display:none;" class="navbar-text pull-right">
Logged in as <a href="check.htm" class="navbar-link" style="color:#fff;" id="fb_name"></a> | <a style="color:#fff;" href="addfan.htm">Add Friends</a>
</p>
</div>
</div>
</div>
</div>
<div class="container-fluid margin40">
<div id="section1" class="row-fluid eighthundred" style="background:url(img/bg-sct1.png) no-repeat;">
<div class="span2"></div>
<div class="span8">
<div class="hero-unit">
<h1>GeoFlags</h1>
<a id="startbtn" class="btn btn-primary btn-large pull-right" href="javascript:;">GeoFlag a File »</a>
<p>
1) Choose a File<br> 2) Flag it up<br> 3) Call a friend<br> 4) Share the fun
</p>
</div>
</div>
<div class="span2"></div>
</div>
<div id="section2" style="display:none;background:url(img/bg-sct2.png) no-repeat;" class="row-fluid eighthundred">
<div class="span2"></div>
<div class="span8">
<h2>1. Choose File</h2>
<p> Pick a file to GeoFlag. </p>
<h3 id ="fileselection"></h3>
<p><a id="pickerbtn" class="btn btn-primary btn-large pull-right threehundred" href="javascript:;">Flag Me</a></p>
</div>
<div class="span2"></div>
</div>
<div id="section3" style="display:none;background:url(img/bg-sct3.png) no-repeat;" class="row-fluid eighthundred">
<div class="span2"></div>
<div class="span8">
<h2>2. Add flags!</h2>
<p> Add a few "flags" for your followers to catch. Catching all the flags in a set will unlock the file.</p>
<p><a id="addflagbtn" class="btn btn-primary btn-large pull-right threehundred" href="javascript:;">Add flag</a></p>
<div id="addModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Add GeoFlag</h3>
</div>
<div id="addModalBody" class="modal-body">
<p>Please select the Geolocation for the flag trigger:
<div class="input-append pull-left">
<input id="locationName" type="text" placeholder="My Location">
<a id="addressSearchBtn" class="btn" href="javascript:;">Search</a>
</div>
<a id="timeBtn" class="btn inline pull-right" style="margin-right:10px;" href="javascript:;">Flag Life</a>
</p>
<div id="gmap"></div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
<button id="markbtn" class="btn btn-primary">Flag!</button>
</div>
</div>
</div>
<div class="span2"></div>
</div>
<div id="section4" style="display:none;background:url(img/bg-sct4.png) no-repeat;" class="row-fluid eighthundred">
<div class="span2"></div>
<div class="span8">
<h2>3. Done</h2>
<p> Hooray! Hooray! You've now GeoFlagged a file. Let others subscribe to your flags: </p>
<h2 id="fbid">(THIS IS YOUR ID)</h2>
<p><a id="finishRetBtn" class="btn btn-primary btn-large pull-right threehundred">Geoflag another file</a></p>
</div>
<div class="span2"></div>
</div>
</div>
</body>
</html>