-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSTUDSexample.html
50 lines (43 loc) · 1.42 KB
/
STUDSexample.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
<!DOCTYPE html>
<html>
<head>
<title>Hackathon 2015</title>
<script type="text/javascript" src="http://studs.gpsgate.com/Services/Core.ashx?xss2=true&deps=true"></script>
<script>
goog.require('GpsGate.Server');
goog.require('jQuery');
// jQuery etc...
</script>
<script>
GpsGate.require('GpsGate.Server.Hackathon');
// other services
</script>
<script type="text/javascript">
app = function() {
this.username = 'teama';
this.password = '1234';
};
app.prototype.getUsersInTag = function(tag) {
return GpsGate.Server.Hackathon.GetUsersInTag(tag).addCallbacks(
function(result) {
// Do something with the result
},
function(err) {
// An error occured
console.error(err);
}
);
};
function start(){
var myApp = new app();
myApp.getUsersInTag('TeamA Tag');
};
jQuery(document).ready(start);
</script>
</head>
<body>
<div>
Some UI stuff here...
</div>
</body>
</html>