-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (82 loc) · 3.68 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="zichy">
<meta name="description" content="Keep track of player’s life points, poison counters, and commander damage in the trading card game Magic: The Gathering.">
<meta property="og:title" content="kaunter">
<meta property="og:desc" content="Keep track of player’s life points, poison counters, and commander damage in the trading card game Magic: The Gathering.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://counter.hack.re">
<title>kaunter</title>
<link rel="stylesheet" type="text/css" href="main.css" media="screen">
</head>
<body>
<div class="content">
<div class="intro">
<div class="intro__inner">
<h1 class="intro__headline">kaunter</h1>
<p>Here you can keep track of player’s life points, poison counters, and commander damage in the <abbr title="trading card game">TCG</abbr> <em>Magic: The Gathering</em>. This service is not affiliated with Wizards of the Coast LLC. The source code is available on <a href="https://github.com/zichy/kaunter" target="_blank">GitHub</a>.
</div>
<div class="intro__actions">
<p class="intro__label">Add new player</p>
<ul class="intro__list">
<li class="intro__list-item">
<button class="add-button" data-life="20">
<strong>20</strong> Life points
</button>
</li>
<li class="intro__list-item">
<button class="add-button" data-life="30">
<strong>30</strong> Life points
</button>
</li>
<li class="intro__list-item">
<button class="add-button" data-life="40">
<strong>40</strong> Life points
</button>
</li>
</ul>
</div>
</div>
</div>
<div class="overlay" role="alert">
<div class="overlay__text">
<p>Please use a larger screen to display this site.
<p>There are many life counter apps available for mobile devices.
</div>
</div>
<template class="player-template">
<article class="player">
<input class="player__name" type="text" spellcheck="false" value="Player name" aria-label="Player name">
<button class="player__delete player__button">Remove</button>
<form class="counter">
<div class="life">
<input class="life__input" type="number" value="" min="-999" max="999" maxlength="4" aria-label="Life points" readonly>
<button class="life__button life__button--1" data-count="-1">-1</button>
<button class="life__button life__button--2" data-count="+1">+1</button>
<button class="life__button life__button--3" data-count="-5">-5</button>
<button class="life__button life__button--4" data-count="+5">+5</button>
</div>
<div class="counter-group">
<fieldset class="counter__item">
<legend class="counter__legend"><abbr title="Poison counters">Poison</abbr></legend>
<input class="counter__input" type="number" value="0" min="0" max="10" aria-label="Poison counters" readonly>
<button class="counter__button" data-count="+1">+1</button>
<button class="counter__button" data-count="-1">-1</button>
</fieldset>
<fieldset class="counter__item">
<legend class="counter__legend"><abbr title="Commander damage">Commander</abbr></legend>
<input class="counter__input" type="number" value="0" min="0" max="21" aria-label="Commander damage" readonly>
<button class="counter__button" data-count="+1">+1</button>
<button class="counter__button" data-count="-1">-1</button>
</fieldset>
<button class="counter__reset player__button" type="reset">Reset</button>
</div>
</form>
</article>
</template>
<script src="main.js"></script>
</body>
</html>