kamrify commited on
Commit
3a2c734
·
1 Parent(s): ef1f6b6

UI Updates

Browse files
demo/scripts/demo.js CHANGED
@@ -176,7 +176,7 @@ document.addEventListener("DOMContentLoaded", function () {
176
  popover: {
177
  title: 'Did you know?',
178
  description: 'You can add HTML in title or description also!',
179
- position: 'left'
180
  }
181
  });
182
  });
@@ -280,7 +280,7 @@ document.addEventListener("DOMContentLoaded", function () {
280
  popover: {
281
  title: 'Title for the Popover',
282
  description: 'Description for it',
283
- position: 'left', // can be `top`, `left`, `right`, `bottom`
284
  }
285
  });
286
  });
@@ -303,7 +303,7 @@ document.addEventListener("DOMContentLoaded", function () {
303
  popover: {
304
  title: 'Title on Popover',
305
  description: 'Body of the popover',
306
- position: 'left'
307
  }
308
  },
309
  {
@@ -311,7 +311,7 @@ document.addEventListener("DOMContentLoaded", function () {
311
  popover: {
312
  title: 'Title on Popover',
313
  description: 'Body of the popover',
314
- position: 'right'
315
  }
316
  },
317
  {
@@ -339,4 +339,9 @@ document.addEventListener("DOMContentLoaded", function () {
339
  featureIntroductionDriver.start();
340
  });
341
 
 
 
 
 
 
342
  });
 
176
  popover: {
177
  title: 'Did you know?',
178
  description: 'You can add HTML in title or description also!',
179
+ position: 'top'
180
  }
181
  });
182
  });
 
280
  popover: {
281
  title: 'Title for the Popover',
282
  description: 'Description for it',
283
+ position: 'top', // can be `top`, `left`, `right`, `bottom`
284
  }
285
  });
286
  });
 
303
  popover: {
304
  title: 'Title on Popover',
305
  description: 'Body of the popover',
306
+ position: 'bottom'
307
  }
308
  },
309
  {
 
311
  popover: {
312
  title: 'Title on Popover',
313
  description: 'Body of the popover',
314
+ position: 'top'
315
  }
316
  },
317
  {
 
339
  featureIntroductionDriver.start();
340
  });
341
 
342
+ const newURL = location.href.split("?")[0];
343
+ if (newURL !== location.href) {
344
+ window.location = newURL;
345
+ window.location.href = newURL;
346
+ }
347
  });
demo/styles/base.scss CHANGED
@@ -135,6 +135,10 @@ blockquote {
135
  margin-top: 20px;
136
  }
137
 
 
 
 
 
138
  .zero-bottom {
139
  margin-bottom: 0;
140
  }
 
135
  margin-top: 20px;
136
  }
137
 
138
+ .top-30 {
139
+ margin-top: 30px;
140
+ }
141
+
142
  .zero-bottom {
143
  margin-bottom: 0;
144
  }
demo/styles/demo.scss CHANGED
@@ -65,7 +65,7 @@ section {
65
  }
66
 
67
  .section__header {
68
- margin: 10px 0 30px;
69
  text-align: center;
70
  display: block;
71
  padding: 10px;
 
65
  }
66
 
67
  .section__header {
68
+ margin: 10px 0 20px;
69
  text-align: center;
70
  display: block;
71
  padding: 10px;
index.html CHANGED
@@ -20,6 +20,13 @@
20
 
21
  <a id="animated-tour" href="javascript:void(0)" class="btn btn__example btn__dark btn-left">With Animation</a>
22
  <a id="boring-tour" href="javascript:void(0)" class="btn btn__example btn__dark btn-right">without Animation</a>
 
 
 
 
 
 
 
23
  </section>
24
 
25
  <blockquote>
 
20
 
21
  <a id="animated-tour" href="javascript:void(0)" class="btn btn__example btn__dark btn-left">With Animation</a>
22
  <a id="boring-tour" href="javascript:void(0)" class="btn btn__example btn__dark btn-right">without Animation</a>
23
+
24
+ <div class="github-button top-30">
25
+ <!-- Place this tag where you want the button to render. -->
26
+ <a class="github-button" href="https://github.com/kamranahmedse/driver.js" data-size="large"
27
+ data-show-count="true" aria-label="Star kamranahmedse/driver.js on GitHub">Star</a>
28
+ </div>
29
+
30
  </section>
31
 
32
  <blockquote>
src/core/overlay.js CHANGED
@@ -55,7 +55,7 @@ export default class Overlay {
55
  }
56
 
57
  // If highlighted element is not changed from last time
58
- if (this.highlightedElement && this.highlightedElement.isSame(this.lastHighlightedElement)) {
59
  return;
60
  }
61
 
 
55
  }
56
 
57
  // If highlighted element is not changed from last time
58
+ if (element.isSame(this.highlightedElement)) {
59
  return;
60
  }
61