Spaces:
Running
Running
Share
Browse files- components/share-button.js +65 -0
- index.html +8 -4
- modules.html +9 -5
components/share-button.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class ShareButton extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: inline-block;
|
| 8 |
+
}
|
| 9 |
+
button {
|
| 10 |
+
background: linear-gradient(to right, #dc2626, #7c3aed);
|
| 11 |
+
color: white;
|
| 12 |
+
border: none;
|
| 13 |
+
padding: 0.5rem 1rem;
|
| 14 |
+
border-radius: 0.5rem;
|
| 15 |
+
font-family: inherit;
|
| 16 |
+
font-weight: 600;
|
| 17 |
+
cursor: pointer;
|
| 18 |
+
display: flex;
|
| 19 |
+
align-items: center;
|
| 20 |
+
gap: 0.5rem;
|
| 21 |
+
transition: all 0.3s ease;
|
| 22 |
+
}
|
| 23 |
+
button:hover {
|
| 24 |
+
opacity: 0.9;
|
| 25 |
+
transform: translateY(-1px);
|
| 26 |
+
}
|
| 27 |
+
.share-icon {
|
| 28 |
+
width: 1rem;
|
| 29 |
+
height: 1rem;
|
| 30 |
+
}
|
| 31 |
+
</style>
|
| 32 |
+
<button>
|
| 33 |
+
<svg class="share-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
| 34 |
+
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path>
|
| 35 |
+
<polyline points="16 6 12 2 8 6"></polyline>
|
| 36 |
+
<line x1="12" y1="2" x2="12" y2="15"></line>
|
| 37 |
+
</svg>
|
| 38 |
+
Share
|
| 39 |
+
</button>
|
| 40 |
+
`;
|
| 41 |
+
|
| 42 |
+
this.shadowRoot.querySelector('button').addEventListener('click', () => this.shareContent());
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
shareContent() {
|
| 46 |
+
const title = document.title;
|
| 47 |
+
const url = window.location.href;
|
| 48 |
+
const text = "Check out this DevDaRK Shadow AI Pro module";
|
| 49 |
+
|
| 50 |
+
if (navigator.share) {
|
| 51 |
+
navigator.share({
|
| 52 |
+
title,
|
| 53 |
+
text,
|
| 54 |
+
url
|
| 55 |
+
}).catch(err => {
|
| 56 |
+
console.log('Error sharing:', err);
|
| 57 |
+
});
|
| 58 |
+
} else {
|
| 59 |
+
// Fallback for desktop
|
| 60 |
+
const shareUrl = `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}&url=${encodeURIComponent(url)}`;
|
| 61 |
+
window.open(shareUrl, '_blank');
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
customElements.define('share-button', ShareButton);
|
index.html
CHANGED
|
@@ -33,10 +33,13 @@
|
|
| 33 |
<main class="container mx-auto px-4 py-12">
|
| 34 |
<section class="mb-20">
|
| 35 |
<div class="text-center mb-16">
|
| 36 |
-
<
|
|
|
|
| 37 |
DevDaRK Shadow AI Pro
|
| 38 |
-
</h1>
|
| 39 |
-
|
|
|
|
|
|
|
| 40 |
[SYSTEM INITIALIZED] Connecting to darknet nodes...<br>
|
| 41 |
[STATUS] 78% penetration achieved<br>
|
| 42 |
[WARNING] Firewalls detected: 3<br>
|
|
@@ -86,7 +89,8 @@
|
|
| 86 |
<script src="components/navbar.js"></script>
|
| 87 |
<script src="components/footer.js"></script>
|
| 88 |
<script src="components/dashboard-card.js"></script>
|
| 89 |
-
<script>
|
|
|
|
| 90 |
feather.replace();
|
| 91 |
</script>
|
| 92 |
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
|
|
|
| 33 |
<main class="container mx-auto px-4 py-12">
|
| 34 |
<section class="mb-20">
|
| 35 |
<div class="text-center mb-16">
|
| 36 |
+
<div class="flex justify-between items-center">
|
| 37 |
+
<h1 class="text-5xl md:text-7xl font-bold mb-6 text-transparent bg-clip-text bg-gradient-to-r from-red-600 to-purple-800 glitch-text">
|
| 38 |
DevDaRK Shadow AI Pro
|
| 39 |
+
</h1>
|
| 40 |
+
<share-button></share-button>
|
| 41 |
+
</div>
|
| 42 |
+
<p class="text-xl md:text-2xl max-w-3xl mx-auto opacity-90 terminal-style">
|
| 43 |
[SYSTEM INITIALIZED] Connecting to darknet nodes...<br>
|
| 44 |
[STATUS] 78% penetration achieved<br>
|
| 45 |
[WARNING] Firewalls detected: 3<br>
|
|
|
|
| 89 |
<script src="components/navbar.js"></script>
|
| 90 |
<script src="components/footer.js"></script>
|
| 91 |
<script src="components/dashboard-card.js"></script>
|
| 92 |
+
<script src="components/share-button.js"></script>
|
| 93 |
+
<script>
|
| 94 |
feather.replace();
|
| 95 |
</script>
|
| 96 |
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
modules.html
CHANGED
|
@@ -31,10 +31,13 @@
|
|
| 31 |
|
| 32 |
<main class="container mx-auto px-4 py-12">
|
| 33 |
<section class="mb-12">
|
| 34 |
-
<
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
| 38 |
[SYSTEM] Loading operational modules...<br>
|
| 39 |
[STATUS] 23 active modules detected<br>
|
| 40 |
[WARNING] Some modules require root access
|
|
@@ -97,7 +100,8 @@
|
|
| 97 |
<script src="components/navbar.js"></script>
|
| 98 |
<script src="components/footer.js"></script>
|
| 99 |
<script src="components/dashboard-card.js"></script>
|
| 100 |
-
<script>
|
|
|
|
| 101 |
feather.replace();
|
| 102 |
</script>
|
| 103 |
</body>
|
|
|
|
| 31 |
|
| 32 |
<main class="container mx-auto px-4 py-12">
|
| 33 |
<section class="mb-12">
|
| 34 |
+
<div class="flex justify-between items-center">
|
| 35 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-8 text-transparent bg-clip-text bg-gradient-to-r from-red-600 to-purple-800 glitch-text">
|
| 36 |
+
DevDaRK Shadow AI Pro
|
| 37 |
+
</h1>
|
| 38 |
+
<share-button></share-button>
|
| 39 |
+
</div>
|
| 40 |
+
<p class="text-xl opacity-90 terminal-style mb-12">
|
| 41 |
[SYSTEM] Loading operational modules...<br>
|
| 42 |
[STATUS] 23 active modules detected<br>
|
| 43 |
[WARNING] Some modules require root access
|
|
|
|
| 100 |
<script src="components/navbar.js"></script>
|
| 101 |
<script src="components/footer.js"></script>
|
| 102 |
<script src="components/dashboard-card.js"></script>
|
| 103 |
+
<script src="components/share-button.js"></script>
|
| 104 |
+
<script>
|
| 105 |
feather.replace();
|
| 106 |
</script>
|
| 107 |
</body>
|