|
@ -1,19 +1,8 @@ |
|
|
window.onload=function() { |
|
|
|
|
|
var element = document.getElementById("myBar"); |
|
|
|
|
|
var width = 1; |
|
|
|
|
|
var identity = setInterval(scene, 10); |
|
|
|
|
|
function scene() { |
|
|
|
|
|
if (width >= 100) { |
|
|
|
|
|
clearInterval(identity); |
|
|
|
|
|
} else { |
|
|
|
|
|
width++; |
|
|
|
|
|
element.style.width = width + '%'; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){ |
|
|
$(document).ready(function(){ |
|
|
$('#slider').bxSlider({ |
|
|
var slider = $('#slider').bxSlider({ |
|
|
auto: true, |
|
|
auto: true, |
|
|
controls: true, |
|
|
controls: true, |
|
|
slideMargin: 70, |
|
|
slideMargin: 70, |
|
@ -37,8 +26,10 @@ $(document).ready(function(){ |
|
|
nextSelector: '#slider-next', |
|
|
nextSelector: '#slider-next', |
|
|
prevSelector: '#slider-prev', |
|
|
prevSelector: '#slider-prev', |
|
|
nextText: '<i class="fa fa-arrow-circle-right fa-3x"></i>', |
|
|
nextText: '<i class="fa fa-arrow-circle-right fa-3x"></i>', |
|
|
prevText: '<i class="fa fa-arrow-circle-left fa-3x"></i>' |
|
|
prevText: '<i class="fa fa-arrow-circle-left fa-3x"></i>', |
|
|
|
|
|
onSlideBefore: function(currentSlideNumber, totalSlideQty, currentSlideHtmlObject) { |
|
|
|
|
|
var progressLength = (currentSlideHtmlObject +1) * 16.8 + '%'; |
|
|
|
|
|
$('.progress span').css('max-width','calc(15px + ' + progressLength + ')')} |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|