jQuery(document).ready(function ($) { // Prevent Disable Functions $('.disabled').click(function(e){ e.preventDefault(); }); $('.variations_form .variations ul.variable-items-wrapper').each(function (i, el) { var select = $(this).prev('select'); var li = $(this).find('li'); $(this).on('click', 'li:not(.selected)', function () { var value = $(this).data('value'); li.removeClass('selected'); select.val(value).trigger('change'); $(this).addClass('selected'); }); $(this).on('click', 'li.selected', function () { li.removeClass('selected'); select.val('').trigger('change'); select.trigger('click'); select.trigger('focusin'); select.trigger('touchstart'); }); }); }); jQuery(function($) { $("[data-toggle=tooltip]").tooltip(); // var cat_action_height = $( ".product-action-button" ).height()+6; // // $(".single-product-wrap").hover(function(){ // //$(this).css("margin-top", "-65px"); // $(this).find('.product-details-info').animate({ marginTop: "-="+cat_action_height, opacity: 0.9 },800); // $(this).find('.product-action-button').animate({ marginBottom: '0', opacity: 1 },800); // $(this).find('.product-variation').animate({ bottom: '75px', opacity: 1 },800); // }, function(){ // $(this).find('.product-details-info').animate({ marginTop: '0', opacity: 1 },800); // $(this).find('.product-action-button').animate({ marginBottom: "-="+cat_action_height, opacity: 0},800); // $(this).find('.product-variation').animate({ bottom: '-50px', opacity: 0 },800); // }); }); (function ($) { $(function () { $('.roxtheme-countdown').each(function () { var $countdown = $(this); $countdown.countdown($countdown.data('date'), function(event) { $(this).html(event.strftime('