sun rays fixing
This commit is contained in:
parent
ae55d68e8b
commit
ec3d35e051
|
@ -24,9 +24,9 @@
|
|||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.088388348"
|
||||
inkscape:cx="2468.9986"
|
||||
inkscape:cy="4383.3628"
|
||||
inkscape:zoom="1.4142136"
|
||||
inkscape:cx="3929.4658"
|
||||
inkscape:cy="4211.2201"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
|
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
@ -74,9 +74,9 @@ function Cloud() {
|
|||
this.x = -50;
|
||||
} else {
|
||||
this.speedX *= -1;
|
||||
this.x = $('body').innerWidth();
|
||||
this.x = screen.width;
|
||||
}
|
||||
this.y = Math.floor(Math.random() / 2 * $('body').innerHeight());
|
||||
this.y = Math.floor(Math.random() / 2 * screen.height);
|
||||
this.el = $('<img class="backgroundcloud" src="images/pixelcloud.png"/>');
|
||||
$('body').append(this.el);
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ Cloud.prototype.update = function() {
|
|||
};
|
||||
|
||||
Cloud.prototype.isDone = function() {
|
||||
return (this.x < -100) || (this.x > $('body').innerWidth());
|
||||
return (this.x < -100) || (this.x > screen.width);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
}
|
||||
body {
|
||||
font-family: LondonBetween, sans-serif;
|
||||
margin: 12pt;
|
||||
margin: 12pt auto;
|
||||
width: 900px;
|
||||
}
|
||||
#cloudy {
|
||||
|
@ -465,7 +465,8 @@ td.event {
|
|||
#solar {
|
||||
background-image: url('../images/sun.svg');
|
||||
z-index: -1000;
|
||||
overflow: visible;
|
||||
overflow: hidden;
|
||||
clip: auto;
|
||||
position: absolute;
|
||||
top: -3900px;
|
||||
right: -3900px;
|
||||
|
|
Loading…
Reference in New Issue
Block a user