Add javascript functions

This commit is contained in:
hasicicsalih committed 2026-03-12 11:14:20 +01:00
1 parent 0298124d01
commit 3599826f4c
3 files changed
+67 -3

No files matched your search

+11 -3
View File
@@ -8,9 +8,17 @@
</head>
<body>
<div class="card">
<h1>Das ist meine hunderste Webseite</h1>
<h2>Schön, dass du da bist!</h2>
<h3>Have fun on here</h3>
<h1 id="main-title">Das ist meine hunderste Webseite</h1>
<h2 id="greeting">Schön, dass du da bist!</h2>
<h3 id="fun-text">Have fun on here</h3>
<div class="buttons">
<button onclick="changeGreeting()">Begrüssung ändern</button>
<button onclick="changeBackground()">Hintergrund ändern</button>
<button onclick="toggleText()">Text verstecken / zeigen</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>