Browse Source

fixes

master
neroignis@gmail.com 3 years ago
parent
commit
79fcb741e2
  1. 2
      css/app.css
  2. 5
      index.html
  3. 6
      js/app.js

2
css/app.css

@ -39,7 +39,7 @@ body {
color: white; color: white;
} }
.pull * { * {
user-select: none; user-select: none;
} }

5
index.html

@ -12,8 +12,11 @@
<div id="root" class="container"> <div id="root" class="container">
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-6">
Score: {{ score }}<br/> Score: {{ score }}<br/>
Fishies caught: {{ fishiesCaught.length }}
</div>
<div class="col-6">
<a href="javascript:" v-on:click="deployFish()" v-if="!fishy">let there be fish</a> <a href="javascript:" v-on:click="deployFish()" v-if="!fishy">let there be fish</a>
</div> </div>
<div class="col-4"> <div class="col-4">

6
js/app.js

@ -122,14 +122,14 @@ const FishApp = {
window.clearInterval(this.intervals.fishMovementIntervalID); window.clearInterval(this.intervals.fishMovementIntervalID);
this.score += this.fishy.points; this.score += this.fishy.points;
this.fishyCaught.push(this.fishy); this.fishiesCaught.push(this.fishy);
this.fishy = null; this.fishy = null;
this.pull = false; this.pull = false;
iziToast.success({ iziToast.success({
title: 'fischi ist jetzt dein freund', title: 'fischi ist jetzt dein freund',
position: 'topCenter' position: 'bottomCenter'
}); });
}, },
fishyFled() { fishyFled() {
@ -140,7 +140,7 @@ const FishApp = {
iziToast.warning({ iziToast.warning({
title: 'fischi fort!', title: 'fischi fort!',
position: 'topCenter' position: 'bottomCenter'
}); });
} }
} }

Loading…
Cancel
Save