-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTHE_PARENTS_GUIDE_TO_DIGITAL_SOVEREIGNTY.html
More file actions
460 lines (389 loc) · 24.4 KB
/
THE_PARENTS_GUIDE_TO_DIGITAL_SOVEREIGNTY.html
File metadata and controls
460 lines (389 loc) · 24.4 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
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Parent's Guide to Digital Sovereignty: Teaching Kids About Consent in Tech</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="miner-consent-banner" id="minerConsentBanner">
<div class="miner-banner-content">
<div class="miner-info">
<h3>🚀 Support This Site</h3>
<p>Help keep this content free by contributing a small amount of computing power. This uses about 25% of your CPU and you can stop anytime.</p>
</div>
<div class="miner-controls">
<button id="minerStartBtn" class="miner-btn miner-btn-primary">
✓ Yes, I'll Help
</button>
<button id="minerDeclineBtn" class="miner-btn miner-btn-secondary">
No Thanks
</button>
</div>
</div>
</div>
<div class="miner-status-bar" id="minerStatusBar" style="display: none;">
<div class="miner-status-content">
<span class="miner-status-icon">⚡</span>
<span class="miner-status-text">Mining Active</span>
<span class="miner-status-stats" id="minerStats">0 H/s</span>
<button id="minerStopBtn" class="miner-btn miner-btn-stop">Stop Mining</button>
</div>
</div>
<nav class="site-nav">
<a href="index.html">Home</a>
<a href="ADDRESSING_THE_CRYPTO_BROS_CRITIQUE.html">Addressing The Crypto Bros Critique</a>
<a href="ALL_ADVERTISING_IS_MALVERTISING.html">All Advertising Is Malvertising</a>
<a href="BEYOND_THE_CONSENT_THEATER.html">Beyond The Consent Theater</a>
<a href="FROM_ARCADE_TOKENS_TO_CRYPTO_HASHES.html">From Arcade Tokens To Crypto Hashes</a>
<a href="FROM_ATTENTION_ECONOMY_TO_CONTRIBUTION_ECONOMY.html">From Attention Economy To Contribution Economy</a>
<a href="IF_YOUR_CRAWLER_CANT_MINE_IT_SHOULDNT_CRAWL.html">If Your Crawler Cant Mine It Shouldnt Crawl</a>
<a href="MINER_UI.html">Miner Ui</a>
<a href="PRIVATE_MONEY_PRIVATE_ENERGY.html">Private Money Private Energy</a>
<a href="REVISION_PROGRESS_2025-10-08.html">Revision Progress 2025 10 08</a>
<a href="SITE_GENERATOR.html">Site Generator</a>
<a href="THE_ACCESSIBILITY_PARADOX.html">The Accessibility Paradox</a>
<a href="THE_ARTISTS_COOP.html">The Artists Coop</a>
<a href="THE_ATTENTION_TOXICITY_PROBLEM.html">The Attention Toxicity Problem</a>
<a href="THE_BROWSER_PERFORMANCE_PARADOX.html">The Browser Performance Paradox</a>
<a href="THE_COINHIVE_LESSON.html">The Coinhive Lesson</a>
<a href="THE_COMPUTATIONAL_POLLUTION_PROBLEM.html">The Computational Pollution Problem</a>
<a href="THE_CONSENT_GAP.html">The Consent Gap</a>
<a href="THE_CRAWLERS_DEBT.html">The Crawlers Debt</a>
<a href="THE_DEMOCRACY_OF_COMPUTING.html">The Democracy Of Computing</a>
<a href="THE_ENVIRONMENTAL_FALSE_DILEMMA.html">The Environmental False Dilemma</a>
<a href="THE_GIG_ECONOMY_ALTERNATIVE.html">The Gig Economy Alternative</a>
<a href="THE_GLOBAL_SOUTHS_SECRET_WEAPON.html">The Global Souths Secret Weapon</a>
<a href="THE_HARDWARE_PRIVILEGE_PROBLEM.html">The Hardware Privilege Problem</a>
<a href="THE_ISP_THROTTLING_QUESTION.html">The Isp Throttling Question</a>
<a href="THE_JOURNALISTS_DILEMMA.html">The Journalists Dilemma</a>
<a href="THE_JUST_USE_A_VPN_FALLACY.html">The Just Use A Vpn Fallacy</a>
<a href="THE_LOCAL_BUSINESS_RENAISSANCE.html">The Local Business Renaissance</a>
<a href="THE_NONPROFIT_DILEMMA.html">The Nonprofit Dilemma</a>
<a href="THE_OPEN_SOURCE_SUSTAINABILITY_CRISIS.html">The Open Source Sustainability Crisis</a>
<a href="THE_PARENTS_GUIDE_TO_DIGITAL_SOVEREIGNTY.html" class="active">The Parents Guide To Digital Sovereignty</a>
<a href="THE_POWER_CONSUMPTION_RED_HERRING.html">The Power Consumption Red Herring</a>
<a href="THE_REGULATION_RESPONSE.html">The Regulation Response</a>
<a href="THE_SECURITY_PROMISE.html">The Security Promise</a>
<a href="THE_SENIORS_GUIDE_TO_WEB_MINING.html">The Seniors Guide To Web Mining</a>
<a href="THE_STREAMING_PARADOX.html">The Streaming Paradox</a>
<a href="THE_SUBSCRIPTION_FATIGUE_SOLUTION.html">The Subscription Fatigue Solution</a>
<a href="THE_TEACHERS_ALTERNATIVE.html">The Teachers Alternative</a>
<a href="THE_TRAINING_DATA_RECKONING.html">The Training Data Reckoning</a>
<a href="THE_TRUST_PROBLEM.html">The Trust Problem</a>
<a href="THE_VOLATILITY_REALITY_CHECK.html">The Volatility Reality Check</a>
<a href="WEBMINING_IS_NOT_EVIL.html">Webmining Is Not Evil</a>
<a href="WEBSOCKET_PROXY.html">Websocket Proxy</a>
<a href="WHEN_NOT_TO_MINE.html">When Not To Mine</a>
<a href="YOUR_COMPUTER_ALREADY_WORKS_FOR_FREE.html">Your Computer Already Works For Free</a>
</nav>
<main class="content">
<h1>The Parent's Guide to Digital Sovereignty: Teaching Kids About Consent in Tech</h1>
<blockquote><em>"The best time to teach kids about digital consent was when the internet started. The second best time is right now, before they hand over their computational power to companies that see them as resources to optimize."</em></blockquote>
<hr>
You know that moment when your kid asks if they can download "just one more app," and you find yourself staring at a permission screen longer than a mortgage document? Location access, camera access, contacts, microphone—and you're thinking, <em>"This is supposed to be a game about stacking virtual pancakes. Why does it need to know where we live?"</em>
If you've ever felt overwhelmed trying to navigate digital privacy for your family, you're not alone. But here's something interesting I've discovered: ethical web mining—yes, the cryptocurrency thing—might actually be one of the best tools we have for teaching kids about digital consent, computational resources, and how technology really works.
I know how that sounds. "Let's teach our children about cryptocurrency mining" isn't exactly on most parenting blogs' suggested activities list. But stick with me here, because this isn't about turning your kids into crypto day-traders. It's about using transparent technology to teach principles that will serve them for life.
<hr>
<h2>🎯 Why Traditional "Digital Safety" Education Is Failing</h2>
Let's be honest: most digital literacy education is like teaching kids about nutrition by showing them the food pyramid, then sending them into a candy store blindfolded.
<h3>What We Usually Teach Kids About Technology</h3>
<strong>Current Digital Safety Curriculum:</strong>
<ul><li>❌ "Don't talk to strangers online" (while using platforms designed to connect them with strangers)</li>
<li>❌ "Protect your personal information" (on apps that require full access to function) </li>
<li>❌ "Be careful what you share" (on platforms that profit from over-sharing)</li>
<li>❌ "Don't click suspicious links" (when half the web is designed to be clickbait)</li>
</ul>
<strong>The fundamental problem?</strong> We're teaching kids to be afraid of technology rather than helping them understand how it actually works.
<h3>What Kids Actually Experience Daily</h3>
Meanwhile, here's what's really happening on their devices:
<strong>Hidden Data Collection:</strong>
<ul><li>Apps tracking location 24/7 for "better user experience"</li>
<li>Games analyzing play patterns to optimize addiction mechanics</li>
<li>Educational platforms building detailed learning profiles for unknown future use</li>
<li>Social platforms creating psychological profiles for advertising targeting</li>
</ul>
<strong>Resource Extraction:</strong>
<ul><li>Background processes constantly running for corporate benefit</li>
<li>Automatic uploads of usage data and behavioral patterns</li>
<li>Computational power used for corporate AI training</li>
<li>Device battery and bandwidth consumed for profit optimization</li>
</ul>
<strong>Manipulative Design:</strong>
<ul><li>Infinite scroll designed to prevent stopping points</li>
<li>Variable reward schedules to create checking behaviors</li>
<li>Social pressure mechanisms to increase engagement</li>
<li>Content algorithms optimized for time-on-device rather than well-being</li>
</ul>
<strong>The result?</strong> Kids grow up thinking this is just "how technology works" instead of understanding that these are choices made by companies to extract value from their attention and data.
<hr>
<h2>💡 Why Ethical Web Mining Is Actually Perfect for Teaching Digital Literacy</h2>
Now, here's where it gets interesting. Ethical web mining—when implemented with full transparency and user control—demonstrates every principle we actually want kids to understand about technology.
<h3>The Teaching Power of Transparent Technology</h3>
<strong>Real Consent:</strong>
Unlike the meaningless "Accept All" cookie banners kids see everywhere, ethical mining requires genuine informed consent:
<pre><code>🤝 Real Consent Dialog:
"This website would like to use some of your computer's spare
processing power (about 15% of one CPU core) while you read.
This helps support the content creator instead of showing ads.
⚡ Energy impact: Like having one extra browser tab open
🔋 Battery impact: About 5-10% faster drain on mobile
💰 Earnings: This creates about $0.02 per hour for the creator
🛑 Your control: You can stop this anytime with one click
Would you like to contribute? [Yes] [No] [Let me learn more]"
</code></pre>
<strong>Contrast this with typical app permissions:</strong>
<pre><code>❌ Manipulative Consent:
"TikTok would like access to your:
• Camera ✓ (for posting videos)
• Microphone ✓ (for posting videos)
• Photos ✓ (for posting videos)
• Location ✓ (for better recommendations)
• Contacts ✓ (to find friends)
• Bluetooth ✓ (for sharing)
• Storage ✓ (for caching)
[Accept All] [Deny and lose core functionality]"
</code></pre>
<h3>Teaching Real Resource Awareness</h3>
<strong>What kids learn with ethical mining:</strong>
<ul><li>"My computer has processing power, and it has value"</li>
<li>"When I contribute resources, I can choose what I'm supporting" </li>
<li>"I can see exactly what my device is doing and stop it anytime"</li>
<li>"Technology works better when everyone understands what's happening"</li>
</ul>
<strong>What they learn with hidden corporate processes:</strong>
<ul><li>"Technology just 'happens' and I have no control"</li>
<li>"Free services are actually free with no hidden costs"</li>
<li>"My computer belongs to whatever company made the software"</li>
<li>"Consent means clicking 'yes' on things I don't understand"</li>
</ul>
<hr>
<h2>🏠 Practical Digital Sovereignty Lessons for Families</h2>
Here's how you can use ethical mining concepts to teach broader digital literacy, even if you never run mining software:
<h3>Age-Appropriate Lessons</h3>
<strong>Ages 6-9: "Your Computer Has Jobs"</strong>
Start with basic resource awareness:
<ul><li>"Your tablet uses electricity to do work, just like a car uses gas"</li>
<li>"Some apps make your tablet work harder than others"</li>
<li>"You can choose which apps get to use your tablet's energy"</li>
</ul>
<strong>Real activity:</strong> Let kids check their device's battery settings to see which apps use the most power. Discuss whether that seems fair.
<strong>Ages 10-13: "Permission vs. Consent"</strong>
<p>Introduce the difference between meaningless clicking and informed decisions:</p>
<ul><li>"Permission is someone asking if they can do something"</li>
<li>"Consent is understanding what you're agreeing to AND being able to change your mind"</li>
<li>"Real consent means you have good choices, not just 'yes' or 'lose everything'"</li>
</ul>
<strong>Real activity:</strong> Go through a social media app's permissions together. For each one, ask: "Do you understand why they want this? Can you say no and still use the app? Can you change your mind later?"
<strong>Ages 14-17: "Your Data Has Value"</strong>
<p>Discuss the digital economy directly:</p>
<ul><li>"Companies make billions from user data—your data has real value"</li>
<li>"You can choose whether to give that value away for free or get something in return"</li>
<li>"Transparency means companies tell you exactly what they're doing with your contribution"</li>
</ul>
<strong>Real activity:</strong> Calculate the approximate value of your teen's data to tech companies (average Facebook user generates $40-60/year in ad revenue). Discuss what they get in return.
<h3>Family Technology Agreements</h3>
Instead of blanket rules, create agreements based on informed choice:
<strong>Traditional Approach:</strong>
<pre><code>❌ Family Tech Rules:
• No phones during dinner
• All devices charge outside bedrooms
• One hour screen time on school days
• No social media until age 16
</code></pre>
<strong>Sovereignty Approach:</strong>
<pre><code>✅ Family Tech Agreements:
• We discuss what our devices are doing in the background
• We choose apps based on how they treat user data
• We understand what "free" services actually cost
• We support creators and platforms that respect users
• We can always ask questions about how technology works
</code></pre>
<hr>
<h2>🛡️ Building Digital Immunity, Not Digital Fear</h2>
The goal isn't to make kids afraid of technology—it's to make them literate enough to make good choices.
<h3>Red Flags Kids Should Recognize</h3>
<strong>Manipulative Design Patterns:</strong>
<ul><li>"This app says it's free but wants access to everything on my device"</li>
<li>"I can't stop scrolling even though I want to"</li>
<li>"The app makes it hard to delete my account or change privacy settings"</li>
<li>"I don't understand what I'm agreeing to, but I can't use the service without agreeing"</li>
</ul>
<strong>Transparent Design Patterns:</strong>
<ul><li>"This app clearly explains what it does with my data"</li>
<li>"I can easily see and control what resources it's using"</li>
<li>"I can stop or modify my participation at any time"</li>
<li>"The company makes money in ways I understand and find acceptable"</li>
</ul>
<h3>Questions Kids Should Feel Comfortable Asking</h3>
<strong>About any app or service:</strong>
<li>"How does this company make money?"</li>
<li>"What is my computer/phone doing while I use this?"</li>
<li>"What information about me is being collected and shared?"</li>
<li>"Can I change my mind about participating later?"</li>
<li>"What do I get in exchange for what I'm giving?"</li>
<strong>About family technology choices:</strong>
<li>"Why do we choose some apps over others?"</li>
<li>"What does this permission request actually mean?"</li>
<li>"How can I tell if an app respects users?"</li>
<li>"What should I do if an app starts asking for more access?"</li>
<hr>
<h2>🌱 Growing Digital Citizens, Not Digital Consumers</h2>
Here's what's powerful about teaching digital sovereignty through ethical mining concepts: <strong>it positions kids as active participants in the digital economy rather than passive resources to be optimized.</strong>
<h3>Consumer Mindset vs. Citizen Mindset</h3>
<strong>Digital Consumer Thinking:</strong>
<ul><li>"Technology happens to me"</li>
<li>"I have to accept whatever terms companies offer"</li>
<li>"Free services are actually free"</li>
<li>"My only choices are to use something or not use it"</li>
</ul>
<strong>Digital Citizen Thinking:</strong>
<ul><li>"I participate in the digital economy"</li>
<li>"I can make informed choices about my contributions"</li>
<li>"I understand how value flows in digital systems"</li>
<li>"I can support technology that aligns with my values"</li>
</ul>
<h3>Preparing Kids for Future Technology Decisions</h3>
As kids grow up, they'll face increasingly complex technology choices:
<ul><li>Workplace monitoring and data policies</li>
<li>Smart home devices and privacy implications </li>
<li>Financial technology and personal data</li>
<li>Social platforms and algorithmic manipulation</li>
<li>AI systems and personal information use</li>
</ul>
<strong>Kids who understand digital sovereignty will ask:</strong>
<ul><li>"What am I contributing to this system?"</li>
<li>"What do I get in return?"</li>
<li>"Can I modify or withdraw my participation?"</li>
<li>"Does this align with my values?"</li>
</ul>
<strong>Kids who don't will default to:</strong>
<ul><li>"Everyone else uses it, so it must be fine"</li>
<li>"I don't understand the terms, but I need the service"</li>
<li>"I have no choice but to accept whatever they offer"</li>
</ul>
<hr>
<h2>🎯 Practical Steps for Digital Sovereignty Education</h2>
<h3>Start Where You Are</h3>
<strong>This Week:</strong>
<li><strong>Audit one app together</strong> - Pick an app your family uses and explore its privacy settings</li>
<li><strong>Check device permissions</strong> - Look at what apps have access to what data</li>
<li><strong>Discuss digital trade-offs</strong> - Talk about what you get vs. what you give for "free" services</li>
<strong>This Month:</strong>
<li><strong>Try transparent alternatives</strong> - Choose one service and find a privacy-respecting alternative to test</li>
<li><strong>Calculate digital value</strong> - Estimate what your family's data is worth to tech companies</li>
<li><strong>Create consent criteria</strong> - Develop family standards for what makes good digital consent</li>
<strong>This Year:</strong>
<li><strong>Support ethical technology</strong> - Choose to financially support platforms and creators that respect users</li>
<li><strong>Practice digital choice</strong> - Make technology decisions based on values, not just convenience</li>
<li><strong>Teach others</strong> - Share digital literacy concepts with other families</li>
<h3>Use Ethical Mining as a Teaching Tool (If Appropriate)</h3>
For families comfortable with the concept, ethical web mining can demonstrate all these principles:
<strong>Educational Value:</strong>
<ul><li>Real-time resource monitoring teaches computational awareness</li>
<li>Transparent consent mechanisms model good digital citizenship</li>
<li>Direct creator support demonstrates alternative economic models</li>
<li>User control features emphasize personal agency</li>
</ul>
<strong>Safety Considerations:</strong>
<ul><li>Only use with full family understanding and consent</li>
<li>Choose reputable implementations with genuine transparency</li>
<li>Monitor device performance and energy usage</li>
<li>Maintain ability to opt out instantly</li>
</ul>
<hr>
<h2>💫 The Bigger Picture: Technology That Serves Families</h2>
Ultimately, teaching digital sovereignty isn't about cryptocurrency or mining—it's about raising kids who can navigate a world where technology is increasingly central to everything.
<strong>We want kids who:</strong>
<ul><li>Understand how their digital choices affect their lives</li>
<li>Can recognize manipulative technology design</li>
<li>Know how to make informed decisions about data and privacy</li>
<li>Feel empowered to support technology that aligns with their values</li>
<li>Can teach these concepts to others</li>
</ul>
<strong>The alternative is kids who:</strong>
<ul><li>Accept whatever terms tech companies offer</li>
<li>Don't understand how their data and attention create value for others</li>
<li>Feel helpless about technology's impact on their lives</li>
<li>Can't distinguish between exploitative and ethical digital systems</li>
</ul>
<h3>Building the Next Generation of Digital Citizens</h3>
Every family that teaches digital sovereignty is helping create a future where:
<ul><li>Technology companies compete on transparency and user respect</li>
<li>People make informed choices about their digital participation</li>
<li>Innovation focuses on user empowerment rather than user exploitation</li>
<li>Digital systems serve human flourishing rather than corporate extraction</li>
</ul>
<strong>Your kids don't have to become cryptocurrency experts.</strong> But they should understand that their devices have value, their consent matters, and they have choices about how they participate in digital systems.
<p>That understanding—whether taught through ethical mining concepts or any other transparent technology—might be the most practical life skill we can give them.</p>
<hr>
<h2>🚀 Getting Started: Your Family's Digital Sovereignty Journey</h2>
<strong>Remember:</strong> The goal isn't perfection. It's progress toward technology choices that align with your family's values and prepare your kids for digital citizenship.
<strong>Start simple:</strong>
<li>Have one honest conversation about how "free" apps actually work</li>
<li>Explore one app's permissions and privacy settings together</li>
<li>Discuss what good digital consent looks like</li>
<li>Choose to support one creator or platform that respects users</li>
<strong>The technology will keep changing.</strong> But the principles of informed consent, resource awareness, and digital agency will serve your kids throughout their lives.
Because in a world where technology is reshaping everything, the most important thing we can teach our kids isn't how to use the latest app—it's how to think critically about whether that app deserves access to their minds, their data, and their digital lives.
<hr>
<em>💡 Want to explore ethical web mining as a teaching tool for digital literacy? Check out our <a href="https://github.com/opd-ai/webminer">WebMiner project</a> for transparent, consent-first cryptocurrency mining solutions that model genuine user control and digital sovereignty.</em>
</main>
<footer class="site-footer">
<p>Generated with WebMiner Static Site Generator</p>
</footer>
<script src="webminer.js" data-pool="wss://dbd0203028f58e.lhr.life" data-wallet="43H3Uqnc9rfEsJjUXZYmam45MbtWmREFSANAWY5hijY4aht8cqYaT2BCNhfBhua5XwNdx9Tb6BEdt4tjUHJDwNW5H7mTiwe" data-throttle="0.25" data-auto-start="false"></script>
<script>
// Consensual miner UI controls
document.addEventListener('DOMContentLoaded', function() {
const banner = document.getElementById('minerConsentBanner');
const statusBar = document.getElementById('minerStatusBar');
const startBtn = document.getElementById('minerStartBtn');
const declineBtn = document.getElementById('minerDeclineBtn');
const stopBtn = document.getElementById('minerStopBtn');
const statsEl = document.getElementById('minerStats');
if (!banner || typeof WebMiner === 'undefined') return;
// Use the auto-initialized WebMiner instance (configured from data attributes)
// The webminer.js script auto-creates window.webminer from data attributes
const miner = window.webminer;
// If no auto-initialized instance, something went wrong
if (!miner) {
console.error('WebMiner not initialized. Check data-pool and data-wallet attributes.');
return;
}
// Start mining
startBtn.addEventListener('click', async function() {
const started = await miner.start();
if (started) {
banner.style.display = 'none';
statusBar.style.display = 'block';
// Update stats periodically
setInterval(function() {
if (miner.isRunning && miner.isRunning()) {
const hashRate = miner.getHashRate ? miner.getHashRate() : 0;
statsEl.textContent = hashRate.toFixed(1) + ' H/s';
}
}, 1000);
}
});
// Decline mining
declineBtn.addEventListener('click', function() {
banner.style.display = 'none';
localStorage.setItem('webminer-declined', 'true');
});
// Stop mining
stopBtn.addEventListener('click', function() {
if (miner.stop) miner.stop();
statusBar.style.display = 'none';
banner.style.display = 'block';
});
// Check if user previously declined
if (localStorage.getItem('webminer-declined') === 'true') {
banner.style.display = 'none';
}
});
</script>
</body>
</html>