Skip to content

Commit

Permalink
fixing the z-index issue
Browse files Browse the repository at this point in the history
  • Loading branch information
weisjohn committed Dec 23, 2011
1 parent 3be9bab commit 7924571
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
15 changes: 8 additions & 7 deletions qr_bookmarklet/js/qr_bookmarklet.js
Expand Up @@ -44,26 +44,27 @@

load_script("http://weisjohn.github.com/widgets/qr_bookmarklet/js/jquery.qrcode.js/jquery.qrcode.js", function(){

return $.fn.qrcode;
return jQuery.fn.qrcode;

}, function() {

window.gencode = function() {

$("<div></div>")
jQuery("<div></div>")
.appendTo("body")
.css({
position: "absolute",
"position": "absolute",
"top" : "0",
"left" : "0",
"border" : "18px solid #FFFFFF"
"border" : "18px solid #FFFFFF",
"zIndex" : "2147483645"
}).qrcode({
width: 256,
height: 256,
text : location.href,
correctLevel : QRErrorCorrectLevel.L
}).append(
$("<a></a>")
jQuery("<a></a>")
.html("close")
.attr("href", "#")
.css({
Expand All @@ -73,10 +74,10 @@
"textDecoration" : "none",
"fontSize" : "24px",
"color" : "black",
"padding" : "6px",
"padding" : "6px"
"height" : "28px"
}).click(function(){
$(this).parent().remove();
jQuery(this).parent().remove();
})
);

Expand Down
8 changes: 4 additions & 4 deletions qr_bookmarklet/js/qr_bookmarklet_src.js
Expand Up @@ -44,13 +44,13 @@

load_script("http://weisjohn.github.com/widgets/qr_bookmarklet/js/jquery.qrcode.js/jquery.qrcode.js", function(){

return $.fn.qrcode;
return jQuery.fn.qrcode;

}, function() {

window.gencode = function() {

$("<div></div>")
jQuery("<div></div>")
.appendTo("body")
.css({
position: "absolute",
Expand All @@ -63,7 +63,7 @@
text : location.href,
correctLevel : QRErrorCorrectLevel.L
}).append(
$("<a></a>")
jQuery("<a></a>")
.html("close")
.attr("href", "#")
.css({
Expand All @@ -76,7 +76,7 @@
"padding" : "6px"
"height" : "28px"
}).click(function(){
$(this).parent().remove();
jQuery(this).parent().remove();
})
);

Expand Down

0 comments on commit 7924571

Please sign in to comment.