-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.0.5: new config and open method parameter (newwindow) + JS fixes +…
… added u87.min.css v0.9.18 v1.0.5: - new config and open method parameter (newwindow) - JS fixes - added u87.min.css v0.9.18
- Loading branch information
Showing
7 changed files
with
336 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/** | ||
* imglightbox | ||
* @version 1.0.4 | ||
* @version 1.0.5 | ||
* @author Ferenc Czigler <[email protected]> | ||
* @see https://github.com/Serrin/ | ||
* @see https://github.com/Serrin/imgLightbox | ||
* | ||
* <link href="imglightbox.css" rel="stylesheet" type="text/css"> | ||
* <script src="imglightbox.js"></script> | ||
|
@@ -31,7 +31,7 @@ | |
#imgLightbox a:hover, | ||
#imgLightbox a:active, | ||
#imgLightbox a:visited { | ||
text-decoration: none; | ||
text-decoration: none !important; | ||
} | ||
|
||
#imgLightbox-button-area { | ||
|
@@ -58,7 +58,7 @@ | |
opacity: 1; | ||
} | ||
|
||
#imgLightbox-button-download { | ||
#imgLightbox-button-download, #imgLightbox-button-newwindow { | ||
display: none; | ||
color: white !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/** | ||
* imglightbox | ||
* @version 1.0.4 | ||
* @version 1.0.5 | ||
* @author Ferenc Czigler <[email protected]> | ||
* @see https://github.com/Serrin/ | ||
* @see https://github.com/Serrin/imgLightbox | ||
* | ||
* <link href="imglightbox.css" rel="stylesheet" type="text/css"> | ||
* <script src="imglightbox.js"></script> | ||
|
@@ -12,22 +12,33 @@ var imgLightbox = (function(){ | |
"use strict"; | ||
return { | ||
config: { | ||
version: "1.0.4", | ||
download: false | ||
version: "1.0.5", | ||
download: false, | ||
newwindow: false | ||
}, | ||
open: function (filename, download) { | ||
open: function (filename, download, newwindow) { | ||
if (typeof download !== "boolean") { download = this.config.download; } | ||
if (typeof newwindow !== "boolean") { newwindow = this.config.newwindow; } | ||
var els = document.getElementById("imgLightbox").style; | ||
els.backgroundImage = "url('"+filename+"')"; | ||
els.display = "block"; | ||
var dlbtn = document.getElementById("imgLightbox-button-download"); | ||
var nwbtn = document.getElementById("imgLightbox-button-newwindow"); | ||
if (download) { | ||
dlbtn.style.display = "inline-block"; | ||
dlbtn.href = filename; | ||
dlbtn.target = "_blank"; | ||
dlbtn.download = filename; | ||
} else { | ||
dlbtn.style.display = "none"; | ||
} | ||
if (newwindow) { | ||
nwbtn.style.display = "inline-block"; | ||
nwbtn.href = filename; | ||
nwbtn.target = "_blank"; | ||
} else { | ||
nwbtn.style.display = "none"; | ||
} | ||
}, | ||
close: function () { | ||
document.getElementById("imgLightbox").style.display="none"; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.