-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate.html
More file actions
407 lines (389 loc) · 21.9 KB
/
Copy pathtemplate.html
File metadata and controls
407 lines (389 loc) · 21.9 KB
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
<!-- Template served by server.js -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JTech MDM Installer - Android Device Management</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/cards.css">
<link rel="stylesheet" href="css/cursor-trail.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" href="https://raw.githubusercontent.com/JTech-Forums/mdminstaller/main/icon.png">
<meta property="og:image" content="https://raw.githubusercontent.com/JTech-Forums/mdminstaller/main/icon.png">
</head>
<body>
<div class="modal hidden" id="mobileWarningModal">
<div class="modal-content">
<div class="modal-body">
<h2>Desktop Browser Only</h2>
<p>This site is for desktop browsers and may not work well on mobile devices. Do you wish to proceed?</p>
<div class="modal-actions">
<button class="btn btn-secondary" id="mobileLeaveBtn">Go Back</button>
<button class="btn btn-primary" id="mobileProceedBtn">Proceed Anyway</button>
</div>
</div>
</div>
</div>
<header class="header">
<div class="container">
<a class="brand-logo-left" href="/">
<img src="https://raw.githubusercontent.com/JTech-Forums/mdminstaller/main/logo2.png" alt="JTech logo" class="logo-img">
</a>
<div class="logo-text"></div>
<nav class="nav">
<button class="nav-btn" id="aboutBtn">About</button>
<a class="nav-btn" id="forumsBtn" href="https://forums.jtechforums.org/signup" target="_blank" rel="noopener noreferrer">Jtech Forums</a>
<a class="nav-btn" id="contactBtn" href="https://jtechforums.org/contact-us" target="_blank" rel="noopener noreferrer">Contact Us</a>
</nav>
</div>
</header>
<main class="main">
<div class="container">
<div class="layout-grid">
<!-- Connection Status Card -->
<div class="card status-card">
<div class="connect-top">
<div class="connect-state">
<div class="status-icon disconnected" aria-hidden="true" style="display:none"></div>
<h3 id="statusTitle">No Device Connected</h3>
<p id="statusMessage" class="visually-hidden">Connect your Android device via USB to begin</p>
</div>
<button class="btn btn-primary connect-cta" id="connectBtn">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0l1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16"></path>
</svg>
Connect
</button>
</div>
<div class="connect-body">
<div class="device-metrics" id="deviceMetrics">
<div class="metric-card">
<div class="metric-label">Android</div>
<div class="metric-value empty" id="androidVersionValue"></div>
</div>
<div class="metric-card">
<div class="metric-label">Rooted</div>
<div class="metric-value empty" id="rootedValue"></div>
</div>
<div class="metric-card">
<div class="metric-label">Accounts</div>
<div class="metric-value empty" id="accountsValue"></div>
</div>
<div class="metric-card">
<div class="metric-label">Model</div>
<div class="metric-value empty truncate" id="modelValue"></div>
</div>
</div>
<div id="connectTutorial" class="tutorial-inline">
<div class="tutorial-inline-steps">
<div class="tutorial-step active">
<h3>Step 1: Open Settings</h3>
<ul>
<li>Turn on your device and open the <strong>Settings</strong> app.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 2: About Phone</h3>
<ul>
<li>Scroll down and tap <strong>About phone</strong> (or <strong>About device</strong>).</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 3: Become a Developer</h3>
<ul>
<li>Find <strong>Build number</strong> and tap it <strong>7 times</strong> quickly until you see the confirmation.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 4: Developer Options</h3>
<ul>
<li>Go back and open the new <strong>Developer options</strong> menu.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 5: Enable USB Debugging</h3>
<ul>
<li>Scroll to <strong>USB debugging</strong> and switch it <strong>On</strong>.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 6: Connect to PC</h3>
<ul>
<li>Plug your device into your PC via USB, then click <strong>Connect</strong> on this website.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 7: Pick Your Device</h3>
<ul>
<li>In <strong>Chrome</strong> or <strong>Edge</strong>, select your device from the prompt and click <strong>Connect</strong>.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 8: Trust This Computer</h3>
<ul>
<li>On your phone, check <strong>Always allow from this computer</strong>, then tap <strong>OK</strong>.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 9: You’re Connected</h3>
<ul>
<li>Bingo! You’re connected — now you can install one of our filters.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 10: Join the Community</h3>
<ul>
<li>When you’re done (success or error), <a href="https://forums.jtechforums.org/signup" target="_blank" rel="noopener noreferrer"><strong>join JTech Forums</strong></a> — we’d love your feedback!</li>
</ul>
</div>
</div>
<div class="tutorial-inline-nav">
<button class="btn btn-secondary btn-compact" id="inlinePrevBtn">Previous</button>
<div class="tutorial-dots" id="inlineDots"><!-- dots injected dynamically --></div>
<button class="btn btn-primary btn-compact" id="inlineNextBtn">Next</button>
</div>
</div>
</div>
</div>
<!-- MDM Info Card (center panel) -->
<div class="card new-card" id="newCard">
<div class="info-card" id="mdmInfo" aria-live="polite">
<div class="info-header">
<h2 id="infoTitle">Select an MDM</h2>
</div>
<div class="info-body">
<p class="info-desc" id="infoDesc">Swipe the carousel below to view details.</p>
<div class="info-meta">
<span id="infoPrice" class="badge">Price: —</span>
<a id="infoLink" class="info-link" href="#" target="_blank" rel="noopener noreferrer">Website</a>
</div>
<div class="info-views" id="infoViews">
<!-- Reviews view (default) -->
<div class="reviews" id="reviews">
<div class="reviews-header">
<h3>Reviews</h3>
<button class="btn btn-primary btn-compact" id="writeReviewBtn" type="button">Write a review</button>
</div>
<div id="reviewsList" class="reviews-list"></div>
</div>
<!-- Review form panel (toggles in, overlays, non-resizing) -->
<div class="review-panel hidden" id="reviewPanel">
<h3>Write a Review</h3>
<form id="reviewForm" class="review-form">
<div class="review-actions">
<!-- Turnstile removed: no widget needed for pure Supabase -->
<button class="btn btn-secondary btn-compact" id="cancelReviewBtn" type="button">Cancel</button>
<button class="btn btn-primary btn-compact" type="submit">Submit</button>
</div>
<div class="star-input" id="reviewStars" aria-label="Your rating">
<!-- interactive stars injected -->
</div>
<input type="text" id="reviewName" placeholder="Name (optional)" class="review-input" autocomplete="name">
<textarea id="reviewText" class="review-text" placeholder="Share your experience..." required></textarea>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- APK Installation Card -->
<div class="card install-card" id="installCard">
<div class="swiper mySwiper" id="kitsSwiper">
<div class="swiper-wrapper" id="kitsGrid"></div>
</div>
</div>
<!-- ADB Console Card -->
<div class="card console-card" id="consoleCard">
<div class="console-header">
<h2>ADB Console</h2>
</div>
<div class="command-input-container">
<div class="input-group">
<span class="input-prefix">adb shell</span>
<input type="text" id="commandInput" class="command-input" placeholder="Enter ADB command..." autocomplete="off">
<button class="btn btn-primary" id="executeBtn" disabled>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="5,3 19,12 5,21"></polygon>
</svg>
</button>
</div>
</div>
<div class="console-output-container">
<h3>Console Output</h3>
<div class="console-output" id="consoleOutput"></div>
<div class="console-footer">
<button class="btn btn-success btn-lg" id="copyConsoleBtn">Copy Output</button>
<button class="btn btn-secondary btn-lg" id="clearConsoleBtn">Clear Output</button>
<button class="btn btn-primary btn-lg" id="downloadConsoleBtn">Download Output</button>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Privacy Policy Modal -->
<div class="modal hidden" id="privacyModal">
<div class="modal-content">
<div class="modal-header">
<h2>Privacy Policy</h2>
</div>
<div class="modal-body">
<div id="privacyText" class="policy-content"></div>
<div class="policy-footer">
<label class="policy-check"><input type="checkbox" id="policyCheck"> I agree to the Privacy Policy</label>
<div class="actions">
<button class="btn btn-secondary" id="rejectPolicyBtn">Reject</button>
<button class="btn btn-primary" id="acceptPolicyBtn" disabled>Accept</button>
</div>
</div>
</div>
</div>
</div>
<div id="policyBlocker" class="policy-blocker hidden">
<p>Privacy policy not accepted. Refresh to try again.</p>
</div>
<!-- Welcome Modal -->
<div class="modal hidden" id="welcomeModal">
<div class="modal-content">
<div class="modal-header">
<h2>Welcome to JTech MDM Installer</h2>
<button class="modal-close" id="closeWelcomeBtn">×</button>
</div>
<div class="modal-body">
<p>Let's start by connecting your device.</p>
<div class="modal-actions">
<button class="btn btn-secondary" id="skipTutorialBtn">Skip Tutorial</button>
<button class="btn btn-primary" id="startTutorialBtn">Start Tutorial</button>
</div>
</div>
</div>
</div>
<!-- Tutorial Modal -->
<div class="modal hidden" id="tutorialModal">
<div class="modal-content">
<div class="modal-header">
<h2>How to Use JTech MDM Installer</h2>
<button class="modal-close" id="closeTutorialBtn">×</button>
</div>
<div class="modal-body">
<div class="tutorial-container" id="tutorialContainer">
<div class="tutorial-step active">
<h3>Step 1: Open Settings</h3>
<ul>
<li>Turn on your device and open the <strong>Settings</strong> app.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 2: About Phone</h3>
<ul>
<li>Scroll down and tap <strong>About phone</strong> (or <strong>About device</strong>).</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 3: Become a Developer</h3>
<ul>
<li>Find <strong>Build number</strong> and tap it <strong>7 times</strong> quickly until you see the confirmation.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 4: Developer Options</h3>
<ul>
<li>Go back and open the new <strong>Developer options</strong> menu.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 5: Enable USB Debugging</h3>
<ul>
<li>Scroll to <strong>USB debugging</strong> and switch it <strong>On</strong>.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 6: Connect to PC</h3>
<ul>
<li>Plug your device into your PC via USB, then click <strong>Connect</strong> on this website.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 7: Pick Your Device</h3>
<ul>
<li>In <strong>Chrome</strong> or <strong>Edge</strong>, select your device from the prompt and click <strong>Connect</strong>.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 8: Trust This Computer</h3>
<ul>
<li>On your phone, check <strong>Always allow from this computer</strong>, then tap <strong>OK</strong>.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 9: You’re Connected</h3>
<ul>
<li>Bingo! You’re connected — now you can install one of our filters.</li>
</ul>
</div>
<div class="tutorial-step">
<h3>Step 10: Join the Community</h3>
<ul>
<li>When you’re done (success or error), <a href="https://forums.jtechforums.org/signup" target="_blank" rel="noopener noreferrer"><strong>join JTech Forums</strong></a> — we’d love your feedback!</li>
</ul>
</div>
</div>
<div class="tutorial-navigation">
<button class="btn btn-secondary" id="prevStepBtn">Previous</button>
<button class="btn btn-primary" id="nextStepBtn">Next</button>
</div>
<div class="warning">
<strong>Note:</strong> This tool requires Chrome or Edge browser with WebUSB support.
</div>
</div>
</div>
</div>
<!-- About Modal -->
<div class="modal hidden" id="aboutModal">
<div class="modal-content">
<div class="modal-header">
<h2>About JTech MDM Installer</h2>
<button class="modal-close" id="closeAboutBtn">×</button>
</div>
<div class="modal-body">
<p>JTech MDM Installer is a web-based tool for deploying Mobile Device Management solutions to Android devices directly from your browser.</p>
<h3>Features</h3>
<ul>
<li>Direct USB connection to Android devices</li>
<li>Pre-configured MDM application profiles</li>
<li>Batch APK installation support</li>
<li>Real-time installation progress tracking</li>
<li>No software installation required</li>
</ul>
<h3>Requirements</h3>
<ul>
<li>Chrome or Edge browser (version 61+)</li>
<li>Android device with USB debugging enabled</li>
<li>USB cable for device connection</li>
</ul>
<p class="footer-text">© 2024 JTech Solutions. Version 1.0.0</p>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
<script src="js/mobile-warning.js"></script>
<script src="js/ui/auto-scale.js"></script>
<script src="js/ui/cursor-trail.js"></script>
<script src="js/privacy.js"></script>
<!-- Reviews configuration: Supabase backend enabled -->
<script>
window.REVIEWS_CONFIG = {
enableBackend: true,
supabase: {
url: 'https://hspzbenmhijqowsltijs.supabase.co/rest/v1/reviews',
apiKey: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhzcHpiZW5taGlqcW93c2x0aWpzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTc1MjQyMDYsImV4cCI6MjA3MzEwMDIwNn0.3IZkSFy44cruJDFPdwOwbhj9x2afcBEun3UVAm7oh9k'
}
};
</script>
<script src="js/apps.js" type="module"></script>
</body>
</html>