From edeca369c39a53857b11feef6585be4caf847e0c Mon Sep 17 00:00:00 2001
From: vista-man <524715@vistacollege.nl>
Date: Sat, 25 Jan 2025 22:15:34 +0100
Subject: [PATCH] add meta charset tag in index.html; fix opacity calculation
in fade-in effect; clean up style.css
---
index.html | 2 ++
script.js | 2 +-
style.css | 5 -----
3 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/index.html b/index.html
index d869f6f..b796d8a 100644
--- a/index.html
+++ b/index.html
@@ -3,6 +3,8 @@
My Simple Wikipedia
+
+
diff --git a/script.js b/script.js
index 0ffd114..02798c9 100644
--- a/script.js
+++ b/script.js
@@ -10,7 +10,7 @@ window.onload = function() {
const fadeIn = () => {
let opacity = 0;
const increaseOpacity = () => {
- opacity += 0.05;
+ opacity = parseFloat(opacity) + 0.05;
article.style.opacity = opacity;
// Continue the animation until opacity reaches 1 (fully visible)
diff --git a/style.css b/style.css
index 43d110d..94ebc28 100644
--- a/style.css
+++ b/style.css
@@ -32,11 +32,6 @@ h2 {
padding-bottom: 5px; /* Add padding below the heading */
}
-h1, h2 {
- background-image: none; /* Remove background image */
- color: #007bff; /* Set text color */
-}
-
p {
color: #555; /* Set text color */
line-height: 1.6; /* Set line height */