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.
41 lines
1.2 KiB
41 lines
1.2 KiB
<!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> |
|
<div v-if="fishy" class="fish" :style="'bottom: '+fishy.position+'px'"> |
|
<img :src="fishy.sprite" alt="fishy.sprite"><br/> |
|
<div class="fishyScoreIndicatorWrapper"> |
|
<div class="fishyScoreIndicator" :style="'width: '+(fishyScore)+'%;'"></div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
Score: {{ score }}<br/> |
|
Force: {{ force }}<br/> |
|
Pulling: {{ pull }}<br/> |
|
<template v-if="fishy"> |
|
Fishy-position: {{ fishyPosition }}<br/> |
|
Fishy-name: {{ fishy.name }}<br/> |
|
FishyScore: {{ fishyScore }}<br/> |
|
</template> |
|
<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> |