You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
900 B

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fishy</title>
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<div id="root">
<div class="rod">
<p class="hook" :style="'margin-bottom: ' + force * 2 + 'px'"></p>
<img v-if="fishy" :src="fishy.sprite" alt="fishy.sprite" class="fish" :style="'bottom: '+fishy.position+'px'">
</div>
{{ force }} | {{ pull }} | {{ intervalID }} | {{ fishy ? fishy.position +' '+ fishy.name: '' }}<br>
<div class="pull" v-on:pointerdown="pull = true" v-on:pointerup="pull = false">
<span>PULL</span>
</div>
<a href="javascript:" v-on:click="deployFish()" v-if="!fishy">let there be fish</a>
</div>
</div>
<script src="https://unpkg.com/vue@next"></script>
<script src="js/app.js"></script>
</body>
</html>