-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
96 changed files
with
195 additions
and
42 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ | |
<title>Кокой-то Cat Energy</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<link rel="stylesheet" href="styles/styles.css"> | ||
<link rel="icon" href="favicon.ico"> | ||
<link rel="icon" href="favicons/icon.svg" type="image/svg+xml"> | ||
<link rel="apple-touch-icon" href="favicons/apple.png"> | ||
<link rel="manifest" href="manifest.webmanifest"> | ||
<script src="scripts/index.js" defer></script> | ||
</head> | ||
|
||
|
@@ -99,28 +103,28 @@ <h2 class="description__title">Живой пример</h2> | |
</div> | ||
|
||
<div class="slider"> | ||
<input type="radio" name="point" id="slide1" checked> | ||
<input type="radio" name="point" id="slide2"> | ||
<div class="slider__container"> | ||
|
||
<div class="slides slide1"> | ||
<picture> | ||
|
||
<source media="(min-width: 1200px)" width="560" height="512" type="image/png" srcset="./images/cat-fat-photo-desktop@1x.png 1x, ./images/cat-fat-photo-desktop@2 2x"> | ||
<source media="(min-width: 768px)" width="560" height="512" type="image/png" srcset="./images/[email protected] 1x, ./images/cat-fat-photo-tablet@2x 2x"> | ||
<img src="./images/cat-fat-photo-mobile.png" srcset="./images/[email protected] 2x" width="280" height="256" alt="Толстенький котик"> | ||
</picture> | ||
</div> | ||
|
||
<div class="slides slide2"> | ||
<img src="./images/cat-skinny-photo-mobile.png" alt="Худенький котик"> | ||
</div> | ||
|
||
<div class="controls"> | ||
<label for="slide1"></label> | ||
<label for="slide2"></label> | ||
</div> | ||
<ul class="slider__list"> | ||
<li class="slider__screen slider__screen--before"> | ||
<picture> | ||
<source media="(min-width: 768px)" width="560" height="512" type="image/png" srcset="./images/before-tablet.png, ./images/[email protected] 2x"> | ||
<img src="./images/before-mobile.png" srcset="./images/before-mobile@2x.png 2x" width="280" height="256" alt="Толстенький котик"> | ||
</picture> | ||
</li> | ||
|
||
<li class="slider__screen slider__screen--after"> | ||
<picture> | ||
<source media="(min-width: 768px)" width="560" height="512" type="image/png" srcset="./images/after-tablet.png, ./images/[email protected] 2x"> | ||
<img src="./images/after-mobile.png" srcset="./images/after-mobile@2x.png 2x" width="280" height="256" alt="Худенький котик"> | ||
</picture> | ||
</li> | ||
</ul> | ||
<button class="slider__control" type="button"> | ||
<span class="visually-hidden">Показывает разницу</span> | ||
</button> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</section> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"icons": [ | ||
{ | ||
"src": "favicons/16.png", | ||
"type": "image/png", | ||
"sizes": "16x16" | ||
}, | ||
{ | ||
"src": "favicons/32.png", | ||
"type": "image/png", | ||
"sizes": "32x32" | ||
}, | ||
{ | ||
"src": "favicons/152.png", | ||
"type": "image/png", | ||
"sizes": "152x152" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
/* в этот файл добавляет скрипты*/ | ||
const sliderControl = document.querySelector('.slider__control'); | ||
const slider = document.querySelector('.slider'); | ||
|
||
let flag = false; | ||
sliderControl.addEventListener('click', () => { | ||
if (!flag) { | ||
slider.classList.add('slider--after'); | ||
flag = true; | ||
}else{ | ||
slider.classList.toggle('slider--after'); | ||
slider.classList.toggle('slider--before'); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,5 +47,5 @@ | |
text-align: center; | ||
text-transform: uppercase; | ||
margin: 0; | ||
padding: 20px 0 0; | ||
padding: 20px 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters