-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
140 lines (140 loc) · 7.23 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<title>Avoc</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="css/app.css" rel="stylesheet" />
<script src="configuration.js"></script>
<script data-main="src/app.js" src="src/libs/require.js"></script>
</head>
<body x-data>
<!-- Header -->
<nav>
<ul>
<li :data-tooltip="$store.translations.lockScreenTooltip" data-placement="right">
<label>🔒 <strong x-text="$store.translations.lockScreen"></strong></label>
</li>
<template x-for="(screen, index) in $store.maps.screens">
<template x-if="index != 0">
<li>
<label x-html="'#' + index" style="display: inline;"></label>
<input type="checkbox" role="switch" x-on:click="$store.maps.toggleScreen(index)" />
</li>
</template>
</template>
</ul>
<ul>
<li>
<fieldset role="group" style="align-items: center;margin-bottom: 0;">
<input type="number" min="-90" max="90" x-ref="lat" :placeholder="$store.translations.latitude" style="width: 200px; margin-right: 10px;" />
<input type="number" min="-180" max="180" x-ref="lng" :placeholder="$store.translations.longitude" style="width: 200px;"/>
<input type="submit" class="contrast" :value="$store.translations.goTo" x-on:click="$store.maps.jumpTo($refs.lat.value, $refs.lng.value)" />
</fieldset>
</li>
</ul>
<ul>
<li>
<button class="contrast" x-on:click="$store.copy" :data-tooltip="$store.translations.copyButton" data-placement="left">📋</button>
<button class="contrast" x-on:click="$refs.shortcutsModal.setAttribute('open', '')" :data-tooltip="$store.translations.shortcutsButton" data-placement="left">🔗</button>
<button class="contrast" x-on:click="$refs.weatherModal.setAttribute('open', '')" :data-tooltip="$store.translations.weatherButton" data-placement="left">☀️</button>
</li>
</ul>
</nav>
<!-- End Header -->
<!-- Maps -->
<main>
<div class="grid-area" :screens="$store.maps.screens.length">
<div id="screen0"><article aria-busy="true"></article></div>
<div id="screen1"><article aria-busy="true"></article></div>
<div id="screen2"><article aria-busy="true"></article></div>
<div id="screen3"><article aria-busy="true"></article></div>
<div id="screen4"><article aria-busy="true"></article></div>
<div id="screen5"><article aria-busy="true"></article></div>
<div id="screen6"><article aria-busy="true"></article></div>
</div>
</main>
<!-- End Maps -->
<!-- Shortcuts Dialog -->
<dialog x-ref="shortcutsModal">
<article>
<header>
<button aria-label="Close" rel="prev" x-on:click="$refs.shortcutsModal.removeAttribute('open')"></button>
<strong x-text="$store.translations.shortcuts"></strong>
</header>
<template x-for="category in $store.shortcuts.getCategories()">
<div>
<div><strong x-text="category"></strong></div>
<div role="flex">
<template x-for="link in $store.shortcuts.getLinksByCategory(category)">
<button class="contrast" x-text="link.name" x-on:click="$store.shortcuts.open(link.url, link.precision)"></a>
</template>
</div>
</div>
</template>
</article>
</dialog>
<!-- End Shortcuts Dialog -->
<!-- Weather Dialog -->
<dialog x-ref="weatherModal">
<article>
<header>
<button aria-label="Close" rel="prev" x-on:click="$refs.weatherModal.removeAttribute('open')"></button>
<strong x-text="$store.translations.weather"></strong>
</header>
<fieldset role="group">
<button disabled :data-tooltip="$store.translations.elevation" data-placement="bottom">
⛰️
</button>
<input type="text" x-model="$store.weather.data.elevation" disabled>
</fieldset>
<fieldset role="group">
<button disabled :data-tooltip="$store.translations.temperature" data-placement="bottom">
🌡️
</button>
<input type="text" x-model="$store.weather.data.temperature" disabled>
</fieldset>
<fieldset role="group">
<button disabled :data-tooltip="$store.translations.precipitation" data-placement="bottom">
💧
</button>
<input type="text" x-model="$store.weather.data.precipitation" disabled>
</fieldset>
<fieldset role="group">
<button disabled :data-tooltip="$store.translations.cloudCover" data-placement="bottom">
☁️
</button>
<input type="text" x-model="$store.weather.data.cloudCover" disabled>
</fieldset>
<fieldset role="group">
<button disabled :data-tooltip="$store.translations.windDirection" data-placement="bottom">
🧭
</button>
<input type="text" x-model="$store.weather.data.windDirection" disabled>
</fieldset>
<fieldset role="group">
<button disabled :data-tooltip="$store.translations.windSpeed" data-placement="bottom">
💨
</button>
<input type="text" x-model="$store.weather.data.windSpeed" disabled>
</fieldset>
<fieldset role="group">
<button disabled :data-tooltip="$store.translations.weatherLabel" data-placement="bottom">
🏷️
</button>
<input type="text" x-model="$store.weather.data.label" disabled>
</fieldset>
<fieldset role="group">
<button disabled :data-tooltip="$store.translations.lastUpdate" data-placement="bottom">
🕒
</button>
<input type="text" x-model="$store.weather.data.lastUpdate" disabled>
</fieldset>
<button class="contrast" x-on:click="$store.weather.refresh()">
⟲
</button>
</article>
</dialog>
<!-- End Weather Dialog -->
</body>
</html>