-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (56 loc) · 1.99 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html>
<head>
<title>DSA Würfel Tool</title>
<script src="vue.js"></script>
<meta charset='utf-8'>
<link rel="stylesheet" href="style.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2, minimum-scale=0.5">
</head>
<body>
<div id="app">
<h1>DSA Würfel Tool</h1>
Werte editieren? <button v-on:click="toogleEdit()">Edit</button> ACHTUNG: Werte werden aktuell nicht gespeichert!
<h2>Attribute </h2>
<template v-if="editMode==true">
<ul id="attributes" v-show="editMode">
<li v-for="attribute, attributeID in myAttributes">
<span class="attr">{{ attributeID }}</span>: <input v-model="attribute.value" type="number" size="2" min="1" max="20">
</li>
</ul>
</template>
<template v-else>
<ul id="attributes">
<li v-for="attribute, attributeID in myAttributes">
<span class="attr">{{ attributeID }}</span>: {{ attribute.value }}
</li>
</ul>
</template>
<h2>Fertigkeiten</h2>
<template v-if="editMode==true">
<ul id="skills">
<li v-for="(skill, skillID) in skills">
<button v-on:click="rollSkill(skillID)">
{{ skill.name }} - <input v-model="skill.value" min="0" max="24" type="number">
</button>
</li>
</ul>
</template>
<template v-else>
<ul id="skills">
<li v-for="(skill, skillID) in skills">
<button v-on:click="rollSkill(skillID)">
{{ skill.name }} (<span class="attr">{{ skill.attributes[0] }}/{{ skill.attributes[1] }}/{{ skill.attributes[2] }}</span>) - {{ skill.value }}
</button>
</li>
</ul>
</template>
<!-- <h2>Ergebnis:</h2>-->
<div v-html="logs"></div>
</div>
<footer>
<a href="https://github.com/julia-r/dsa-roll">Auf Github</a>
</footer>
<script src="script.js"></script>
</body>
</html>