Skip to content

Commit 0470892

Browse files
authored
Merge pull request #3 from dasJ/patch-1
Click through sparks
2 parents 8f28c73 + 136fc86 commit 0470892

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: public/js/unicorn.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030

3131
if (ns){
3232
for (i = 0; i < n; i++)
33-
document.write('<layer name="dots'+i+'" top=0 left=0 width='+i/2+' height='+i/2+' bgcolor=#ff0000></layer>');
33+
document.write('<layer name="dots'+i+'" top=0 left=0 width='+i/2+' height='+i/2+' bgcolor=#ff0000 style="pointer-events:none"></layer>');
3434
}
3535

3636
if (ie)
37-
document.write('<div id="con" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
37+
document.write('<div id="con" style="position:absolute;top:0px;left:0px;pointer-events:none"><div style="position:relative">');
3838

3939
if (ie||n6){
4040
for (i = 0; i < n; i++)
41-
document.write('<div id="dots'+i+'" style="position:absolute;top:0px;left:0px;width:'+i/2+'px;height:'+i/2+'px;background:#ff0000;font-size:'+i/2+'"></div>');
41+
document.write('<div id="dots'+i+'" style="position:absolute;top:0px;left:0px;width:'+i/2+'px;height:'+i/2+'px;background:#ff0000;font-size:'+i/2+';pointer-events:none"></div>');
4242
}
4343

4444
if (ie)
@@ -246,6 +246,7 @@
246246
div.style.height=height+"px";
247247
div.style.width=width+"px";
248248
div.style.overflow="hidden";
249+
div.style["pointer-events"]="none";
249250
return (div);
250251
}
251252

0 commit comments

Comments
 (0)