Skip to content

Commit

Permalink
Редактирует втсупление и первый раздел, форматирует код, правит терми…
Browse files Browse the repository at this point in the history
…нологию
  • Loading branch information
solarrust authored Jul 24, 2024
1 parent 6677319 commit 4383aaf
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 99 deletions.
12 changes: 6 additions & 6 deletions recipes/input-range-style/demos/input-range-1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="ru">
<head>
<title>Слайдер input range 1</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
/>
>
<style>
*,
*::before,
Expand Down Expand Up @@ -64,7 +64,7 @@
aria-valuemin="0"
aria-valuemax="100"
aria-orientation="horizontal"
/>
>
</div>
</body>
</html>
12 changes: 6 additions & 6 deletions recipes/input-range-style/demos/input-range-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="ru">
<head>
<title>Слайдер input range 2</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
/>
>
<style>
*,
*::before,
Expand Down Expand Up @@ -92,7 +92,7 @@
aria-valuemin="0"
aria-valuemax="100"
aria-orientation="horizontal"
/>
>
</div>
</body>
</html>
12 changes: 6 additions & 6 deletions recipes/input-range-style/demos/input-range-3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="ru">
<head>
<title>Слайдер input range 3</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
/>
>
<style>
*,
*::before,
Expand Down Expand Up @@ -108,7 +108,7 @@
aria-valuemin="0"
aria-valuemax="100"
aria-orientation="horizontal"
/>
>
</div>
</body>
</html>
12 changes: 6 additions & 6 deletions recipes/input-range-style/demos/input-range-4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="ru">
<head>
<title>Слайдер input range 3</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
/>
>
<style>
*,
*::before,
Expand Down Expand Up @@ -120,7 +120,7 @@
aria-valuemin="0"
aria-valuemax="100"
aria-orientation="horizontal"
/>
>
</div>
</body>
</html>
16 changes: 8 additions & 8 deletions recipes/input-range-style/demos/input-range-5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="ru">
<head>
<title>Слайдер input range 3</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
/>
>
<style>
*,
*::before,
Expand Down Expand Up @@ -125,14 +125,14 @@
aria-valuemax="100"
aria-orientation="horizontal"
oninput="handleInputRange()"
/>
>
</div>
<script>
function handleInputRange() {
event.target.parentNode.style.setProperty(
"--value",
'--value',
event.target.value
);
)
}
</script>
</body>
Expand Down
16 changes: 9 additions & 7 deletions recipes/input-range-style/demos/input-range-6/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
<html lang="ru">
<head>
<title>Слайдер input range 3</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
/>
>
<style>
*, *::before, *::after {
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
Expand Down Expand Up @@ -314,7 +316,7 @@
aria-orientation="vertical"
oninput="handleInputRange()"
list="tickmarks"
/>
>
<output class="range-output" id="output" for="tailmetr">80</output>
<datalist id="tickmarks">
<option value="0 to 20">0</option>
Expand Down
57 changes: 31 additions & 26 deletions recipes/input-range-style/demos/input-range-four-thumbs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="ru">
<head>
<title>Слайдер input range с 4 ползунками</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
/>
>
<style>
*,
*::before,
Expand Down Expand Up @@ -53,6 +53,7 @@

--range-input-write-m: horizontal-tb;
--range-label-rotate: 0;


.track {
--range-track-w: 100%;
Expand Down Expand Up @@ -362,7 +363,7 @@
font-size: 14px;
}

option:after {
option::after {
content: "";
display: initial;
position: absolute;
Expand Down Expand Up @@ -399,14 +400,15 @@
aria-orientation="horizontal"
oninput="handleInputRange1()"
list="tickmarks"
/>
>
<output
class="range-output"
id="output"
for="tailmetr1"
style="--value: var(--value-1)"
>20</output
>
20
</output>
<input
class="range-input"
id="tailmetr2"
Expand All @@ -421,14 +423,15 @@
aria-orientation="horizontal"
oninput="handleInputRange2()"
list="tickmarks"
/>
>
<output
class="range-output"
id="output"
for="tailmetr2"
style="--value: var(--value-2)"
>40</output
>
40
</output>
<input
class="range-input"
id="tailmetr3"
Expand All @@ -443,14 +446,15 @@
aria-orientation="horizontal"
oninput="handleInputRange3()"
list="tickmarks"
/>
>
<output
class="range-output"
id="output"
for="tailmetr3"
style="--value: var(--value-3)"
>60</output
>
60
</output>
<input
class="range-input"
id="tailmetr4"
Expand All @@ -465,14 +469,15 @@
aria-orientation="horizontal"
oninput="handleInputRange4()"
list="tickmarks"
/>
>
<output
class="range-output"
id="output"
for="tailmetr4"
style="--value: var(--value-4)"
>80</output
>
80
</output>
</div>
<datalist id="tickmarks">
<option value="0 to 20">0</option>
Expand All @@ -486,34 +491,34 @@
<script>
function handleInputRange1() {
event.target.parentNode.parentNode.style.setProperty(
"--value-1",
'--value-1',
event.target.value
);
event.target.nextElementSibling.value = event.target.value;
)
event.target.nextElementSibling.value = event.target.value
}

function handleInputRange2() {
event.target.parentNode.parentNode.style.setProperty(
"--value-2",
'--value-2',
event.target.value
);
event.target.nextElementSibling.value = event.target.value;
)
event.target.nextElementSibling.value = event.target.value
}

function handleInputRange3() {
event.target.parentNode.parentNode.style.setProperty(
"--value-3",
'--value-3',
event.target.value
);
event.target.nextElementSibling.value = event.target.value;
)
event.target.nextElementSibling.value = event.target.value
}

function handleInputRange4() {
event.target.parentNode.parentNode.style.setProperty(
"--value-4",
'--value-4',
event.target.value
);
event.target.nextElementSibling.value = event.target.value;
)
event.target.nextElementSibling.value = event.target.value
}
</script>
</body>
Expand Down
Loading

0 comments on commit 4383aaf

Please sign in to comment.