-
Notifications
You must be signed in to change notification settings - Fork 15
/
navigation.html
74 lines (73 loc) · 2.08 KB
/
navigation.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
<title></title>
<link href='http://fonts.googleapis.com/css?family=Lato:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="./style.css" type="text/css" />
<script>
function displayUrl() {
gb.alert('The url is :', gb.location.href);
}
function displayParams() {
var p = gb.location.params();
for (var prop in p) {
gb.alert('Params are :', prop + ' = ' + p[prop]);
}
}
</script>
</head>
<body>
<div class="cell" id="big_header">
NAVIGATION METHODS
</div>
<div class="cell" onclick="displayUrl();">
Display the url of the current page
</div>
<hr>
<div class="cell" onclick="displayParams();">
Display parameters of the current page
</div>
<hr>
<a href="internalpage">
<div class="cell">
Go on another Plugin internal page
</div>
</a>
<hr>
<div class="cell" onclick="gb.location.back();">
Go back to the previous page
</div>
<hr>
<a href="http://www.goodbarber.com">
<div class="cell">
Go on goodbarber.com
</div>
</a>
<hr>
<div class="cell" onclick="gb.location.open('https://www.goodbarber.com');">
Go on goodbarber.com on external browser
</div>
<hr>
<a href="tel:+1(555)555-5555">
<div class="cell">
Call +1 (555) 555-5555
</div>
<hr>
<a href="sms:+1(555)555-5555">
<div class="cell">
Text +1 (555) 555-5555
</div>
</a>
<hr>
<div class="cell" onclick="gb.location.mail('[email protected]', 'Hello GoodBarbers !', 'I am testing your demo plugin !');">
Send an e-mail
</div>
<hr>
<div class="cell" onclick="gb.location.maps({'q':'ajaccio'});">
Locate Ajaccio
</div>
<hr>
<div class="header" style="height:20px;">
</div>
</body>
</html>