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
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
|
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta name="keywords" content="Programming, C++, C, Blog">
<meta name="description" content="Personal blog/portfolio/site for Daniel Jones">
<meta name="author" content="Daniel Jones">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-control" content="public">
<meta content="https://danieljones.au/media/tux_jump2.gif" property="og:image" />
<meta content="#ff0000" data-react-helmet="true" name="theme-color" />
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="/favicon.ico" type="image/x-icon"/>
<!--<link rel="icon" type="image/png" href="https://danieljon.es/favicon.png">-->
<title>{TITLE}</title>
<style>
@font-face
{
font-family: 'Agave-Regular';
src: url(/media/fonts/Agave-Regular.eot);
src: url(/media/fonts/Agave-Regular.eot?#iefix) format('embedded-opentype'),
url(/media/fonts/Agave-Regular.woff2) format('woff2'),
url(/media/fonts/Agave-Regular.woff) format('woff'),
url(/media/fonts/Agave-Regular.ttf) format('truetype'),
url(/media/fontsassets/Agave-Regular.svg#Agave-Regular) format('svg'),
url(Agave-Regular.woff2) format('woff2');
}
@font-face {
font-family: "Px437_Verite_8x8-2y";
src: url('Px437_Verite_8x8-2y.woff2');
}
@font-face {
font-family: 'allys_sad_handwritingregular';
src: url('/media/allys_sad_handwriting-webfont.woff2') format('woff2'),
url('/media/allys_sad_handwriting-webfont.woff') format('woff'),
url('allys_sad_handwriting-webfont.woff2') format('woff');
font-weight: normal;
font-style: normal;
}
body
{
font-family: 'Agave-Regular', Arial; font-size: large; font-weight: bolder; background: #F7F0FF; /*color: #999;*/
color: white;
background-color: #281b38;
background-image: url('https://danieljones.au/media/bg.gif');
text-shadow: 0 0 0.2em rgba(0, 255, 255, 0.8),
0 0 0.4em rgba(0, 255, 255, 0.6),
0 0 0.6em rgba(0, 255, 255, 0.4);
}
img{max-width: 100%; max-height: 100%; overflow: hidden;}
.blogimg
{
width: 100%;
max-width: 400px; /* Limit the image size on large screens */
height: auto; /* Keep the image's aspect ratio intact */
overflow: hidden;
}
pre{overflow: auto; border-width: 1px; border-style: solid; border-color: white; background-color: #333339; color: #fff;}
.middle{text-align: center;}
.middiv{margin: auto; width: 80%;}
#gentag{text-align: center; font-size: 75%;}
h1,h2,h3,h4
{
font-family: 'allys_sad_handwritingregular', sans-serif;
padding-left: 5px; /*color: #eee;*/
}
hr{border-color: white;}
div.viewing{max-width: 70%; width: 100%; display: inline-block; margin: 10px;}
div.cover{display:inline-block; vertical-align: top; padding-top: 28px; padding-left: 15px; padding-bottom: 20px;}
.content{max-width: 75%; margin: auto; font-weight: 50;}
.pinned{margin-left: 10px; display: inline-block; border-width: 1px; width: auto; outline: 1px solid #000; outline-offset: 10px;}
.notes {
margin-left: 10px;
display: inline-block;
max-height: 600px;
max-width: 600px;
width: 100%;
overflow-y: scroll !important;
scrollbar-width: auto;
border: 15px solid;
border-image: url('https://danieljones.au/media/div_border.gif') 40 stretch;
padding: 1px;
box-sizing: border-box;
}
#links {
background-image: url('https://danieljones.au/media/rainbow.jpg');
background-repeat: repeat;
background-size: auto 100%;
animation: scroll-bg 15s linear infinite;
position: relative;
width: 50%;
margin: 0 auto;
min-width: 300px;
max-width: 100%;
}
@keyframes scroll-bg {
0% {
background-position-x: 100%;
}
100% {
background-position-x: 0%;
}
}
/* Media query for small screens */
@media screen and (max-width: 600px) {
#links {
width: 95%;
}
}
a {
color: #ff80ff;
text-decoration: none;
text-shadow: 0 0 0.2em rgba(255, 0, 255, 0.8),
0 0 0.4em rgba(255, 0, 255, 0.6),
0 0 0.6em rgba(255, 0, 255, 0.4);
}
a:hover {
color: #00ffff;
text-shadow: 0 0 0.2em rgba(0, 255, 255, 0.8),
0 0 0.4em rgba(0, 255, 255, 0.6),
0 0 0.6em rgba(0, 255, 255, 0.4);
}
.js-message
{
color: white;
background: red;
}
td {text-align: center;}
/*a{color: #eee;}*/
#links a {
font-family: 'allys_sad_handwritingregular', Arial;
padding: 0.15em 0.6em;
color: #281b38;
text-shadow:
-0.08em -0.08em 0 white,
0.08em -0.08em 0 white,
-0.08em 0.08em 0 white,
0.08em 0.08em 0 white;
transition: all 0.2s;
}
#links a:hover {
color: white;
text-shadow:
-0.08em -0.08em 0 #281b38,
0.08em -0.08em 0 #281b38,
-0.08em 0.08em 0 #281b38,
0.08em 0.08em 0 #281b38;
}
.running-sprite {
position: absolute;
top: -61px; /* Adjust this value to align with the top border */
left: 0;
width: 49px; /* Adjust based on your sprite's actual size */
height: 61px; /* Adjust based on your sprite's actual size */
background-image: url('https://danieljones.au/media/running_girl.gif');
animation: run-sprite 8s linear infinite;
transform: scaleX(1);
z-index: 1;
}
.running-sprite2 {
position: fixed;
bottom: 5px;
left: 0;
width: 60px;
height: 60px;
background-image: url('https://danieljones.au/media/rem_run.gif');
background-size: cover;
animation: run-sprite 15s linear infinite;
transform: scaleX(1);
z-index: 1;
cursor: pointer;
user-select: none;
}
.running-sprite2::before {
content: '';
position: absolute;
top: 0;
left: -30px;
right: -30px;
height: 100%;
pointer-events: all;
}
.running-sprite2.jumping {
animation: run-sprite 15s linear infinite, jump 0.5s ease-out;
}
@keyframes jump {
0% { transform: translateY(0) scaleX(var(--sprite-direction, 1)); }
50% { transform: translateY(-60px) scaleX(var(--sprite-direction, 1)); }
100% { transform: translateY(0) scaleX(var(--sprite-direction, 1)); }
}
@keyframes run-sprite {
0% {
left: 0;
transform: scaleX(1);
}
45% {
left: calc(100% - 32px); /* Adjust based on sprite width */
transform: scaleX(1);
}
50% {
left: calc(100% - 32px);
transform: scaleX(-1);
}
95% {
left: 0;
transform: scaleX(-1);
}
100% {
left: 0;
transform: scaleX(1);
}
}
table {
position: relative; /* Ensure the table's position is a reference point */
z-index: 0; /* Place table behind the sprite */
}
.walker-left, .walker-right {
position: fixed;
width: 200px;
height: 200px;
background-image: url('https://danieljones.au/media/chiyo_walk.gif');
background-size: contain;
background-repeat: no-repeat;
pointer-events: none;
z-index: -1;
opacity: 0;
}
.walker-left {
animation: walk-left 6s linear infinite;
transform: scaleX(1);
}
.walker-right {
animation: walk-right 6s linear infinite;
transform: scaleX(-1);
animation-delay: 3s;
}
@keyframes walk-left {
0% {
left: 60%;
bottom: 0;
transform: scaleX(1) scale(0.2);
opacity: 0;
}
20% {
opacity: 1;
}
100% {
left: 20%;
bottom: 70%;
transform: scaleX(1) scale(2);
opacity: 0;
}
}
@keyframes walk-right {
0% {
left: 40%;
bottom: 0;
transform: scaleX(-1) scale(0.2);
opacity: 0;
}
20% {
opacity: 1;
}
100% {
left: 80%;
bottom: 70%;
transform: scaleX(-1) scale(2);
opacity: 0;
}
}
/* Ensure main content stays above walkers */
.middle {
position: relative;
z-index: 1;
background: transparent;
}
.title-container {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
height: 32px;
}
.title-gif {
width: 100px;
height: 100px;
background-image: url('https://danieljones.au/media/tux_dance.gif');
background-size: contain;
background-repeat: no-repeat;
display: inline-block;
filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7))
drop-shadow(0 0 10px rgba(255, 255, 255, 0.5))
drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
animation: glow 2s ease-in-out infinite alternate;
}
.title-gif.right {
transform: scaleX(-1);
}
@keyframes glow {
from {
filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7))
drop-shadow(0 0 10px rgba(255, 255, 255, 0.5))
drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}
to {
filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
drop-shadow(0 0 15px rgba(255, 255, 255, 0.7))
drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}
}
.leftimages {
z-index: -1;
position: fixed;
left: 0%;
top: 0;
bottom: 0;
width: 100px;
height: 100vh;
overflow: hidden;
}
.leftimages .gif-container {
display: flex;
flex-direction: column;
align-items: flex-start;
padding-left: 5px;
}
.leftimages img {
margin: 5px 0;
}
.hide-on-small
{
display: block; /* Default display */
}
@media (max-width: 600px) { /* Adjust the max-width as needed */
.hide-on-small {
display: none; /* Hide on small viewports */
}
}
.headertext
{
font-size: 20px;
font-weight: bold;
}
.ufo {
position: fixed;
width: 100px;
height: 100px;
background-image: url('https://danieljones.au/media/ufo.gif');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
pointer-events: none;
z-index: -50;
opacity: 0;
top: 50%;
left: 50%;
transform-origin: center;
}
@keyframes fly-across {
0% {
opacity: 0;
transform: translate(var(--start-x), var(--start-y)) rotate(var(--angle));
}
10% {
opacity: 0.5;
}
90% {
opacity: 0.5;
}
100% {
opacity: 0;
transform: translate(var(--end-x), var(--end-y)) rotate(var(--angle));
}
}
</style>
<script>
class UFO {
constructor() {
this.element = document.createElement('div');
this.element.className = 'ufo';
document.body.appendChild(this.element);
this.animate();
}
getRandomPosition() {
const screenWidth = window.innerWidth;
const screenHeight = window.innerHeight;
const diagonal = Math.sqrt(screenWidth * screenWidth + screenHeight * screenHeight);
// Random angle for direction of travel
const angle = Math.random() * 360;
const rad = angle * Math.PI / 180;
// Distance from center to ensure off-screen start/end
const distance = diagonal;
// Calculate start and end positions
const startX = Math.cos(rad) * distance;
const startY = Math.sin(rad) * distance;
const endX = Math.cos(rad + Math.PI) * distance;
const endY = Math.sin(rad + Math.PI) * distance;
return {
startX,
startY,
endX,
endY,
angle: angle // UFO points in direction of travel
};
}
animate() {
const pos = this.getRandomPosition();
this.element.style.setProperty('--start-x', `${pos.startX}px`);
this.element.style.setProperty('--start-y', `${pos.startY}px`);
this.element.style.setProperty('--end-x', `${pos.endX}px`);
this.element.style.setProperty('--end-y', `${pos.endY}px`);
this.element.style.setProperty('--angle', `${pos.angle}deg`);
this.element.style.animation = 'none';
void this.element.offsetWidth; // Force reflow
this.element.style.animation = 'fly-across 6s linear';
// Schedule next animation
this.element.addEventListener('animationend', () => {
setTimeout(() => this.animate(), Math.random() * 5000);
}, { once: true });
}
}
document.addEventListener('DOMContentLoaded', () => {
new UFO();
});
</script>
</head>
<body>
<script>
function setCookie(cname, cvalue, exdays) {
const d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
let expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
function getCookie(cname) {
let name = cname + "=";
let ca = document.cookie.split(';');
for(let i = 0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
document.addEventListener('DOMContentLoaded', () => {
// cookie
let cookies = getCookie("cookies");
if (cookies == "")
{
cookies = 0;
}
// First create a style for the counter
const style = document.createElement('style');
style.textContent = `
.click-counter {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 120px;
font-weight: bold;
color: #FF00FF;
z-index: 9999;
pointer-events: none;
animation: bounceAndFade 1s forwards;
}
@keyframes bounceAndFade {
0% {
transform: translate(-50%, -50%) scale(0.3);
opacity: 0;
}
20% {
transform: translate(-50%, -50%) scale(1.1);
opacity: 1;
}
40% {
transform: translate(-50%, -50%) scale(0.9);
opacity: 1;
}
60% {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}
100% {
transform: translate(-50%, -50%) scale(1);
opacity: 0;
}
}
`;
document.head.appendChild(style);
// Initialize click counter
let clickCount = cookies;
// Find the sprite element
const sprite = document.querySelector('.running-sprite2');
if (sprite) {
// Add click handler
sprite.addEventListener('mousedown', () => {
clickCount++;
cookies = clickCount;
setCookie("cookies", cookies);
// Create and display the counter element
const counter = document.createElement('div');
counter.className = 'click-counter';
counter.textContent = clickCount;
document.body.appendChild(counter);
// Remove the counter element after animation
counter.addEventListener('animationend', () => {
counter.remove();
});
});
} else {
console.error('Could not find element with class running-sprite2');
}
});
document.addEventListener('DOMContentLoaded', () => {
const sprite = document.querySelector('.running-sprite2');
if (sprite) {
sprite.addEventListener('mousedown', () => {
// Get current scaleX value
const currentScale = getComputedStyle(sprite).transform;
const scaleX = currentScale.includes('matrix') ?
parseFloat(currentScale.split(',')[0].slice(7)) : 1;
// Set CSS variable for the direction
sprite.style.setProperty('--sprite-direction', scaleX);
// Trigger jump
sprite.classList.remove('jumping');
void sprite.offsetWidth;
sprite.classList.add('jumping');
});
}
});
</script>
<div class="middle">
<!--<script>
document.write("<div class='js-message'>This site works best with JavaScript disabled, please disable it.</div>");
document.write("<div class='walker-left'></div>");
document.write("<div class='walker-right'></div>");
</script>-->
<h1 class="title-container">
<div class="title-gif"></div>
<font color="green"><b>></b></font><a href="/">Daniel's Homepage</a>
<div class="title-gif right"></div>
</h1>
<div id="links">
<div class="running-sprite"></div>
<table class="headertext" width="100%" align="center" style="border-collapse: collapse;">
<tbody>
<tr>
<td><a href="/">index</a></td>
<td><a href="/posts">posts</a></td>
<td><a href="/opinions">opinions</a></td>
<td><a href="/portfolio.html">portfolio</a></td>
</tr>
</tbody>
</table>
</div>
{INFO}
</div>
<div class="content">
{CONTENT}
<br><br>
</div>
<!-- <br><br> <div class="middle"> <img src="https://danieljon.es/linuxfreak.png"> <br> <a id="gentag" href="https://gitlab.com/ubunchu-translators/ubunchu">source</a> </div> -->
<br><br><div class="middle"> <a href="https://danieljon.es/posts/posts.rss"><img src="https://danieljon.es/media/rss.gif" alt="RSS feed"></a></div>
<div class="middle"> <a href="https://www.fsf.org/"><img src="https://danieljon.es/media/fsf_member.png" alt="FSF member"></a>
<br><img src="https://danieljones.au/media/miku_fan.gif">
</div>
<br> <div id="gentag">page generated {TIME} using <a href="https://git.danieljon.es/websitegenerator/">websitegenerator in C</a></div>
<div style="position: fixed; right: 0; bottom: 0; width: 10vw; overflow: hidden;">
<img src="https://danieljones.au/media/autism_awareness.gif" style="width: 100%;">
<img src="https://danieljones.au/media/tux_rotate.gif" style="width: 100%;">
<img src="https://danieljones.au/media/autism.gif" style="width: 100%;">
</div>
<div class="leftimages hide-on-small">
<div class="gif-container"></div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const gifs = [
'https://danieljones.au/media/tux_jump2.gif',
'https://danieljones.au/media/tux_dance2.gif',
'https://danieljones.au/media/girl_dance.gif',
'https://danieljones.au/media/miku_bop.gif',
'https://danieljones.au/media/music.gif',
'https://danieljones.au/media/blush.gif',
'https://danieljones.au/media/cat_heart.gif',
'https://danieljones.au/media/cat_happy.gif',
'https://danieljones.au/media/cat_tail.gif',
'https://danieljones.au/media/miku.gif',
'https://danieljones.au/media/i_love_you.gif'
];
const container = document.querySelector('.gif-container');
function shuffleArray(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
return array;
}
function fillContainer() {
const containerHeight = container.parentElement.offsetHeight;
let currentHeight = container.offsetHeight;
while (currentHeight < containerHeight * 1.5) {
const shuffledGifs = shuffleArray([...gifs]);
shuffledGifs.forEach(gifUrl => {
const img = document.createElement('img');
img.src = gifUrl;
container.appendChild(img);
currentHeight = container.offsetHeight;
});
}
}
// Initial fill
fillContainer();
// Update on resize
window.addEventListener('resize', () => {
container.innerHTML = '';
fillContainer();
});
});
</script>
<div class="running-sprite2"></div>
|