task_integra_readme
This commit is contained in:
33
task_1/landing1/assets/js/main.js
Normal file
33
task_1/landing1/assets/js/main.js
Normal file
@@ -0,0 +1,33 @@
|
||||
$(document).ready(function () {
|
||||
$('#slider1').slick({
|
||||
slidesToScroll: 1,
|
||||
autoplay: false,
|
||||
autoplaySpeed: 5000,fade: true,
|
||||
arrows: true,
|
||||
dots: true,
|
||||
adaptiveHeight: false
|
||||
|
||||
});
|
||||
|
||||
$('#slider2').slick({
|
||||
slidesToScroll: 1,
|
||||
autoplay: false,
|
||||
autoplaySpeed: 5000,fade: true,
|
||||
arrows: true,
|
||||
dots: false,
|
||||
adaptiveHeight: true
|
||||
|
||||
});
|
||||
|
||||
var pack = 30;
|
||||
var timerId = setInterval(function() {
|
||||
pack--;
|
||||
$('.pack_value').html(pack);
|
||||
}, 30000);
|
||||
|
||||
setTimeout(function() {
|
||||
clearInterval(timerId);
|
||||
}, 150000);
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user