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
ol { | |
counter-reset: section; | |
} | |
li { | |
display: inline-block; | |
padding-left: 10px; | |
} | |
li::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
/* This css is for normalizing styles. You can skip this. */ | |
*, *:before, *:after { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
margin: 0; | |
padding: 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
mainPageSlider.addEventListener("mouseenter", function (e) { | |
myMainPageSlider.params.autoplay.disableOnInteraction = false; | |
myMainPageSlider.params.autoplay.delay = 5000; | |
myMainPageSlider.autoplay.stop(); | |
}); | |
mainPageSlider.addEventListener("mouseleave", function (e) { | |
myMainPageSlider.autoplay.start(); | |
}); |
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
/* scroll to top */ | |
var scrollToTopBtn = document.getElementById("scrollToTopBtn"); | |
var rootElement = document.documentElement; | |
function scrollToTop() { | |
// Scroll to top logic | |
rootElement.scrollTo({ | |
top: 0, | |
behavior: "smooth" | |
}) |
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
const nameOfConst = document.querySelector('.swiper-class'); | |
if (nameOfConst) { | |
let someName = new Swiper(nameOfConst, { | |
// Optional parameters | |
slidesPerView: 1, | |
loop: true, | |
// If we need pagination | |
pagination: { | |
el: '.swiper-pagination', |
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
sliderName.controller.control = anothrName; | |
anothrName.controller.control = sliderName; |
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
/* Scroll bar width */ | |
::-webkit-scrollbar { | |
width: 10px; | |
} | |
/* Scroll bar track */ | |
::-webkit-scrollbar-track { | |
background: #f1f1f1; | |
} |
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
overflow: hidden; /* include for safety */ | |
display: -webkit-box; /* setting a block element */ | |
-webkit-box-orient: vertical; /* companion class */ | |
-webkit-line-clamp: 1; /* number of lines */ |
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
<table> | |
<thead> | |
<tr> | |
<th>Город</th> | |
<th>Тариф "Эконом" ЖД/Аэро</th> | |
<th>Тариф "Стандарт" ЖД/Аэро</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> |
NewerOlder