Add javascript functions
This commit is contained in:
1 parent
0298124d01
commit
3599826f4c
3 files changed
+67
-3
No files matched your search
+11
-3
@@ -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>
|
||||
Reference in new issue
Block a user