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
$('.hide-show').each(function () { | |
var thisList = $(this); | |
var thisListItems = thisList.find('li'); | |
var size_li = thisListItems.length; | |
if(size_li > 5) | |
{ | |
thisList.after('<div class="hide-show-buttons"><span id="showMore">See All ▼</span><span id="showLess">See Less ▲</span></div>'); | |
} | |
var x = 5; | |
thisList.find('li:lt('+x+')').show(); |
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
//product page qty | |
$('.sp-plus').on('click', function(){ | |
var newVal = (parseInt($('.sp-input').val(),10) +1); | |
var oldVal = parseInt($('.sp-input').val(), 10); | |
if (isNaN(oldVal) === true){ | |
$('.sp-input').val(1); | |
} else { | |
$('.sp-input').val(newVal); | |
} | |
}); |
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
var originalPrice = $('.regular-price .price').text(); | |
var priceStripped = originalPrice.replace('$', ''); | |
var priceConverted = parseFloat(priceStripped); | |
var quantity = 1; | |
//product page qty | |
$('.sp-input').on('change', function () { | |
quantity = $(this).val(); | |
var manuStripped = originalPrice.replace('$', ''); | |
var manuConverted = parseFloat(manuStripped); |
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
var sliders = { | |
realSlider : '', | |
realThumbSlider : '', | |
init : function(){ | |
if($(window).width() <= 767){ | |
sliders.startSliders(); | |
} | |
sliders.windowResize(); | |
}, |