-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
127 lines (105 loc) · 3.02 KB
/
index.html
File metadata and controls
127 lines (105 loc) · 3.02 KB
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
<!-- Der neue HTML Doctype ist der einfachste Doctype den es je gab.-->
<!DOCTYPE html>
<html lang="de">
<head>
<!-- Auch das meta-Tag zum Zeichensatz wurde vereinfacht.-->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<style>
* {
color: #999999;
font-size: 20px;
font-weight: 400;
box-sizing: border-box;
font-family: 'Monteserat', Arial, sans-serif;
}
header,
nav,
section,
aside,
footer {
text-align: center;
border-radius: 7px;
padding: 25px;
box-shadow: 0 5px 15px rgba(0,0,0,.08);
}
header {
width: 25%;
margin: 25px 25px 25px 25px;
display: inline-block;
}
nav {
width: calc(75% - 75px);
margin: 25px 25px 25px 0px;
float: right;
}
aside {
width: 25%;
float: left;
min-height: 517px;
}
section {
float: left;
width: calc(75% - 75px);
margin: 0 25px 25px 25px;
}
section header,
section article,
section footer {
width: 100%;
border-radius: 7px;
border: 1px solid #e5e5e5;
box-shadow: none;
margin: 25px 0px 0px 0px;
padding: 50px;
}
footer {
width: 96.5%;
margin: 25px 25px 0px 25px;
clear: both;
}
</style>
</head>
<body>
<main>
<header>
header <!-- Logo/Website-Name am besten als eine h1 nutzen-->
</header>
<nav>
nav <!-- Menü am besten als eine ul einfügen -->
</nav>
<section>
section <!-- Ein Abschnitt der Website -->
<header>section header</header> <!-- Du Überschrift des Website-Abschnitts -->
<article>section article<br/>
<label>Lautstärke: <input type="range" id="volume" value="50"></label>
<output id="output" for="volume"></output>
<hr/>
<button id="button1" onclick="alertMe()">Zeige Nachricht</button>
</article> <!-- Der Inhalt des Website-Abschnitts -->
<footer>section footer</footer> <!-- Der Schlussteil des Website-Abschnitts -->
</section>
<aside>
aside <!-- Eine Seitenleiste -->
</aside>
<footer>
footer <!-- Der Fußbereich -->
</footer>
</main>
</body>
<script>
let volumeSlider = document.getElementById('volume');
function setzeVolumeAnzeige(wert) {
document.getElementById('output').value = (3.1415926458 * wert).toFixed(2);
}
volumeSlider.addEventListener('input', function(event) {
setzeVolumeAnzeige(event.target.value);
});
setzeVolumeAnzeige(volumeSlider.value);
function alertMe(){
let version = '0.9';
alert('Hallo Mühl4tel. Version ist ${version}');
}
</script>
</html>