This repository has been archived by the owner on Jan 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
scripts.js
68 lines (64 loc) · 1.93 KB
/
scripts.js
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
function startShowcaser() {
Showcaser.showcase('Welcome to the Showcaser demo<br><br> Take a look at <b><i><a href="https://github.com/latitudegeo/showcaser/blob/master/docs/scripts.js" target="_blank">docs/scripts.js</a></i></b> to explore this demo\'s source code');
var demoUpdates = document.getElementById("demo-updates");
Showcaser.showcase(
"Showcaser is <b>flexible</b><br><br>You can customize the background color...",
demoUpdates,
{
backgroundColor: {
r: 0,
g: 132,
b: 10,
a: 0.75
},
shape: "rectangle"
});
var demoOptions = document.getElementById("read-more");
Showcaser.showcase(
"You can change the position of the text...",
demoOptions,
{
backgroundColor: {
r: 14,
g: 79,
b: 117
},
position: {
horizontal: "left",
vertical: "middle"
},
shape: "rectangle"
});
var pieChart = document.getElementById("pie-chart");
Showcaser.showcase(
"Or even the shape!",
pieChart,
{
backgroundColor: {
r: 132,
g: 15,
b: 3,
a: 0.7
},
position: {
horizontal: "center",
vertical: "bottom"
},
shape: "circle"
});
var graph = document.getElementById("graph");
Showcaser.showcase(
"Showcaser can even track elements as they move around the page!<br><br><b>Try resizing the browser window!</b>",
graph,
{
backgroundColor: {
r: 0,
g: 5,
b: 171,
a: 0.7
},
positionTracker: true,
shape: "rectangle"
}
);
}