Skip to content

Commit 9d6a369

Browse files
committed
Remove example, fix coding style issues
1 parent 3769a90 commit 9d6a369

File tree

2 files changed

+3
-73
lines changed

2 files changed

+3
-73
lines changed

example/bad-opacity-example/index.html

Lines changed: 0 additions & 72 deletions
This file was deleted.

intro.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,10 @@
636636
while (parentElm != null) {
637637
if (parentElm.tagName.toLowerCase() === 'body') break;
638638

639+
//fix The Stacking Contenxt problem.
640+
//More detail: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Understanding_z_index/The_stacking_context
639641
var zIndex = _getPropValue(parentElm, 'z-index');
640-
var opacity = parseFloat(_getPropValue(parentElm, 'opacity'));
642+
var opacity = parseFloat(_getPropValue(parentElm, 'opacity'));
641643
if (/[0-9]+/.test(zIndex) || opacity < 1) {
642644
parentElm.className += ' introjs-fixParent';
643645
}

0 commit comments

Comments
 (0)