-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.html
597 lines (493 loc) · 28.4 KB
/
home.html
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
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=0.8">
<meta charset="utf-8">
<link rel="stylesheet" href="style\indexstyle.css">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=Orbitron:wght@600&display=swap" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="flavicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="flavicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="flavicon/favicon-16x16.png">
<link rel="manifest" href="flavicon/site.webmanifest">
<link href="https://fonts.cdnfonts.com/css/lcd" rel="stylesheet">
<title>onekickrick</title>
</head>
<body>
<div style=" background-color:rgb(34, 75, 49)" class="crt" id="myDIV">
<nav>
<div style="display: flex; align-items: center; justify-content: space-between; margin: 0.4rem;">
<button style=" background-color: rgb(47, 94, 64); width: 11rem;" id="ASong" id="startButton"
onClick=" poop()">
enable music
</button>
<div style=" display: flex; justify-content: flex-end;">
<span style="width: 80px; height: 23px;" id="sfc1tultnydt4zu51mr3nr6kwk3jznpq9e2">
viewer
counter </span>
<script type="text/javascript"
src="https://counter10.optistats.ovh/private/counter.js?c=1tultnydt4zu51mr3nr6kwk3jznpq9e2&down=async"
async></script>
<noscript> <a href="https://www.freecounterstat.com" title="page counter"><img
src="https://counter10.optistats.ovh/private/freecounterstat.php?c=1tultnydt4zu51mr3nr6kwk3jznpq9e2"
border="0" title="page counter" alt="page counter"></a></noscript>
</div>
<button onclick="ToggleCRT()" style=" background-color: rgb(47, 94, 64);">crt</button>
<div style="width: 11rem; display: flex; justify-content: flex-end;">
<button style=" background-color: rgb(47, 94, 64); "><a style="color: aliceblue;"
href="https://ko-fi.com/onekickrick"> ko-fi
</a></button>
<div class="dropdown">
<button class="dropbtn"><img src="media\dropdown.png" height="25" width="25"
style="margin-top: 0em;">
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="openSAM.html">opensam</a>
<a href="webcomic.html">webcomic</a>
<a href="index.html">portfolio</a>
<a href="PPL.html">PPL-Generator</a>
</div>
</div>
</div>
</nav>
</div>
<hr color=rgb(18, 39, 26)>
<center>
<h1> HELLO! THIS IS MY SPACESHIP.</h1>
<hr color=rgb(18, 39, 26)>
<div style=" background-color:rgb(45, 92, 61)">
<center> <img src="media\akira.gif" width="502"></center>
<div style=" display: flex; margin: 0.4rem; align-items: center; justify-content: center; background-color:rgb(60, 126, 84)"
id='playerControls'>
<button onClick="buttonSVX()" id="instagramButton">
<img src="media\media\socials\icons8-instagram-30.png" height="20" width="20">
</button>
<button id="TwitterButton">
<img src="media\media\socials\icons8-twitter-50.png" height="20" width="20">
</button>
<button onClick="buttonSVX()" id="YoutubeButton">
<img src="media\media\socials\icons8-youtube-50.png" height="20" width="20">
</button>
<button onClick="buttonSVX()" id="spotifyButton">
<img src="media\media\socials\icons8-spotify-50 (1).png" height="20" width="20">
</button>
<button onClick="buttonSVX()" id="steamButton">
<img src="media\media\socials\icons8-steam-50.png" height="20" width="20">
</button>
<button onClick="buttonSVX()" id="artstationButton">
<img src="media\media\socials\icons8-artstation-32 (1).png" height="20" width="20">
</button>
<button onClick="buttonSVX()" id="itchButton">
<img src="media\media\socials\icons8-itch-io-48.png" height="20" width="20">
</button>
</div>
<div
style=" border: solid; border-color: rgb(34, 75, 49); border-width: 5px; background-color: rgb(60, 126, 84);">
<table style="width:100%">
<tr>
<th style="width: 11%; text-align:left"> <img id="player-album-art"
style="width: 70px; height: 70px; margin-top: 7px; margin-bottom: 3px; margin-left: 7px;">
</th>
<th
style=" border: width 10px; width: 40%; border: solid; border-color: rgb(34, 75, 49); background-image: radial-gradient(rgba(141, 255, 170, 0.75), rgb(39, 100, 39) 120%); text-align:center">
<div style="font-family: 'LCD', sans-serif; background-color: rgba(23, 70, 40, 0); text-align: center;"
id="player-status" style="font-size: 0.2em; color: #01220f; margin: 1em 0 0.5em 0">
</div>
<marquee width="60%" direction="left" height="15px" id="player-song" id="player-artist"
style=" font-family: 'LCD', sans-serif; font-size: 0.9em; color: #01220f;">
</marquee>
<div id="player-artist"
style="font-family: 'LCD', sans-serif; font-size: 0.6em; color: #01220f;"></div>
<div id="player-time"
style="position: relative; float: right; top: -2em; font-weight: bold">
</div>
</th>
</tr>
</table>
</div>
<div class="button-container" id='playerControls3'>
<button onClick="buttonSVX()" class="collapsible-btn">SAMsynth</button>
<button onClick="buttonSVX()" class="collapsible-btn">tapedeck</button>
<button onClick="buttonSVX()" class="collapsible-btn">Generate</button>
<button onClick="buttonSVX()" class="collapsible-btn">Memes</button>
<button onClick="buttonSVX()" class="collapsible-btn">F.A.Q</button>
</div>
<div class="content-container">
<div class="content">
<form id="playground">
<div>
SAM SYNTH:
<input size="60" id="speechinput" name="textfield" value="">
<button type="button" id="sayButton">Next</button>
<table style="width:100%; border: 1px solid rgb(21, 51, 26);">
<tr>
<td><input style="margin-left: 10px;" type="range" id="mouth" min="0" max="255"
value="128" />
<span id="mouth-lbl">Mouth: 128</span>
<input style="margin-left: 10px;" type="range" id="throat" min="0" max="255"
value="128" />
<span id="throat-lbl">Throat: 128</span>
</td>
<td> <canvas style="margin-right: 10px;" id="canvas" width="100"
height="50"></canvas></td>
</tr>
</table>
</div>
</form>
<div class="keyboard" id='playerControls2'>
<button data-pitch="91" data-speed="80" data-key="A">A</button>
<button data-pitch="82" data-speed="80" data-key="S">B</button>
<button data-pitch="73" data-speed="80" data-key="D">C</button>
<button data-pitch="64" data-speed="80" data-key="F">D</button>
<button data-pitch="55" data-speed="80" data-key="G">G</button>
<button data-pitch="36" data-speed="80" data-key="H">H</button>
<button data-pitch="27" data-speed="80" data-key="J">J</button>
<button data-pitch="18" data-speed="80" data-key="K">K</button>
<button data-pitch="30" data-speed="80" data-key="L">L</button>
<button data-pitch="20" data-speed="80" data-key=";">;</button>
</div>
</div>
<div class="content">
<div style=" display: flex; margin: 0.4rem; align-items: center; justify-content: center; background-color:rgb(60, 126, 84)"
id='playerControls'>
<img src="media\dot.png" style="margin-left:15px ;" height="15" width="15">
<button id="startButton" onClick=" playAudio(), buttonSVX()"><img
src="media\multimedia controlls\play.png" height=20; width=20;></button>
<button id="stopButton" onClick="pauseAudio(), buttonSVX()"><img
src="media\multimedia controlls\stop.png" height=20; width=20;></button>
<button id="ASong" onClick="getCurTime(), buttonSVX()"><img
src="media\multimedia controlls\rewind.png" height=20; width=20;></button>
<button onClick="buttonSVX()"><img src="media\multimedia controlls\fastforward.png" height=20;
width=20;></button>
<button onClick="buttonSVX()"><img src="media\multimedia controlls\play.png" height=20;
width=20;></button>
<img src="media\dot.png" style="margin-right:15px ;" height="15" width="15">
</div>
<audio id="myAudio" src="music\Frequency.mp3"></audio>
<audio id="tapeButton" src="music\button.mp3"></audio>
<audio id="poopie" src="music\poop.mp3"></audio>
<! tape player>
<table
style=" height: 170px; background-color: rgb(34, 75, 49); border-style: solid; border-color: #01220f; border-radius: 4px; ; display: flex; display: flex; margin: 0.4rem; align-items: center; justify-content: center; ">
<tr>
<td>
<div id="myElement">
<img id="secondImage" style="scale: 0.3;" src="media\spool-spokes.png"
alt="Image 2">
<img id="myImage" style="scale: 0.3;" src="media\14.png" alt="Image 1">
</div>
</td>
<td>                         
</td>
<td>
<div id="myElement">
<img id="reel2" style="scale: 0.3;" src="media\spool-spokes.png" alt="Image 2">
<img id="spool2" style="scale: 0.3;" src="media\14.png" alt="Image 1">
</div>
</td>
</tr>
</table>
</div>
<div class="content">
<div1 style="background-color: rgb(34, 75, 49); color: rgb(151, 230, 148); display: flex;">
<button style="background-color: rgb(62, 134, 89);" onclick=" generatePrompt()">bored?</button>
<label><input type="checkbox" name="category" value="Books">Books</label>
<label><input type="checkbox" name="category" value="anime">Anime</label>
<label><input type="checkbox" name="category" value="Movies">Movies</label>
<label><input type="checkbox" name="category" value="manga">Manga</label>
<label><input type="checkbox" name="category" value="video games">Games</label>
</div1>
<p id="prompt"></p>
</div>
<div class="content">
<div class="video-container">
<div class="slideshow">
<video class="slide active" width="640" height="360" controls>
<source src="media\media\BLOODY F CK YOU - Phoenix Write.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<video class="slide" width="640" height="360" controls>
<source src="media\bmo asks an interesting question.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
<hr color=rgb(18, 39, 26)>
<br><br><br>
<div style=" display: flex; margin: 0.4rem; align-items: center; justify-content: center; background-color:rgb(60, 126, 84)"
id='playerControls3'>
<button class="button" onclick="previousSlide()">Previous</button>
<button class="button" onclick="nextSlide()">Next</button>
</div>
</div>
<div class="content">
<button type="button" class="collapsible">What is this website?</button>
<div class="content">
<p><img src="media\insanecat.gif" height="70" width="70"></p>
</div>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
var collapsibleButtons = document.querySelectorAll(".collapsible-btn");
var contents = document.querySelectorAll(".content");
// Show the first content section by default
contents[0].style.display = "block";
collapsibleButtons.forEach(function (button, index) {
button.addEventListener("click", function () {
contents.forEach(function (content, contentIndex) {
if (index === contentIndex) {
content.style.display = content.style.display === "block" ? "none" : "block";
} else {
content.style.display = "none";
}
});
});
});
});
</script>
<script>
var slides = document.querySelectorAll('.slide');
var currentSlide = 0;
function showSlide(n) {
slides[currentSlide].classList.remove('active');
currentSlide = (n + slides.length) % slides.length;
slides[currentSlide].classList.add('active');
}
function previousSlide() {
showSlide(currentSlide - 1);
}
function nextSlide() {
showSlide(currentSlide + 1);
}
</script>
<div style="background-color:rgb(34, 75, 49)">
<br><br><br><br><br><br><br> <br><br><br><br><br><br><br>
</div>
<script src="scripts\randomentertainment.js"></script>
<script>
function ToggleCRT() {
var element = document.getElementById("myDIV");
element.classList.toggle("crt");
}
</script>
<script src="scripts\spotifyplayer.js"></script>
<script src="scripts/collapsible.js"></script>
<script>
var x = document.getElementById("myAudio");
var b = document.getElementById("tapeButton");
var c = document.getElementById("poopie");
function playAudio() {
x.play();
}
function buttonSVX() {
b.play();
}
function poop() {
c.play();
}
function pauseAudio() {
x.pause();
}
</script>
<script>
var x = document.getElementById("myAudio");
function getCurTime() {
x.currentTime = x.duration;
}
</script>
<script>
var audio = document.getElementById("myAudio");
var image = document.getElementById("myImage");
var spol2 = document.getElementById("spool2");
audio.addEventListener("timeupdate", function () {
var currentTime = (audio.currentTime / audio.duration); // Get the current playtime in seconds
// Calculate the desired size of the image based on the current playtime
var newSize = currentTime * 250 + 250 + "px";
var newSize2 = currentTime * -250 + 500 + "px";
// Apply the new size to the image
image.style.width = newSize;
spol2.style.width = newSize2;
});
</script>
<script>
const startButton = document.getElementById('startButton');
const stopButton = document.getElementById('stopButton');
const myImage = document.getElementById('myImage');
const secondImage = document.getElementById('secondImage');
const spool2 = document.getElementById('spool2');
const reel2 = document.getElementById('reel2');
let rotationInterval;
startButton.addEventListener('click', function () {
myImage.classList.add('rotating');
secondImage.classList.add('rotating'); // Add 'rotating' class to start the rotation animation
spool2.classList.add('rotating');
reel2.classList.add('rotating');
});
stopButton.addEventListener('click', function () {
myImage.classList.remove('rotating'); // Remove 'rotating' class to stop the rotation animation
secondImage.classList.remove('rotating'); // Remove 'rotating' class to stop the rotation animation
spool2.classList.remove('rotating');
reel2.classList.remove('rotating');
});
</script>
<script>if (x.currentTime = x.duration) {
x.pause;
}</script>
<script src="scripts\samjs.js"></script>
<script>
opts = {
debug: 1,
pitch: 64,
speed: 72,
mouth: 128,
throat: 128,
singmode: true
};
var speech;
var words = [];
var wordIndex = 0;
function speakNextWord() {
if (wordIndex >= words.length) {
wordIndex = 0; // Reset the word index to loop back to the beginning
}
var sam = new SamJs(opts);
if (speech) speech.abort();
sam.speak(words[wordIndex]);
wordIndex++;
}
function speakWord(word, pitch, speed) {
opts.pitch = pitch; // Update the pitch value
opts.speed = speed; // Update the speed value
if (wordIndex >= words.length) {
wordIndex = 0; // Reset the word index to loop back to the beginning
}
var sam = new SamJs(opts);
if (speech) speech.abort();
sam.speak(words[wordIndex]);
wordIndex++;
}
document.addEventListener('DOMContentLoaded', function () {
var speechInput = document.getElementById('speechinput');
speechInput.addEventListener('input', function () {
words = speechInput.value.trim().split(' ');
wordIndex = 0;
});
var sayButton = document.getElementById('sayButton');
sayButton.addEventListener('click', speakNextWord);
var keyboard = document.querySelector('.keyboard');
keyboard.addEventListener('click', function (event) {
if (event.target.tagName === 'BUTTON') {
var word = words[wordIndex];
var pitch = event.target.dataset.pitch; // Get the pitch value from the button's data attribute
var speed = event.target.dataset.speed; // Get the speed value from the button's data attribute
speakWord(word, pitch, speed);
}
});
document.addEventListener('keydown', function (event) {
var key = event.key.toUpperCase();
var button = document.querySelector('.keyboard button[data-key="' + key + '"]');
if (button) {
button.click(); // Trigger the button's click event
}
});
['mouth', 'throat'].forEach((name) => {
var e = document.getElementById(name);
e.onchange = function (e) {
opts[e.target.id] = e.target.value;
document.getElementById(e.target.id + '-lbl').innerText =
e.target.id.charAt(0).toUpperCase() + e.target.id.substr(1) + ': ' + e.target.value;
};
e.value = opts[name];
});
});
</script>
<br>
<label for="speed">Speed:</label>
<input type="range" id="speed" min="0.1" max="1" step="0.1" value="0.2">
<br>
<label for="gradientColor1">Gradient Color 1:</label>
<input type="color" id="gradientColor1" value="#a8ff7f">
<br>
<label for="gradientColor2">Gradient Color 2:</label>
<input type="color" id="gradientColor2" value="#036114">
<br>
<script>
const canvas = document.getElementById('canvas');
const context = canvas.getContext('2d');
const frequencySlider = document.getElementById('mouth');
const amplitudeSlider = document.getElementById('throat');
const speedSlider = document.getElementById('speed');
const gradientColor1Input = document.getElementById('gradientColor1');
const gradientColor2Input = document.getElementById('gradientColor2');
let time = 0;
function drawWave() {
const frequency = parseFloat(frequencySlider.value);
const amplitude = parseFloat(amplitudeSlider.value);
const speed = parseFloat(speedSlider.value);
const gradientColor1 = gradientColor1Input.value;
const gradientColor2 = gradientColor2Input.value;
context.clearRect(0, 0, canvas.width, canvas.height);
context.beginPath();
context.moveTo(0, canvas.height / 2);
const gradient = context.createLinearGradient(0, 0, canvas.width, 0);
gradient.addColorStop(0, gradientColor1);
gradient.addColorStop(1, gradientColor2);
context.strokeStyle = gradient;
for (let x = 0; x < canvas.width; x++) {
const y = Math.sin((x / canvas.width) * frequency + time) * amplitude + canvas.height / 2;
context.lineTo(x, y);
}
context.lineWidth = 3;
context.stroke();
time += speed;
}
frequencySlider.addEventListener('input', drawWave);
amplitudeSlider.addEventListener('input', drawWave);
speedSlider.addEventListener('input', drawWave);
gradientColor1Input.addEventListener('input', drawWave);
gradientColor2Input.addEventListener('input', drawWave);
drawWave(); // Initial drawing
setInterval(drawWave, 20); // Redraw every 20 milliseconds
</script>
<script>
// Get a reference to the button element
const instagramButton = document.getElementById("instagramButton");
const spotifyButton = document.getElementById("spotifyButton");
const steamButton = document.getElementById("steamButton");
const artstationButton = document.getElementById("artstationButton");
const YoutubeButton = document.getElementById("YoutubeButton");
const TwitterButton = document.getElementById("TwitterButton");
const itchButton = document.getElementById("itchButton");
// Add a click event listener to the button
itchButton.addEventListener("click", function () {
// Redirect to the itch.io website
window.location.href = "https://oxyhadron.itch.io/";
});
instagramButton.addEventListener("click", function () {
window.location.href = "https://www.instagram.com/oxyhadron/";
});
spotifyButton.addEventListener("click", function () {
window.location.href = "https://open.spotify.com/user/b8st4w63ufri0003m7unehml1?si=dcfc7fe777974bbf&nd=1";
});
steamButton.addEventListener("click", function () {
window.location.href = "https://steamcommunity.com/id/oxyhadron";
});
artstationButton.addEventListener("click", function () {
window.location.href = "https://www.artstation.com/oxyhadron";
});
YoutubeButton.addEventListener("click", function () {
window.location.href = "https://www.youtube.com/@oxyhadron1120/about";
});
TwitterButton.addEventListener("click", function () {
window.location.href = "https://twitter.com/0xyhadron";
});
</script>
</html>