forked from giscloud/GIS-Cloud-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathready.html
More file actions
39 lines (27 loc) · 815 Bytes
/
ready.html
File metadata and controls
39 lines (27 loc) · 815 Bytes
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
<!DOCTYPE html>
<html>
<title>giscloud jsapi ready example</title>
<link rel="stylesheet" type="text/css" href="examples.css"/>
<script type="text/javascript" src="http://api.giscloud.com/1/api.js"></script>
<script type="text/javascript" src="examples.js"></script>
<script type="text/javascript">
giscloud.ready(function() {
alert("Giscloud is loaded and ready!");
});
</script>
<body>
<h1>giscloud.ready() example</h1>
<p>
This is an example of the giscloud.ready() method.
</p>
<p>
The ready method is passed an anonymous function as a
parameter which is executed once the DOM and the API are loaded by the browser.
</p>
<pre>
giscloud.ready(function() {
alert("Giscloud is loaded and ready!");
});
</pre>
</body>
</html>