Skip to content

Commit 3fc885a

Browse files
committed
Add option to specify custom z-index.
1 parent 7dae000 commit 3fc885a

File tree

10 files changed

+113
-17
lines changed

10 files changed

+113
-17
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- '6'
3+
- '14'
44
cache:
55
directories:
66
- node_modules

demo/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,20 @@ <h4>Offset Spinner Position</h4>
481481
</div>
482482
</div>
483483

484+
<div class="row mt-4">
485+
<div class="col-6 col-md-3 col-lg-2 mb-5">
486+
<div class="btn btn-primary" style="width: 200px" onclick="JsLoadingOverlay.show({'spinnerIcon': 'cog', 'overlayZIndex': 49});">
487+
Custom Overlay Z-Index
488+
</div>
489+
</div>
490+
491+
<div class="col-6 col-md-3 col-lg-2 mb-5">
492+
<div class="btn btn-primary ml-5" style="width: 200px" onclick="JsLoadingOverlay.show({'spinnerIcon': 'cog', 'spinnerZIndex': 50});">
493+
Custom Spinner Z-Index
494+
</div>
495+
</div>
496+
</div>
497+
484498
<div class="row mt-4">
485499
<div class="col-12 text-center">
486500
<h4>Show loading overlay within the container</h4>
@@ -553,6 +567,8 @@ <h5 class="card-title">Card title</h5>
553567
'offsetX': 0,
554568
'lockScroll': false,
555569
'containerID': null,
570+
'overlayZIndex': 99998,
571+
'spinnerZIndex': 99999,
556572
};
557573

558574
if (e.target.contains(document.getElementById('overlay'))) {

dist/js-loading-overlay.js

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js-loading-overlay.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js-loading-overlay.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js-loading-overlay.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"jest": "^24.9.0",
2626
"request": "^2.88.0",
2727
"webpack": "^4.39.2",
28-
"webpack-cli": "^3.3.9"
28+
"webpack-cli": "^3.3.9",
29+
"xmlhttprequest": "^1.8.0"
2930
},
3031
"scripts": {
3132
"test": "jest",
@@ -37,5 +38,6 @@
3738
"author": "Muhammad Faiz <[email protected]>",
3839
"repository": "https://github.com/muhdfaiz/js-loading-overlay.git",
3940
"license": "MIT",
40-
"private": false
41+
"private": false,
42+
"dependencies": {}
4143
}

0 commit comments

Comments
 (0)