Skip to content

Commit

Permalink
Try this again
Browse files Browse the repository at this point in the history
  • Loading branch information
jemus42 committed Nov 3, 2013
1 parent 9609452 commit 17c6010
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div id="container">

<h1 id="rain-caption"></h1>
<div id="image"></div>
<div id="imdiv"></div>
<p id="rain-text"></p>

<hr/>
Expand Down
4 changes: 2 additions & 2 deletions rain.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ $.ajax('http://api.wurstmineberg.de/server/level.json', {
} else if (rainstatus == 0) {
$('#rain-caption').text("No!")
$('#rain-text').text("It's not raining, you can come out now.")
$('#image').text("<img src='http://hydra-media.cursecdn.com/minecraft.gamepedia.com/6/61/Sun.png' class='img-rounded'>")
$('#imdiv').prepend("<img id='wimg' src='http://hydra-media.cursecdn.com/minecraft.gamepedia.com/6/61/Sun.png' class='img-rounded'>")
} else {
$('#rain-caption').text("Yes! D:")
$('#rain-text').text("It's raining! Grab yo' helmets, hide yo' snowmen!")
$('#image').text("<img src='http://i.imgur.com/TP4OGpU.png' class='img-rounded'>")
$('#imdiv').prepend("<img id='wimg' src='http://i.imgur.com/TP4OGpU.png' class='img-rounded' />")

}
}
Expand Down

0 comments on commit 17c6010

Please sign in to comment.