codepens/bug-report-d20/dist/index.html

45 lines
967 B
HTML

<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Bug Report D20</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<script src="https://unpkg.com/vue"></script>
<div id="app">
<div
class="content"
@click="roll"
>
<div
:class="[
'die',
{ rolling: isRolling }
]"
:data-face="currentFaceIndex + 1"
>
<figure
v-for="n in 20"
:class="[
'face',
'face-' + n
]"
>
<span class="face-text">
{{ faces[n - 1] }}
</span>
</figure>
</div>
</div>
</div>
<p class="source">(built off <a href="https://codepen.io/vicentemundim/details/cenIh">3d d20 die with pure CSS</a>)</p>
<!-- partial -->
<script src="./script.js"></script>
</body>
</html>