|
1177 | 1177 | } else {
|
1178 | 1178 | return propValue;
|
1179 | 1179 | }
|
1180 |
| - }; |
| 1180 | + } |
1181 | 1181 |
|
1182 | 1182 | /**
|
1183 | 1183 | * Checks to see if target element (or parents) position is fixed or not
|
|
1199 | 1199 | }
|
1200 | 1200 |
|
1201 | 1201 | return _isFixed(p);
|
1202 |
| - }; |
| 1202 | + } |
1203 | 1203 |
|
1204 | 1204 | /**
|
1205 | 1205 | * Provides a cross-browser way to get the screen dimensions
|
|
1279 | 1279 | }, 10);
|
1280 | 1280 |
|
1281 | 1281 | return true;
|
1282 |
| - }; |
| 1282 | + } |
1283 | 1283 |
|
1284 | 1284 | /**
|
1285 | 1285 | * Removes open hint (tooltip hint)
|
|
1295 | 1295 | tooltip.parentNode.removeChild(tooltip);
|
1296 | 1296 | return step;
|
1297 | 1297 | }
|
1298 |
| - }; |
| 1298 | + } |
1299 | 1299 |
|
1300 | 1300 | /**
|
1301 | 1301 | * Start parsing hint items
|
|
1366 | 1366 | document.attachEvent('onclick', _removeHintTooltip.bind(this));
|
1367 | 1367 | document.attachEvent('onresize', _reAlignHints.bind(this));
|
1368 | 1368 | }
|
1369 |
| - }; |
| 1369 | + } |
1370 | 1370 |
|
1371 | 1371 | /**
|
1372 | 1372 | * Re-aligns all hint elements
|
|
1402 | 1402 | if (typeof (this._hintCloseCallback) !== 'undefined') {
|
1403 | 1403 | this._hintCloseCallback.call(this, stepId);
|
1404 | 1404 | }
|
1405 |
| - }; |
| 1405 | + } |
1406 | 1406 |
|
1407 | 1407 | /**
|
1408 | 1408 | * Hide all hints
|
|
1418 | 1418 | _hideHint.call(this, hints[i].getAttribute('data-step'));
|
1419 | 1419 | }
|
1420 | 1420 | }
|
1421 |
| - }; |
| 1421 | + } |
1422 | 1422 |
|
1423 | 1423 | /**
|
1424 | 1424 | * Show all hints
|
|
1529 | 1529 | if (typeof (this._hintsAddedCallback) !== 'undefined') {
|
1530 | 1530 | this._hintsAddedCallback.call(this);
|
1531 | 1531 | }
|
1532 |
| - }; |
| 1532 | + } |
1533 | 1533 |
|
1534 | 1534 | /**
|
1535 | 1535 | * Aligns hint position
|
|
1572 | 1572 | hint.style.top = offset.top + 'px';
|
1573 | 1573 | break;
|
1574 | 1574 | }
|
1575 |
| - }; |
| 1575 | + } |
1576 | 1576 |
|
1577 | 1577 | /**
|
1578 | 1578 | * Triggers when user clicks on the hint element
|
|
1646 | 1646 |
|
1647 | 1647 | //set proper position
|
1648 | 1648 | _placeTooltip.call(this, hintElement, tooltipLayer, arrowLayer, null, true);
|
1649 |
| - }; |
| 1649 | + } |
1650 | 1650 |
|
1651 | 1651 | /**
|
1652 | 1652 | * Get an element position on the page
|
|
1688 | 1688 | }
|
1689 | 1689 |
|
1690 | 1690 | return elementPosition;
|
1691 |
| - }; |
| 1691 | + } |
1692 | 1692 |
|
1693 | 1693 | /**
|
1694 | 1694 | * Gets the current progress percentage
|
|
1701 | 1701 | // Steps are 0 indexed
|
1702 | 1702 | var currentStep = parseInt((this._currentStep + 1), 10);
|
1703 | 1703 | return ((currentStep / this._introItems.length) * 100);
|
1704 |
| - }; |
| 1704 | + } |
1705 | 1705 |
|
1706 | 1706 | /**
|
1707 | 1707 | * Overwrites obj1's values with obj2's and adds obj2's if non existent in obj1
|
|
1716 | 1716 | for (var attrname in obj1) { obj3[attrname] = obj1[attrname]; }
|
1717 | 1717 | for (var attrname in obj2) { obj3[attrname] = obj2[attrname]; }
|
1718 | 1718 | return obj3;
|
1719 |
| - }; |
| 1719 | + } |
1720 | 1720 |
|
1721 | 1721 | var introJs = function (targetElm) {
|
1722 | 1722 | if (typeof (targetElm) === 'object') {
|
|
0 commit comments