xvadur commited on
Commit
a4021dd
·
1 Parent(s): a3ec448

🕸️ Spider-Man Interactive Features: Added web shooting effects, corner image animations, and enhanced user interactions

Browse files
Files changed (1) hide show
  1. dashboard/public/script.js +75 -1
dashboard/public/script.js CHANGED
@@ -1,5 +1,79 @@
1
  document.addEventListener('DOMContentLoaded', () => {
2
- console.log('Aethero Dashboard Loaded');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  // Simulate loading parser logs
5
  const logsContainer = document.getElementById('logs-container');
 
1
  document.addEventListener('DOMContentLoaded', () => {
2
+ console.log('🕷️ Aethero Spider-Man Dashboard Loaded');
3
+
4
+ // Spider-Man corner image interactions
5
+ const spiderManCorner = document.querySelector('.spiderman-corner');
6
+ if (spiderManCorner) {
7
+ // Add click effect
8
+ spiderManCorner.addEventListener('click', () => {
9
+ spiderManCorner.style.transform = 'scale(1.2) rotate(360deg)';
10
+ setTimeout(() => {
11
+ spiderManCorner.style.transform = 'scale(1)';
12
+ }, 500);
13
+
14
+ // Add web shooting effect
15
+ createWebEffect();
16
+ });
17
+
18
+ // Hover sound effect simulation
19
+ spiderManCorner.addEventListener('mouseenter', () => {
20
+ console.log('🕸️ Web sense activated!');
21
+ });
22
+ }
23
+
24
+ // Create web shooting effect
25
+ function createWebEffect() {
26
+ const web = document.createElement('div');
27
+ web.style.cssText = `
28
+ position: fixed;
29
+ top: 85px;
30
+ left: 85px;
31
+ width: 200px;
32
+ height: 2px;
33
+ background: linear-gradient(90deg, #fff, transparent);
34
+ z-index: 999;
35
+ pointer-events: none;
36
+ animation: shootWeb 1s ease-out forwards;
37
+ `;
38
+
39
+ // Add CSS animation
40
+ const style = document.createElement('style');
41
+ style.textContent = `
42
+ @keyframes shootWeb {
43
+ 0% { width: 0; opacity: 1; }
44
+ 100% { width: 300px; opacity: 0; }
45
+ }
46
+ `;
47
+ document.head.appendChild(style);
48
+ document.body.appendChild(web);
49
+
50
+ setTimeout(() => {
51
+ document.body.removeChild(web);
52
+ document.head.removeChild(style);
53
+ }, 1000);
54
+ }
55
+
56
+ // Enhanced header animation
57
+ const header = document.querySelector('header h1');
58
+ if (header) {
59
+ header.addEventListener('click', () => {
60
+ header.style.animation = 'pulse 0.5s ease-in-out';
61
+ setTimeout(() => {
62
+ header.style.animation = '';
63
+ }, 500);
64
+ });
65
+ }
66
+
67
+ // Add CSS for pulse animation
68
+ const pulseStyle = document.createElement('style');
69
+ pulseStyle.textContent = `
70
+ @keyframes pulse {
71
+ 0% { transform: scale(1); }
72
+ 50% { transform: scale(1.05); }
73
+ 100% { transform: scale(1); }
74
+ }
75
+ `;
76
+ document.head.appendChild(pulseStyle);
77
 
78
  // Simulate loading parser logs
79
  const logsContainer = document.getElementById('logs-container');