-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdriverjs-test.html
72 lines (53 loc) · 1.78 KB
/
driverjs-test.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®,Microshaoft">
<meta name="Author" content="EditPlus®,Microshaoft">
<meta name="Keywords" content="EditPlus®,Microshaoft">
<meta name="Description" content="EditPlus®,Microshaoft">
<title>Document</title>
<script src="https://unpkg.com/driver.js/dist/driver.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/driver.js/dist/driver.min.css">
</head>
<body>
<input type="text" id="text1" name="">
<input type="text" id="text2" name="">
<input type="text" id="text3" name="">
<a href="#" onclick="event.stopPropagation();driver.start();">Show Demo</a>
<script>
var driver = new Driver();
// Define the steps for introduction
driver.defineSteps([
{
element: '#text1',
popover: {
className: 'first-step-popover-class',
title: 'Title on Popover',
description: 'Body of the popover',
position: 'bottom'
}
},
{
element: '#text2',
popover: {
className: 'first-step-popover-class',
title: 'Title on Popover',
description: 'Body of the popover',
position: 'bottom'
}
},
{
element: '#text3',
popover: {
className: 'first-step-popover-class',
title: 'Title on Popover',
description: 'Body of the popover',
position: 'bottom'
}
},
]);
driver.start();
</script>
</body>
</html>