Skip to content

Commit

Permalink
Increased z-index and added the option to change it
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanahuja committed May 1, 2020
1 parent d4d34b3 commit 36d3baf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/Notifier.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- *
* Nofifier
*
* @version 1.2.1
* @version 1.2.2
*
* @author Javier Sanahuja Liebana <[email protected]>
*
Expand Down Expand Up @@ -265,6 +265,15 @@ <h4 id="options" class="mt-4"><a class="text-underline" href="#options">Notifier
<p><code>bottom</code>: The latest notification will show at bottom.</p>
</td>
</tr>
<tr>
<td class="d-flex flex-wrap">
<code class="text-bold flex-grow-1">zindex</code>
<span class="text-danger text-small text-italic">Optional</span>
</td>
<td><em>int</em></td>
<td><code>9999</code></td>
<td>The CSS z-index the notifications container should have</td>
</tr>
<tr>
<td class="d-flex flex-wrap">
<code class="text-bold flex-grow-1">default_time</code>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@jsanahuja/notifierjs",
"description": "Instagram Feed without access token. Not using the Instagram API",
"homepage": "https://github.com/jsanahuja/Notifierjs",
"version": "1.2.1",
"version": "1.2.2",
"keywords": [
"notifier",
"notification",
Expand Down
5 changes: 3 additions & 2 deletions src/Notifier.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Nofifier
*
* @version 1.2.1
* @version 1.2.2
*
* @author Javier Sanahuja Liebana <[email protected]>
*
Expand All @@ -19,6 +19,7 @@
}(this, function() {
var defaults = {
autopush: true,
zindex: 9999,
default_time: 4500,
vanish_time: 300,
fps: 30,
Expand Down Expand Up @@ -213,7 +214,7 @@
if(this.container === null){
this.container = document.createElement('div');
this.container.id = "notifyjs-container-" + this.options.position;
this.container.style.zIndex = 100;
this.container.style.zIndex = this.options.zindex;
this.container.style.position = "fixed";
this.container.style.maxWidth = "304px";
this.container.style.width = "100%";
Expand Down

0 comments on commit 36d3baf

Please sign in to comment.