Make the TV catch fire eventually.

This commit is contained in:
Tony Garnock-Jones 2016-05-11 21:22:26 -04:00
parent 7b9f5a54e8
commit e67d018079
4 changed files with 18 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -19,6 +19,7 @@
<section> <section>
<section> <section>
<h3>TV</h3> <h3>TV</h3>
<div class="flamecontainer"><img class="flames" src="img/flames.gif"></div>
<div id="tv-container"> <div id="tv-container">
&nbsp; &nbsp;
<ul id="tv" class="alerts"> <ul id="tv" class="alerts">

View File

@ -117,6 +117,9 @@ function spawnTimeoutListener() {
on asserted Syndicate.Timer.timeLaterThan(powerOnTime + 3000) { on asserted Syndicate.Timer.timeLaterThan(powerOnTime + 3000) {
react { assert tvAlert('Stove on too long?'); } react { assert tvAlert('Stove on too long?'); }
} }
on asserted Syndicate.Timer.timeLaterThan(powerOnTime + 10000) {
$("img.flames").show();
}
} }
} }
} }

View File

@ -2,6 +2,20 @@ template {
display: none; display: none;
} }
div.flamecontainer {
position: relative;
width: 0;
height: 0;
}
img.flames {
display: none;
position: absolute;
bottom: -20px;
left: 25px;
width: 356px;
}
#tv-container { #tv-container {
background: url('img/tvscreen.gif'); background: url('img/tvscreen.gif');
background-size: 100%; background-size: 100%;