-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtour.js
57 lines (52 loc) · 1.56 KB
/
tour.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
/* Driver.js */
const driverG = window.driver.js.driver;
/* Highlight searchbar on focus
$('#inp').on("focus", () => {
driverG({
overlayColor: 'transparent',
}).highlight({
element: '#inp',
popover: {
title: "Info",
description: "<h3>Enter ICAO followed by hours to get history '[query]10'</h3>",
},
side: 'bottom',
align: 'start'
});
}); */
/* Welcome message on load */
/*driverG({
animate: true, // Enable animations
opacity: 0.75, // Set overlay opacity
showButtons: ['next', 'close'],
doneBtnText: 'Lessss go!',
steps: [
{
popover: {
title: 'Welcome!',
description: "<img src='https://i.imgur.com/EAQhHu5.gif' style='height: 202.5px; width: 270px;'><p>Welcome to my website!</p>",
//description: "<p>Welcome to my website!<br>You can track live flights here.</p>",
position: 'center'
},
highlight: false // Disable highlighting
},
]
}).drive();*/
const driver2 = driverG({
overlayOpacity: 0.75,
onNextClick: () => {
driver2.destroy();
},
onCloseClick: () => {
driver2.destroy();
},
});
/*driver2.highlight({
popover: {
title: 'Welcome!',
description: "<img src='https://i.imgur.com/EAQhHu5.gif' style='height: 202.5px; width: 270px;'><p>Welcome to my website!</p>",
position: 'center',
showButtons: ['next', 'close'],
nextBtnText: 'Lessss go!',
}
})*/