Skip to content

Commit 0c1b941

Browse files
committed
Add introjs templates <3
1 parent eb021ee commit 0c1b941

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

intro.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
case 'floating':
438438
arrowLayer.style.display = 'none';
439439

440-
//we have to adjust the top and left of layer manually for intro items without element{
440+
//we have to adjust the top and left of layer manually for intro items without element
441441
tooltipOffset = _getOffset(tooltipLayer);
442442

443443
tooltipLayer.style.left = '50%';
@@ -452,16 +452,16 @@
452452

453453
break;
454454
case 'bottom-right-aligned':
455-
arrowLayer.className = 'introjs-arrow top-right';
456-
tooltipLayer.style.right = '0px';
455+
arrowLayer.className = 'introjs-arrow top-right';
456+
tooltipLayer.style.right = '0px';
457457
tooltipLayer.style.bottom = '-' + (_getOffset(tooltipLayer).height + 10) + 'px';
458458
break;
459459
case 'bottom-middle-aligned':
460460
targetElementOffset = _getOffset(targetElement);
461-
tooltipOffset = _getOffset(tooltipLayer);
461+
tooltipOffset = _getOffset(tooltipLayer);
462462

463-
arrowLayer.className = 'introjs-arrow top-middle';
464-
tooltipLayer.style.left = (targetElementOffset.width/2 - tooltipOffset.width/2) + 'px';
463+
arrowLayer.className = 'introjs-arrow top-middle';
464+
tooltipLayer.style.left = (targetElementOffset.width / 2 - tooltipOffset.width / 2) + 'px';
465465
tooltipLayer.style.bottom = '-' + (tooltipOffset.height + 10) + 'px';
466466
break;
467467
case 'bottom-left-aligned':

0 commit comments

Comments
 (0)