|
1117 | 1117 | } else {
|
1118 | 1118 | return propValue;
|
1119 | 1119 | }
|
1120 |
| - }; |
| 1120 | + } |
1121 | 1121 |
|
1122 | 1122 | /**
|
1123 | 1123 | * Checks to see if target element (or parents) position is fixed or not
|
|
1139 | 1139 | }
|
1140 | 1140 |
|
1141 | 1141 | return _isFixed(p);
|
1142 |
| - }; |
| 1142 | + } |
1143 | 1143 |
|
1144 | 1144 | /**
|
1145 | 1145 | * Provides a cross-browser way to get the screen dimensions
|
|
1224 | 1224 | }, 10);
|
1225 | 1225 |
|
1226 | 1226 | return true;
|
1227 |
| - }; |
| 1227 | + } |
1228 | 1228 |
|
1229 | 1229 | /**
|
1230 | 1230 | * Removes open hint (tooltip hint)
|
|
1240 | 1240 | tooltip.parentNode.removeChild(tooltip);
|
1241 | 1241 | return step;
|
1242 | 1242 | }
|
1243 |
| - }; |
| 1243 | + } |
1244 | 1244 |
|
1245 | 1245 | /**
|
1246 | 1246 | * Start parsing hint items
|
|
1311 | 1311 | document.attachEvent('onclick', _removeHintTooltip.bind(this));
|
1312 | 1312 | document.attachEvent('onresize', _reAlignHints.bind(this));
|
1313 | 1313 | }
|
1314 |
| - }; |
| 1314 | + } |
1315 | 1315 |
|
1316 | 1316 | /**
|
1317 | 1317 | * Re-aligns all hint elements
|
|
1347 | 1347 | if (typeof (this._hintCloseCallback) !== 'undefined') {
|
1348 | 1348 | this._hintCloseCallback.call(this, stepId);
|
1349 | 1349 | }
|
1350 |
| - }; |
| 1350 | + } |
1351 | 1351 |
|
1352 | 1352 | /**
|
1353 | 1353 | * Hide all hints
|
|
1363 | 1363 | _hideHint.call(this, hints[i].getAttribute('data-step'));
|
1364 | 1364 | }
|
1365 | 1365 | }
|
1366 |
| - }; |
| 1366 | + } |
1367 | 1367 |
|
1368 | 1368 | /**
|
1369 | 1369 | * Show all hints
|
|
1474 | 1474 | if (typeof (this._hintsAddedCallback) !== 'undefined') {
|
1475 | 1475 | this._hintsAddedCallback.call(this);
|
1476 | 1476 | }
|
1477 |
| - }; |
| 1477 | + } |
1478 | 1478 |
|
1479 | 1479 | /**
|
1480 | 1480 | * Aligns hint position
|
|
1517 | 1517 | hint.style.top = offset.top + 'px';
|
1518 | 1518 | break;
|
1519 | 1519 | }
|
1520 |
| - }; |
| 1520 | + } |
1521 | 1521 |
|
1522 | 1522 | /**
|
1523 | 1523 | * Triggers when user clicks on the hint element
|
|
1591 | 1591 |
|
1592 | 1592 | //set proper position
|
1593 | 1593 | _placeTooltip.call(this, hintElement, tooltipLayer, arrowLayer, null, true);
|
1594 |
| - }; |
| 1594 | + } |
1595 | 1595 |
|
1596 | 1596 | /**
|
1597 | 1597 | * Get an element position on the page
|
|
1625 | 1625 | elementPosition.left = _x;
|
1626 | 1626 |
|
1627 | 1627 | return elementPosition;
|
1628 |
| - }; |
| 1628 | + } |
1629 | 1629 |
|
1630 | 1630 | /**
|
1631 | 1631 | * Gets the current progress percentage
|
|
1638 | 1638 | // Steps are 0 indexed
|
1639 | 1639 | var currentStep = parseInt((this._currentStep + 1), 10);
|
1640 | 1640 | return ((currentStep / this._introItems.length) * 100);
|
1641 |
| - }; |
| 1641 | + } |
1642 | 1642 |
|
1643 | 1643 | /**
|
1644 | 1644 | * Overwrites obj1's values with obj2's and adds obj2's if non existent in obj1
|
|
1653 | 1653 | for (var attrname in obj1) { obj3[attrname] = obj1[attrname]; }
|
1654 | 1654 | for (var attrname in obj2) { obj3[attrname] = obj2[attrname]; }
|
1655 | 1655 | return obj3;
|
1656 |
| - }; |
| 1656 | + } |
1657 | 1657 |
|
1658 | 1658 | var introJs = function (targetElm) {
|
1659 | 1659 | if (typeof (targetElm) === 'object') {
|
|
0 commit comments