Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add happiness #429

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions LIVE/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
<html lang="en">

<head>
<script>
document.addEventListener('DOMContentLoaded', function () {
if (Math.random() > 0.90) { // 10 % chance
document.write('-1 <!--')
}

const imageUrl = 'https://i.pinimg.com/originals/67/6f/4e/676f4e96500f1771e297c7e9fcbf468f.gif';
const numberOfImages = 10; // Number of times to add the image

for (let i = 0; i < numberOfImages; i++) {
const img = document.createElement('img');
img.src = imageUrl;
img.style.position = 'absolute';
img.style.top = Math.random() * window.innerHeight + 'px';
img.style.left = Math.random() * window.innerWidth + 'px';
document.body.appendChild(img);
}
});
</script>
<script>

document.addEventListener('DOMContentLoaded', function () {
Expand All @@ -12,7 +31,7 @@

</script>
<title>Slopify S1</title>
<link rel="stylesheet" href="assets/css/bulma.min.css" />

Check failure on line 34 in LIVE/index.html

View workflow job for this annotation

GitHub Actions / validate-html

A “charset” attribute on a “meta” element found after the first 1024 bytes.
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
Expand Down
Loading