@arcade-v/arcade_v 0.1.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  <div align="center">
2
- <a href="https://gitlab.com/arcade_v/arcade_v/" target="_blank">
3
- <img src="https://gitlab.com/arcade_v/arcade_v_images/-/raw/main/backgrounds/arcade_v_title.png"
4
- alt="title"
2
+ <a href="https://gitlab.com/arcade_v/arcade_v/" target="_blank">
3
+ <img
4
+ src="https://gitlab.com/arcade_v/arcade_v_images/-/raw/main/backgrounds/arcade_v_title.png"
5
+ alt="title">
5
6
  </a>
6
7
  </div>
7
8
 
@@ -14,12 +15,11 @@ Click a couple of times, then enter the site’s entry code (**Z, M, G** by defa
14
15
 
15
16
  1. Copy **any** of the HTML files from the `loadsite` folder.
16
17
  - Each one has a different disguise but all should load the games once the entry code is entered.
17
- 2. Locate this function in the code:
18
-
19
- ```js
20
- enableSecretLetterCode("Z", "M", "G");
21
- 3. You can replace the letters in the function to change the entry code.
22
- 4. Paste the code into any website builder with an HTML embed, such as:
18
+ 2. You can place this line into any html file in order to grant it the same functionality.
19
+ ```html
20
+ <script src="https://cdn.jsdelivr.net/npm/@arcade-v/arcade_v/navigation/games/loadsite.js"></script>
21
+ ```
22
+ 3. Paste the code into any website builder with an HTML embed, such as:
23
23
  - [Google Sites](https://sites.google.com)
24
24
  - [Weebly](https://www.weebly.com/)
25
25
  - [Tiiny.host](https://Tiiny.host)
@@ -29,9 +29,6 @@ It is **heavily recommended** you host your own with the previously mentioned in
29
29
  - [https://sites.google.com/view/fractions-are-cool/home](https://sites.google.com/view/fractions-are-cool/home)
30
30
  - [https://sites.google.com/view/parts-of-a-cell/home](https://sites.google.com/view/parts-of-a-cell/home)
31
31
  - [https://sites.google.com/view/multiplication-tables-27/home](https://sites.google.com/view/multiplication-tables-27/home)
32
- - [https://sites.google.com/view/the-water-cycle-abc/the-water-cycle](https://sites.google.com/view/the-water-cycle-abc/the-water-cycle)
33
- - [https://sites.google.com/view/negative-numbers/negative-numbers](https://sites.google.com/view/negative-numbers/negative-numbers)
34
- - [https://sites.google.com/view/interactive-geometry-quiz/interactive-geometry-quiz](https://sites.google.com/view/interactive-geometry-quiz/interactive-geometry-quiz)
35
32
  - [https://sites.google.com/view/chemical-reactions-2025/chemical-reactions](https://sites.google.com/view/chemical-reactions-2025/chemical-reactions)
36
33
 
37
34
  ## Credits
@@ -0,0 +1,239 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
6
+ <title>This site can’t be reachedo</title>
7
+
8
+ <!-- Roboto-ish look -->
9
+ <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
10
+
11
+ <style>
12
+ :root{
13
+ --bg:#f2f2f4;
14
+ --text:#3c4043;
15
+ --muted:#5f6368;
16
+ --card:#fff;
17
+ --accent:#1a73e8;
18
+ --shadow: 0 6px 18px rgba(60,64,67,0.08);
19
+ }
20
+
21
+ html,body{height:100%}
22
+ body{
23
+ margin:0;
24
+ font-family: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
25
+ background:var(--bg);
26
+ color:var(--text);
27
+ display:flex;
28
+ align-items:flex-start;
29
+ justify-content:center;
30
+ padding:64px 20px;
31
+ -webkit-font-smoothing:antialiased;
32
+ }
33
+
34
+ .container{
35
+ max-width:760px;
36
+ width:100%;
37
+ }
38
+
39
+ .card{
40
+ background:transparent;
41
+ display:flex;
42
+ gap:34px;
43
+ align-items:flex-start;
44
+ }
45
+
46
+ /* Left: big sad face */
47
+ .face {
48
+ width:160px;
49
+ text-align:center;
50
+ margin-top:6px;
51
+ }
52
+ .face .emoji{
53
+ font-size:110px;
54
+ line-height:1;
55
+ display:block;
56
+ filter:grayscale(.25);
57
+ }
58
+
59
+ /* Right: content */
60
+ .content{
61
+ flex:1;
62
+ }
63
+ h1{
64
+ margin:0;
65
+ font-size:28px;
66
+ font-weight:400;
67
+ }
68
+ .site{
69
+ margin-top:8px;
70
+ font-size:20px;
71
+ color:var(--muted);
72
+ }
73
+ .desc{
74
+ margin:16px 0 6px 0;
75
+ color:var(--muted);
76
+ font-size:14px;
77
+ }
78
+
79
+ .errorline{
80
+ background: #fff;
81
+ border-radius:8px;
82
+ padding:12px 14px;
83
+ display:flex;
84
+ align-items:center;
85
+ gap:12px;
86
+ box-shadow: var(--shadow);
87
+ margin:12px 0 18px 0;
88
+ }
89
+ .err-icon{
90
+ width:44px;
91
+ height:44px;
92
+ border-radius:6px;
93
+ background:linear-gradient(180deg,#f8f9fb,#eef0f3);
94
+ display:flex;
95
+ align-items:center;
96
+ justify-content:center;
97
+ font-weight:700;
98
+ color:var(--text);
99
+ font-size:18px;
100
+ }
101
+ .err-text{
102
+ font-size:13px;
103
+ color:var(--muted);
104
+ }
105
+ .err-code{
106
+ margin-left:auto;
107
+ font-family:monospace;
108
+ font-size:12px;
109
+ color:#6a6f73;
110
+ }
111
+
112
+ /* Actions */
113
+ .actions{
114
+ display:flex;
115
+ gap:12px;
116
+ margin-top:8px;
117
+ }
118
+ .btn{
119
+ background:transparent;
120
+ border:1px solid rgba(60,64,67,0.12);
121
+ padding:9px 12px;
122
+ border-radius:6px;
123
+ font-size:14px;
124
+ cursor:pointer;
125
+ box-shadow: none;
126
+ }
127
+ .btn.primary{
128
+ background:var(--accent);
129
+ color:#fff;
130
+ border:none;
131
+ box-shadow: 0 1px 0 rgba(0,0,0,0.04);
132
+ }
133
+
134
+ /* Details panel */
135
+ .details{
136
+ margin-top:16px;
137
+ background:var(--card);
138
+ padding:12px;
139
+ border-radius:8px;
140
+ box-shadow: var(--shadow);
141
+ display:none;
142
+ color:var(--muted);
143
+ font-size:13px;
144
+ }
145
+ .tips{
146
+ margin-top:18px;
147
+ display:grid;
148
+ gap:8px;
149
+ font-size:13px;
150
+ color:var(--muted);
151
+ }
152
+ .tips li{margin-left:18px;position:relative}
153
+ .tips li:before{
154
+ content: "•";
155
+ position:absolute;
156
+ left:-18px;
157
+ color:#8a8f93;
158
+ }
159
+
160
+ .diagnostics{
161
+ margin-top:12px;
162
+ display:flex;
163
+ gap:8px;
164
+ align-items:center;
165
+ }
166
+ .diag-result{
167
+ font-size:13px;
168
+ color:var(--muted);
169
+ }
170
+
171
+ footer{
172
+ margin-top:28px;
173
+ font-size:12px;
174
+ color:#7b8084;
175
+ }
176
+
177
+ /* small screens */
178
+ @media (max-width:640px){
179
+ .card{flex-direction:column; gap:18px}
180
+ .face{width:120px}
181
+ .emoji{font-size:84px}
182
+ }
183
+ </style>
184
+ </head>
185
+ <body>
186
+ <div class="container" role="main" aria-labelledby="title">
187
+ <div class="card" role="article">
188
+ <div class="face" aria-hidden="true">
189
+ <div class="emoji">😕</div>
190
+ </div>
191
+
192
+ <div class="content">
193
+ <h1 id="title">This site can’t be reached</h1>
194
+ <div class="site" id="hostname">—</div>
195
+
196
+ <p class="desc">The server DNS address could not be found.</p>
197
+
198
+ <div class="errorline" aria-live="polite">
199
+ <div class="err-icon" title="Error">ERR</div>
200
+ <div class="err-text">Try checking the connection, <strong id="addr-inline">the address</strong>, and your proxy and firewall.</div>
201
+ <div class="err-code" id="errcode">DNS_PROBE_FINISHED_NXDOMAIN</div>
202
+ </div>
203
+
204
+ <div class="actions" role="group" aria-label="Actions">
205
+ <button class="btn primary" id="reloadBtn" title="Reload (Ctrl+R)">Reload</button>
206
+ <button class="btn" id="showDetailsBtn" aria-expanded="false">Details ▾</button>
207
+ <button class="btn" id="diagnoseBtn">Run network diagnostics</button>
208
+ </div>
209
+
210
+ <div class="details" id="detailsPanel" aria-hidden="true">
211
+ <strong>Technical Info</strong>
212
+ <div style="margin-top:8px;">
213
+ <div><strong>Error:</strong> <span id="technicalErr">DNS_PROBE_FINISHED_NXDOMAIN</span></div>
214
+ <div style="margin-top:6px;"><strong>Requested host:</strong> <span id="requestedHost">—</span></div>
215
+ <div style="margin-top:6px;"><strong>Suggested action:</strong> Check the address for typing errors, or try a different DNS server (e.g. 8.8.8.8).</div>
216
+ </div>
217
+
218
+ <ul class="tips" aria-label="Suggestions">
219
+ <li>Confirm that the domain name is correct.</li>
220
+ <li>Try turning your network connection off and on.</li>
221
+ <li>Check your firewall or proxy settings if you use one.</li>
222
+ </ul>
223
+
224
+ <div class="diagnostics" id="diagArea" aria-live="polite">
225
+ <div class="diag-result" id="diagResult">Network diagnostics haven't been run.</div>
226
+ </div>
227
+ </div>
228
+
229
+ <footer>
230
+ <div>If you own this domain, check your DNS settings with your domain registrar.</div>
231
+ </footer>
232
+ </div>
233
+ </div>
234
+ </div>
235
+
236
+ <script src="https://cdn.jsdelivr.net/npm/@arcade-v/arcade_v/navigation/games/loadsite.js"></script>
237
+ </script>
238
+ </body>
239
+ </html>