Author SHA1 Message Date
Jaime PilloraandGitHub e3da96e3a1 add license 2022-11-02 15:44:28 +11:00
Jaime PilloraandGitHub 0e258e80ec update link 2021-04-27 05:01:34 +10:00
Jaime PilloraandGitHub 7191c17e26 Merge pull request #84 from amensouissi/master
call 'contains method' from 'document.body' (for ie)
2016-10-05 14:18:57 +11:00
Amen Souissi d27d96fc24 call 'contains method' from 'document.body' (for ie) 2016-09-30 14:15:59 +02:00
Jaime Pillora d5ddfb7bd1 Merge pull request #68 from notifyjs/revert-57-master
Revert "Make a nice top/bottom center global position"
2016-06-09 03:58:37 +10:00
3 changed files with 23 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Jaime Pillora <dev@jpillora.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+1 -1
View File
@@ -5,7 +5,7 @@ Notify.js
See demos and full documentation at: See demos and full documentation at:
## https://notifyjs.com/ ## https://notifyjs.jpillora.com/
---- ----
+1 -1
View File
@@ -346,7 +346,7 @@
var align = positions[pAlign]; var align = positions[pAlign];
var key = pMain + "|" + pAlign; var key = pMain + "|" + pAlign;
var anchor = globalAnchors[key]; var anchor = globalAnchors[key];
if (!anchor || !document.contains(anchor[0])) { if (!anchor || !document.body.contains(anchor[0])) {
anchor = globalAnchors[key] = createElem("div"); anchor = globalAnchors[key] = createElem("div");
var css = {}; var css = {};
css[main] = 0; css[main] = 0;