kamrify commited on
Commit
0f0b5f7
·
1 Parent(s): 9b9dfac

Fix untracked files

Browse files
dist/demo/driver-demo.min.css DELETED
@@ -1 +0,0 @@
1
- *{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;padding:0}*,:after,:before{box-sizing:border-box}body,html{position:relative;margin:0;width:100%;height:100%}body{padding-top:1px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:16px;line-height:1.4;color:#fff;background-color:#2e2e30;overflow-x:hidden}label{display:block;margin-bottom:8px;font-size:14px;font-weight:500;cursor:pointer}p{margin-top:0;margin-bottom:20px;line-height:1.5}.hr,hr{display:block;margin:30px 0;border:0;border-bottom:1px solid #eaeaea;height:1px}.hr.hr__fancy,hr.hr__fancy{background:url(images/separator.png) repeat-y;height:5px;background-size:cover}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:12px;font-weight:700;line-height:1.2}a,a:focus,a:visited{color:#fff;text-decoration:none;font-weight:600}.form-control{display:block;width:100%;background-color:#f9f9f9;padding:12px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;-webkit-appearance:none;appearance:none;outline:none;margin-bottom:24px}.h1,h1{font-size:32px}.h2,h2{font-size:24px}.h3,h3{font-size:20px}.h4,h4{font-size:18px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}ol li,ul li{list-style-type:none;line-height:1.5;margin-bottom:3px}blockquote{background:#f5f3f1;padding:10px;margin-bottom:35px;border-radius:10px}.top-20{margin-top:20px}.top-30{margin-top:30px}.zero-bottom{margin-bottom:0}.zero-top{margin-top:0}.text-center{text-align:center}div#driver-popover-item{display:none;position:absolute;background:#fff;color:#2d2d2d;margin:0;padding:15px;border-radius:5px;min-width:250px;max-width:300px;box-shadow:0 1px 10px rgba(0,0,0,.4);z-index:1000000000}div#driver-popover-item .driver-popover-tip{border:5px solid #fff;content:"";position:absolute}div#driver-popover-item .driver-popover-tip.bottom{bottom:-10px;border-color:#fff transparent transparent}div#driver-popover-item .driver-popover-tip.bottom.position-center{left:49%}div#driver-popover-item .driver-popover-tip.bottom.position-right{right:20px}div#driver-popover-item .driver-popover-tip.left{left:-10px;top:10px;border-color:transparent #fff transparent transparent}div#driver-popover-item .driver-popover-tip.left.position-center{top:46%}div#driver-popover-item .driver-popover-tip.left.position-bottom{top:auto;bottom:20px}div#driver-popover-item .driver-popover-tip.right{right:-10px;top:10px;border-color:transparent transparent transparent #fff}div#driver-popover-item .driver-popover-tip.right.position-center{top:46%}div#driver-popover-item .driver-popover-tip.right.position-bottom{top:auto;bottom:20px}div#driver-popover-item .driver-popover-tip.top{top:-10px;border-color:transparent transparent #fff}div#driver-popover-item .driver-popover-tip.top.position-center{left:49%}div#driver-popover-item .driver-popover-tip.top.position-right{right:20px}div#driver-popover-item .driver-popover-footer{display:block;clear:both;margin-top:5px}div#driver-popover-item .driver-popover-footer button{display:inline-block;padding:3px 10px;border:1px solid #d4d4d4;text-decoration:none;text-shadow:1px 1px 0 #fff;color:#2d2d2d;font:11px/normal sans-serif;cursor:pointer;outline:0;background-color:#f1f1f1;border-radius:2px;zoom:1;margin:10px 0 0;line-height:1.3}div#driver-popover-item .driver-popover-footer button.driver-disabled{color:grey;cursor:default;pointer-events:none}div#driver-popover-item .driver-popover-footer .driver-close-btn{float:left}div#driver-popover-item .driver-popover-footer .driver-btn-group{float:right}div#driver-popover-item .driver-popover-title{font:19px/normal sans-serif;margin:0 0 5px;font-weight:700;display:block;position:relative;line-height:1.5;zoom:1}div#driver-popover-item .driver-popover-description{margin-bottom:0;font:14px/normal sans-serif;line-height:1.5;color:#2d2d2d;font-weight:400;zoom:1}.driver-stage-no-animation{-webkit-transition:none!important;-moz-transition:none!important;-ms-transition:none!important;-o-transition:none!important;transition:none!important;background:transparent!important;outline:5000px solid rgba(0,0,0,.75)}div#driver-page-overlay{background:#000;position:fixed;bottom:0;right:0;display:block;width:100%;height:100%;zoom:1;filter:alpha(opacity=75);opacity:.75;z-index:100002!important}div#driver-highlighted-element-stage,div#driver-page-overlay{top:0;left:0;-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s}div#driver-highlighted-element-stage{position:absolute;height:50px;width:300px;background:#fff;z-index:100003!important;display:none;border-radius:2px}.driver-highlighted-element{z-index:100004!important}.driver-position-relative{position:relative!important}.driver-fix-stacking{z-index:auto!important;opacity:1!important;-webkit-transform:none!important;-moz-transform:none!important;-ms-transform:none!important;-o-transform:none!important;transform:none!important;-webkit-filter:none!important;-moz-filter:none!important;-ms-filter:none!important;-o-filter:none!important;filter:none!important;-webkit-perspective:none!important;-moz-perspective:none!important;-ms-perspective:none!important;-o-perspective:none!important;perspective:none!important;-webkit-transform-style:flat!important;-moz-transform-style:flat!important;-ms-transform-style:flat!important;transform-style:flat!important;-webkit-transform-box:border-box!important;-moz-transform-box:border-box!important;-ms-transform-box:border-box!important;-o-transform-box:border-box!important;transform-box:border-box!important;will-change:unset!important}img.emoji{height:1em;width:1em;margin:0 .05em 0 .1em;vertical-align:-.1em}.brand,.brand img{position:relative}.brand img{height:67px;top:10px}.page-wrap{max-width:550px;margin:50px auto;background:#fff;padding:10px 30px;border-radius:5px;color:#1f1f1f}.page-wrap a,.page-wrap a:focus,.page-wrap a:visited{color:#1f1f1f;text-decoration:underline}.page-wrap a.btn__dark{text-decoration:none;color:#fff;background-color:#f44336;padding:0 18px;height:40px;line-height:40px;border-radius:8px;cursor:pointer;transition:background-color .2s,color .2s;font-weight:500;width:195px;font-size:17px;display:inline-block;margin-top:2px}.page-wrap a.btn__run-demo{text-decoration:none;background:#f54336;padding:5px;border-radius:20px;color:#fff;display:block;margin:15px 0 10px;text-align:center}section{margin-bottom:30px}.section__header{margin:10px 0 20px;text-align:center;display:block;padding:10px}.section__header h1{font-size:55px}.section__header h1 .emoji{font-size:45px;top:-4px;margin-right:3px;position:relative}.section__header .tagline{max-width:450px;margin:0 auto 25px;text-align:center}.section__examples .section__example{margin-bottom:20px}.section__examples #creation-input{margin-top:20px}.section__examples input{padding:10px;background-color:#fafbfc;border:3px solid #e1e4e8;border-radius:3px;box-shadow:inset 0 0 10px rgba(27,31,35,.05);margin-bottom:0;margin-top:7px}.position-btns a{text-decoration:none;font-size:13px;padding:10px 15px;background:#f54336;color:#fff!important;border-radius:6px}
 
 
dist/demo/driver-demo.min.js DELETED
The diff for this file is too large to render. See raw diff
 
dist/demo/favicon.png DELETED
Binary file (839 Bytes)
 
dist/demo/images/browserstack.png DELETED
Binary file (5.07 kB)
 
dist/demo/images/driver.png DELETED
Binary file (46.1 kB)
 
dist/demo/images/driver.svg DELETED
dist/demo/images/favicon.png DELETED
Binary file (839 Bytes)
 
dist/demo/images/separator.png DELETED
Binary file (6.88 kB)
 
dist/demo/images/split.png DELETED
Binary file (439 Bytes)
 
dist/demo/index.html DELETED
@@ -1,396 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport"
6
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
8
- <title>Driver</title>
9
- <meta name="description" itemprop="description" content="A light-weight, no-dependency, vanilla JavaScript library to drive the user's focus across the page"/>
10
- <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/monokai.min.css">
11
- <link rel="shortcut icon" href="./favicon.png"><link href="./driver-demo.min.css" rel="stylesheet"></head>
12
- <body>
13
- <div class="page-wrap">
14
- <section class="section__header" id="driver-demo-head">
15
- <h1 class="brand">
16
- <img id="logo_img" src="./images/driver.png"/>
17
- <span id="name_driver">Driver.js</span>
18
- </h1>
19
- <p class="text-muted tagline">Light-weight, no-dependency, vanilla JavaScript engine to drive user's focus across
20
- the
21
- page</p>
22
-
23
- <a id="animated-tour" href="javascript:void(0)" class="btn btn__example btn__dark">With Animation</a>
24
- <a id="boring-tour" href="javascript:void(0)" class="btn btn__example btn__dark">Without Animation</a>
25
-
26
- <div class="github-button top-30">
27
- <!-- Place this tag where you want the button to render. -->
28
- <a class="github-button" href="https://github.com/kamranahmedse/driver.js" data-size="large"
29
- data-show-count="true" aria-label="Star kamranahmedse/driver.js on GitHub">Star</a>
30
- </div>
31
-
32
- </section>
33
-
34
- <blockquote>
35
- <p>A lightweight (~4kb gzipped) yet powerful JavaScript engine that helps you drive the user's focus on page.</p>
36
- <p class="zero-bottom">Some sample use-cases can be creating powerful feature introductions, call-to-action
37
- components, focus shifters etc.</p>
38
- </blockquote>
39
-
40
- <section class="section__purpose">
41
- <h3>What are the features?</h3>
42
- <p>Driver is compatible with all the major browsers and can be used for any of your overlay needs. Feature
43
- introductions, focus shifters, call-to-action are just a few examples.</p>
44
- <ul>
45
- <li id="highlight_feature">🔆 <strong>Highlight</strong> any (literally any) item on page</li>
46
- <li id="interactions_feature">✋ <strong>Block user interactions</strong></li>
47
- <li id="feature_introductions_feature">📣 Create <strong>feature introductions</strong></li>
48
- <li id="focus_shifters_feature">👓 Add <strong>focus shifters</strong> for users</li>
49
- <li id="customizable_feature">🛠️ Highly customizable – <strong>Use it anywhere</strong> for overlay</li>
50
- <li id="keyboard_feature">⌨️ User Friendly – <strong>Controllable by keys</strong></li>
51
- <li id="free_use_feature">🆓 <strong>MIT Licensed</strong> – Free for personal and commercial use</li>
52
- <li id="lightweight_feature">🕊️ Lightweight – Only <strong>~4kb</strong> when gzipped</li>
53
- <li id="major_browsers_feature">🌀 <strong>Consistent behavior</strong> across all major browsers</li>
54
- </ul>
55
- </section>
56
- <hr class="hr__fancy">
57
- <section class="section__how">
58
- <h3>How does it do that?</h3>
59
- <p>In it simplest, it puts the canvas on top of the whole page and then cuts the part that is over the element to be
60
- highlighted and provides you several hooks when highlighting, highlighted or un-highlighting elements making it
61
- highly customizable.</p>
62
- </section>
63
- <hr class="hr__fancy">
64
- <section class="section__examples">
65
- <div id="examples_section">
66
- <h3>Can you show some Examples?</h3>
67
- <p>Below you find some of the examples and sample use-cases on how you can use it. Run by clicking the
68
- <code>RUN</code> button.</p>
69
- </div>
70
- <div id="single-element-no-popover" class="section__example">
71
- <h4>Highlighting a Single Element – Without Popover</h4>
72
- <p class="zero-bottom">If all you want is just highlight a single element, you can do that simply by passing the
73
- selector</p>
74
- <a href="#" class="btn__run-demo" id="run-single-element-no-popover">Show Demo</a>
75
- <pre><code class="javascript">const driver = new Driver();
76
- driver.highlight('#create-post');
77
- </code></pre>
78
- </div>
79
-
80
- <hr class="hr__fancy">
81
-
82
- <div class="section__example">
83
- <p>A <strong>real world use-case</strong> for this could be highlighting an element when user is interacting with
84
- it</p>
85
- <pre><code class="javascript">const focusDriver = new Driver();
86
-
87
- // Highlight the section on focus
88
- document.getElementById('creation-input')
89
- .addEventListener('focus', (e) => {
90
- focusDriver.focus('#creation-input');
91
- });
92
- </code></pre>
93
- <p class="top-20">Focus any of the inputs and see how it moves the highlight from one element to the other</p>
94
- <div id="creation-forms">
95
- <input type="text" id="creation-input" class="form-control" placeholder="Focus any of the inputs">
96
- <input type="text" id="creation-input-2" class="form-control" placeholder="Focus any of the inputs">
97
- <input type="text" id="creation-input-3" class="form-control" placeholder="Focus any of the inputs">
98
- <input type="text" id="creation-input-4" class="form-control" placeholder="Focus any of the inputs">
99
- </div>
100
- </div>
101
-
102
- <p>You can also turn off the animation or set the padding around the corner. More on it later.</p>
103
-
104
- <hr class="hr__fancy">
105
-
106
- <div id="single-element-with-popover" class="section__example">
107
- <h4>Highlighting a Single Element – With Popover</h4>
108
- <p>If you would like to show some details alongside the highlighted element, you can do that easily by specifying
109
- title and description</p>
110
- <a href="#" class="btn__run-demo" id="run-single-element-with-popover">Show Demo</a>
111
- <pre><code class="javascript">const driver = new Driver();
112
- driver.highlight({
113
- element: '#some-element',
114
- popover: {
115
- title: 'Title for the Popover',
116
- description: 'Description for it',
117
- }
118
- });
119
- </code></pre>
120
- <p class="top-20">You can modify the behavior of this popover also by a certain set of options. More on it
121
- below.</p>
122
- </div>
123
-
124
- <hr class="hr__fancy">
125
-
126
- <div id="single-element-with-popover-position" class="section__example">
127
- <h4>Popover Positioning</h4>
128
- <p>You can also, change the position of the popover to be either <code>left</code>, <code>left-center</code>, <code>left-bottom</code>, <code>top</code>, <code>top-center</code>, <code>top-right</code>,
129
- <code>right</code>, <code>right-center</code>, <code>right-bottom</code> or <code>bottom</code>, <code>bottom-center</code>, <code>bottom-right</code>.</p>
130
- <a href="#" class="btn__run-demo" id="run-single-element-with-popover-position">Show Demo</a>
131
- <pre><code class="javascript">const driver = new Driver();
132
- driver.highlight({
133
- element: '#some-element',
134
- popover: {
135
- title: 'Title for the Popover',
136
- description: 'Description for it',
137
- // position can be left, left-center, left-bottom, top,
138
- // top-center, top-right, right, right-center, right-bottom,
139
- // bottom, bottom-center, bottom-right
140
- position: 'left',
141
- }
142
- });
143
- </code></pre>
144
- </div>
145
- <div class="section__example">
146
- <div class="top-20 position-btns">
147
- <a href="#" id="position-btn-left">On my Left</a>
148
- <a href="#" id="position-btn-top">On my Top</a>
149
- <a href="#" id="position-btn-bottom">On my Bottom</a>
150
- <a href="#" id="position-btn-right">On my Right</a>
151
- </div>
152
- <p class="top-20">If you don't specify the position or specify it to be <code>auto</code>, it will automatically
153
- find the suitable position for the popover and show it</p>
154
- </div>
155
- <hr class="hr__fancy">
156
- <div id="single-element-with-popover-html" class="section__example">
157
- <h4>HTML in Popovers</h4>
158
- <p>You can also specify HTML in the body or the title of the popovers. Here is an example:</p>
159
- <a href="#" class="btn__run-demo" id="run-single-element-with-popover-html">Show Demo</a>
160
- <pre><code class="javascript">const driver = new Driver();
161
- driver.highlight({
162
- element: '#some-element',
163
- popover: {
164
- title: '&lt;em&gt;An italicized title&lt;/em&gt;',
165
- description: 'Description may also contain &lt;strong&gt;HTML&lt;/strong&gt;'
166
- }
167
- });
168
- </code></pre>
169
- </div>
170
-
171
- <p class="top-20">And of course it can be any valid HTML.</p>
172
-
173
- <hr class="hr__fancy">
174
- <div id="single-element-no-close" class="section__example">
175
- <h4>Disable Close on Outside Click</h4>
176
- <p>By default, driver.js gets reset if user clicks outside the highlighted element, you can disable this:</p>
177
- <a href="#" class="btn__run-demo" id="run-single-element-no-close">Show Demo</a>
178
- <pre><code class="javascript">const driver = new Driver({
179
- allowClose: false,
180
- });
181
-
182
- driver.highlight({
183
- element: '#some-element',
184
- popover: {
185
- title: '&lt;em&gt;An italicized title&lt;/em&gt;',
186
- description: 'Description may also contain &lt;strong&gt;HTML&lt;/strong&gt;'
187
- }
188
- });
189
- </code></pre>
190
- <p class="top-20">
191
- If you use this option, for multi-step driver, it would close after you are done with the popover or you can close it programmatically. For single element popover, you need to close it properly, otherwise it won't be closed
192
- </p>
193
- <pre><code class="javascript">driver.reset()</code>
194
- </div>
195
-
196
- <hr class="hr__fancy">
197
- <div id="third-element-introduction" class="section__example">
198
- <h4 id="first-element-introduction">Creating Feature Introductions</h4>
199
- <p id="second-para-feature-introductions">You can also make powerful feature introductions to guide the users
200
- about the features. Just provide an array of steps where each step specifies an element to highlight.</p>
201
- <p id="third-para-feature-introductions">Below is just a quick example showing you how to combine the steps in
202
- introduction.</p>
203
- <a href="#" class="btn__run-demo" id="run-multi-element-popovers">Show Demo</a>
204
- </div>
205
- <pre><code class="javascript">const driver = new Driver();
206
- // Define the steps for introduction
207
- driver.defineSteps([
208
- {
209
- element: '#first-element-introduction',
210
- popover: {
211
- title: 'Title on Popover',
212
- description: 'Body of the popover',
213
- position: 'left'
214
- }
215
- },
216
- {
217
- element: '#second-element-introduction',
218
- popover: {
219
- title: 'Title on Popover',
220
- description: 'Body of the popover',
221
- position: 'top'
222
- }
223
- },
224
- {
225
- element: '#third-element-introduction',
226
- popover: {
227
- title: 'Title on Popover',
228
- description: 'Body of the popover',
229
- position: 'right'
230
- }
231
- },
232
- ]);
233
- // Start the introduction
234
- driver.start();
235
- </code></pre>
236
- <p class="top-20">This is just a quick example for the feature introduction. For a richer one, please have a look at
237
- the
238
- <a href="#" class="btn__example">"Quick Tour"</a></p>
239
-
240
- <p>You may also turn off the footer buttons in popover, in which case user can control the popover using the arrows
241
- keys on keyboard. Or you may control it using the methods provided by Driver.</p>
242
-
243
- <hr class="hr__fancy">
244
-
245
- <div id="element-without-popover" class="section__example">
246
- <h4>Without Overlay</h4>
247
- <p>You can create feature introductions and do everything listed above without overlays also. All you have to do
248
- is just set the opacity to `0`.</p>
249
- <a href="#" class="btn__run-demo" id="run-element-without-popover">Show Demo</a>
250
- <pre><code class="javascript">const driver = new Driver({
251
- opacity: 0,
252
- });
253
-
254
- driver.highlight({
255
- element: '#run-element-without-popover',
256
- popover: {
257
- title: 'Title for the Popover',
258
- description: 'Description for it',
259
- position: 'top', // can be `top`, `left`, `right`, `bottom`
260
- }
261
- });
262
- </code></pre>
263
- <p class="top-20">..and you can do the same for the feature introductions</p>
264
- </div>
265
-
266
- <hr class="hr__fancy">
267
-
268
- <div class="section__example">
269
- <div id="api_section">
270
- <h3>..and much much more</h3>
271
- <p>Driver comes with many options that you can manipulate to make driver behave as you may like</p>
272
- </div>
273
- <h4>Driver Definition</h4>
274
- <p>Here are the options that Driver understands</p>
275
- <pre><code class="javascript">const driver = new Driver({
276
- animate: true, // Animate while changing highlighted element
277
- opacity: 0.75, // Background opacity (0 means only popovers and without overlay)
278
- padding: 10, // Distance of element from around the edges
279
- allowClose: true, // Whether clicking on overlay should close or not
280
- overlayClickNext: false, // Should it move to next step on overlay click
281
- doneBtnText: 'Done', // Text on the final button
282
- closeBtnText: 'Close', // Text on the close button for this step
283
- nextBtnText: 'Next', // Next button text for this step
284
- prevBtnText: 'Previous', // Previous button text for this step
285
- showButtons: false, // Do not show control buttons in footer
286
- keyboardControl: true, // Allow controlling through keyboard (escape to close, arrow keys to move)
287
- scrollIntoViewOptions: {}, // We use `scrollIntoView()` when possible, pass here the options for it if you want any
288
- onHighlightStarted: (Element) {}, // Called when element is about to be highlighted
289
- onHighlighted: (Element) {}, // Called when element is fully highlighted
290
- onDeselected: (Element) {}, // Called when element has been deselected
291
- onReset: (Element) {}, // Called when overlay is about to be cleared
292
- onNext: (Element) => {}, // Called when moving to next step on any step
293
- onPrevious: (Element) => {}, // Called when moving to next step on any step
294
- });
295
- </code></pre>
296
- </div>
297
- <p class="top-20">Note that all the button options that you provide in the driver definition can be overridden for a
298
- specific step by giving them in the step definition</p>
299
- <div class="section__example">
300
- <h4>Step Definition</h4>
301
- <p>Here are the set of options that you can pass in each step i.e. an item in array of steps or the object that
302
- you pass to <code>highlight</code> method</p>
303
- <pre><code class="javascript">const stepDefinition = {
304
- element: '#some-item', // Query selector string or Node to be highlighted
305
- popover: { // There will be no popover if empty or not given
306
- title: 'Title', // Title on the popover
307
- description: 'Description', // Body of the popover
308
- showButtons: false, // Do not show control buttons in footer
309
- closeBtnText: 'Close', // Text on the close button for this step
310
- nextBtnText: 'Next', // Next button text for this step
311
- prevBtnText: 'Previous', // Previous button text for this step
312
- }
313
- };
314
- </code></pre>
315
- </div>
316
- <div class="section__example">
317
- <h4>API Methods</h4>
318
- <p>Below are the set of methods that are available to you</p>
319
- <pre><code class="javascript">const driver = new Driver(driverOptions);
320
-
321
- const isActivated = driver.isActivated; // Checks if the driver is active or not
322
- driver.moveNext(); // Moves to next step in the steps list
323
- driver.movePrevious(); // Moves to previous step in the steps list
324
- driver.start(stepNumber = 0); // Starts driving through the defined steps
325
- driver.highlight(string|stepDefinition); // highlights the element using query selector or the step definition
326
- driver.reset(); // Resets the overlay and clears the screen
327
- driver.hasHighlightedElement(); // Checks if there is any highlighted element
328
- driver.hasNextStep(); // Checks if there is next step to move to
329
- driver.hasPreviousStep(); // Checks if there is previous step to move to
330
-
331
- // Prevents the current move. Useful in `onNext` or `onPrevious` if you want to
332
- // perform some asynchronous task and manually move to next step
333
- driver.preventMove();
334
-
335
- // Gets the currently highlighted element on screen
336
- const activeElement = driver.getHighlightedElement();
337
- const lastActiveElement = driver.getLastHighlightedElement();
338
- activeElement.getCalculatedPosition(); // Gets screen co-ordinates of the active element
339
- activeElement.hidePopover(); // Hide the popover
340
- activeElement.showPopover(); // Show the popover
341
-
342
- activeElement.getNode(); // Gets the DOM Element behind this element
343
- </code></pre>
344
- </div>
345
- <p class="top-20">You can use a variety of options to achieve whatever you may want. I have some plans on improving
346
- it further, make sure to keep an eye on the <a href="https://github.com/kamranahmedse/driver.js" target="_blank">GitHub
347
- page</a></p>
348
- </section>
349
- <hr class="hr__fancy">
350
- <div class="section__example">
351
- <h4>Contributing</h4>
352
- <p>You can find the contribution instructions on the <a href="https://github.com/kamranahmedse/driver.js"
353
- target="_blank">GitHub page</a>. Feel free to submit an
354
- issue, create a pull request or spread the word</p>
355
- </div>
356
- <hr class="hr__fancy">
357
- <div class="section__example">
358
- <p>A product by <a href="http://twitter.com/kamranahmedse" target="_blank">Kamran</a> produced out of boredom and
359
- frustration after he gave up on trying to find a perfect solution to integrate journey introduction
360
- and overlays.</p>
361
- <a href="https://twitter.com/kamranahmedse?ref_src=twsrc%5Etfw"
362
- class="twitter-follow-button mr-3"
363
- data-show-screen-name="false"
364
- data-size="large"
365
- target="_blank"
366
- data-show-count="true">Follow @kamranahmedse</a>
367
-
368
- <a class="github-button" href="https://github.com/kamranahmedse"
369
- data-size="large"
370
- target="_blank"
371
- data-show-count="true"
372
- aria-label="Follow @kamranahmedse on GitHub">Follow</a>
373
- </div>
374
- </div>
375
-
376
- <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
377
- <script async defer src="//buttons.github.io/buttons.js"></script>
378
- <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
379
-
380
- <script>
381
- (function (i, s, o, g, r, a, m) {
382
- i['GoogleAnalyticsObject'] = r;
383
- i[r] = i[r] || function () {
384
- (i[r].q = i[r].q || []).push(arguments);
385
- }, i[r].l = 1 * new Date();
386
- a = s.createElement(o),
387
- m = s.getElementsByTagName(o)[0];
388
- a.async = 1;
389
- a.src = g;
390
- m.parentNode.insertBefore(a, m);
391
- })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
392
- ga('create', 'UA-58155965-1', 'auto');
393
- ga('send', 'pageview');
394
- </script>
395
- <script type="text/javascript" src="./driver-demo.min.js"></script></body>
396
- </html>