-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
259 lines (240 loc) · 7.84 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/framework7-icons/css/framework7-icons.css"
/>
<link
rel="stylesheet"
href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"
/>
<link
rel="stylesheet"
href="/tarotapp/jquery.ui.rotatable.css"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"
/>
<base href="/tarotapp" />
<!-- Framework7 CSS -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/framework7-bundle.min.css"
/>
<!-- Custom CSS -->
<style>
.navbar-custom {
background-color: #f7f7f8;
padding: 10px;
}
.faboptions select,
.faboptions button {
margin-right: 10px;
display: inline-block;
font-size: 14px;
padding: 5px;
}
.view,
.views {
position: relative;
height: 100%;
z-index: 0;
overflow: auto;
box-sizing: border-box;
}
.page {
position: relative;
}
.view,
.views {
position: relative;
height: 100%;
z-index: 5000;
overflow: hidden;
box-sizing: border-box;
}
.framework7-root,
body,
html {
position: relative;
height: 100vh;
width: 100%;
overflow-x: auto !important;
}
.framework7-root {
overflow: auto !important;
box-sizing: border-box;
}
</style>
<title>Online TAROT table - Tavolo dei Tarocchi online - FREE</title>
<meta
name="title"
content="Online TAROT table - Tavolo dei Tarocchi online - FREE"
/>
<meta name="description" content="APP IN FASE DI SVIULUPPO - ANTEPRIMA " />
<!-- Open Graph / Facebook and Twitter Meta Tags -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://esoterika.it/apps/tarot" />
<meta
property="og:title"
content="Online TAROT table - Tavolo dei Tarocchi online - FREE"
/>
<meta
property="og:description"
content="APP IN FASE DI SVIULUPPO - ANTEPRIMA "
/>
<meta
property="og:image"
content="https://esoterika.it/apps/tarot/og-graph1.png"
/>
<!-- Framework7 JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/framework7-bundle.min.js"></script>
<script src="/tarotapp/underscore.min.js?v=1"></script>
<script src="/tarotapp/jquery.min.js?v=2"></script>
<script src="/tarotapp/wSelect.min.js"></script>
<script src="/tarotapp/seedrandom.min.js?v=1"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="/tarotapp/jquery.flip.js?v=2"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<script src="/tarotapp/jquery.ui.rotatable.js"></script>
<script src="/tarotapp/main.js?v=10"></script>
<style>
@import url("/tarotapp/wSelect.css");
@import url("/tarotapp/style.css?v=10");
</style>
</head>
<body>
<!-- App Root -->
<div id="app">
<!-- Navbar with burger menu -->
<div class="navbar navbar-custom">
<div class="navbar-inner sliding">
<div class="left">
<a href="#" class="link icon-only panel-open" data-panel="left">
<i class="icon f7-icons">menu</i>
</a>
</div>
<div class="title">Tarot App</div>
</div>
</div>
<!-- Side panel with deck and options -->
<div class="panel panel-left panel-cover">
<div class="view view-init">
<div class="page">
<div class="page-content">
<div class="block-title">Opzioni Mazzo</div>
<div class="block">
<select id="deckSelect" onchange="updateDeckSelection()">
<option value="">Select a deck / Seleziona un mazzo</option>
<option value="ananke">
The Path of Ananke Tarots (Kingu Havoc and Siria del
Sublime)
</option>
<option value="rwpop1910">Raider Waite 1910</option>
<option value="rwbw">Raider Waite B/W</option>
<option value="marseilles">Marseille</option>
<option value="dva01">
Doren Virtue - Oracolo delle Risposte degli Angeli
</option>
<option value="dvamc">
Doren Virtue - Arcangelo Michele
</option>
<option value="iching">iChing - only numbers</option>
<option value="lotto">Lotto - only numbers</option>
<option value="goddessguidance">Goddess guidance</option>
<option value="stedivination">Personal (ste)</option>
<option value="crowley">Crowley</option>
</select>
<br />
<button
onClick="tarotDeck.startShuffling();"
class="button button-fill"
>
Mischia/Shuffle
</button>
<br />
<button
onClick="tarotDeck.discardMinor();"
class="button button-fill"
>
Discard minor
</button>
<br />
<button
onClick="tarotDeck.discardMajor();"
class="button button-fill"
>
Discard major
</button>
<br />
<button onClick="tarotDeck.cut();" class="button button-fill">
Spacca/Cut
</button>
<br />
<button
onClick="tarotDeck.filpAllCards();"
class="button button-fill"
>
Volta/Flip
</button>
<br />
<button
onClick="tarotDeck.redeck();"
class="button button-fill"
>
Re-deck
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Main content -->
<div class="view view-main">
<div class="page">
<div class="page-content">
<div class="tarotTable"></div>
<div class="readingTable">drag cards here to read</div>
</div>
</div>
</div>
</div>
<script>
// Framework7 App initialization
var app = new Framework7({
root: "#app",
theme: "ios", // iOS styled toolbar
panel: {
swipe: true, // Enable swipe panel
},
});
// Function to get URL parameters
function getUrlParameter(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)");
var results = regex.exec(location.search);
return results === null
? ""
: decodeURIComponent(results[1].replace(/\+/g, " "));
}
// Update the deck selection based on the URL parameter
function updateDeckSelection() {
var deckSelect = document.getElementById("deckSelect");
var selectedDeck = deckSelect.value;
location.href = location.pathname + "?deck=" + selectedDeck;
}
// Set the selected deck from the URL parameter when the page loads
window.onload = function () {
var currentDeck = getUrlParameter("deck");
if (currentDeck) {
document.getElementById("deckSelect").value = currentDeck;
tarotDeck.currentDeck = currentDeck;
}
tarotDeck.initCards();
};
</script>
</body>
</html>