Вход Регистрация
Файл: Luxe-Shop v6.0/templates/premium/js/main.v1.0.js
Строк: 218
<?php
//jQuery
function responses(id_goods,page){
    $.
get("/engine/ajax/resp_block.php?id_goods=" id_goods "&page=" page, function(result){
        if (
result.length>10){
            $(
".digiseller-reviews_content").html(result);}
    });
}
function 
responses_all(type,page){
    $.
get("/engine/ajax/responses.php?type=" type "&page=" page, function(result){
        if (
result.length>10){
            $(
".digiseller-reviews_content").html(result);}
    });
}
            
            
function 
on_start(){
    
                
        $.
each($('#about .item'),function(index){
            if(
index != 0)$(this).removeClass('active');
        })
        if($(
'section#toogle_page').attr('data-active') == 'cart'){
            $(
'.col_left').hide();
            $(
'.col_right').show();
        }else if($(
'section#toogle_page').attr('data-active') == 'list'){
            $(
'.col_left').show();
            $(
'.col_right').hide();
        }
}
$(
window).on('load', function () {
  $(
'.pereloader').delay(350).fadeOut('slow');
});
$(
document).ready(function () {
    $(
'#banner_partners button').hover(function(){
        
    })
    $.
each($('.pagination > span'),function(){
        $(
this).wrap("<li class='active'>");
    })
    $.
each($('.pagination > a'),function(){
        $(
this).wrap("<li>");
    })
    $(
'.title_answer').bind("focusin",function(){
        $(
this).val("");
    })
    $(
'.text_answer').bind("focusin",function(){
        $(
this).val("");
    })
    $(
'#contact_form input').bind("focusin",function(){
        $(
this).val("");
    })
    
    $(
'#contact_form textarea').bind("focusin",function(){
        $(
this).val("");
    })
    $(
'i[data-click^="menu"]').bind("click",function(){
        $(
'.mobile_menu').fadeToggle()})
    $(
'.menu_close').bind("click",function(){
        $(
'.mobile_menu').fadeToggle()})
    $(
'i[data-click^="about"]').bind("click",function(){
        $(
'.mobile_about').fadeToggle()})
    $(
'.about_close').bind("click",function(){
        $(
'.mobile_about').fadeToggle()})
    if($(
document).width() < 730){
        
on_start();
    }
    $(
'section#toogle_page').bind("click",function(){
        if($(
this).attr('data-active') == 'cart'){
            $(
this).find('button').html('TOP 10')
            $(
this).attr('data-active','list')
            $(
'.col_left').show();
            $(
'.col_right').hide();    
            $(
'#toTop').click();        
        }else{
            $(
this).find('button').html('ВЕРНУТЬСЯ Рљ РЎРџР�РљРЈ Р�ГР')
            $(
this).attr('data-active','cart')
            $(
'.col_left').hide();
            $(
'.col_right').show();    
            $(
'#toTop').click();
        }
    })
            
});

$(
window).resize(function(e) {
    if($(
document).width() < 730){
        if($(
'section#toogle_page').attr('data-active') == 'cart'){
            $(
'.col_left').show();
            $(
'.col_right').hide();
        }else if($(
'section#toogle_page').attr('data-active') == 'list'){
            $(
'.col_left').hide();
            $(
'.col_right').show();
        }
    }else{
            $(
'.col_left').show();
            $(
'.col_right').show();
    }
        
});

window.onload = function() {
    
window.dima baron({
        
root'.wrapper_1',
        
scroller'.scroller',
        
bar'.scroller__bar',
        
barOnCls'baron'
    
})   
};
$( 
window ).resize(function() {
    
window.dima baron({
        
root'.wrapper_1',
        
scroller'.scroller',
        
bar'.scroller__bar',
        
barOnCls'baron'
    
})  
});
$(function(){$.
fn.scrollToTop=function(){$(this).hide().removeAttr("href");if($(window).scrollTop()!="0"){$(this).fadeIn("slow")}var scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()=="0"){$(scrollDiv).fadeOut("slow")}else{$(scrollDiv).fadeIn("slow")}});$(this).click(function(){$("html, body").animate({scrollTop:0},"slow")})}});



$(function() { 
$(
"#toTop").scrollToTop(); 
}); 

$(
document).ready(function(e) {
   
/* $('.add_cart').bind("click",function(e){
        e.preventDefault();
        linked = $(this).attr('data-link');
        $('#myModal').modal('show')
        $('.btn.btn-success').attr("onclick","yaCounter29100295.reachGoal('ORDER');window.open('"+linked+"')")
        
    });*/
    
    
});


jQuery.noConflict();
(function($) {
  $(function() {    
    $(
".cart_mini").jCarouselLite({
            
btnPrev".cart_mini .btn-top-arrow",
            
btnNext".cart_mini .btn-bottom-arrow",
            
visible3,
            
verticaltrue,
            
auto:4000,
            
speed:500,
            
start: -2
    
});
    $(
'.akcii').jCarouselLite({
            
btnPrev".akcii .btn-top-arrow",
            
btnNext".akcii .btn-bottom-arrow",
            
visible3,
            
verticaltrue,
            
auto:5000,
            
speed:500,
            
start: -2
    
});
    $(
'.trend').jCarouselLite({
            
btnPrev".trend .btn-top-arrow",
            
btnNext".trend .btn-bottom-arrow",
            
visible3,
            
verticaltrue,
            
auto:6000,
            
speed:500,
            
start: -2
    
});
    $(
'.modal-footer .btn.btn-success').on("click",function(){
        
linked = $('.buybtn').attr('data-link');
        
window.open(linked);
    })
    $(
'.modal-footer .btn.btn-success').on("click",function(){
        
linked = $('.buybtn').attr('data-link');
        
window.open(linked);
    })
    $(
'.buybtn').on("click",function(e){
        
e.preventDefault();
        
linked = $(this).attr('data-link');
        $(
'#myModal').modal('show')
        $(
'.btn.btn-success').attr("onclick","yaCounter29100295.reachGoal('ORDER');")
    })
    $(
'.buybtn').bind("click",function(e){
        
e.preventDefault();
        
linked = $(this).attr('data-link');
        $(
'#myModal').modal('show')        
    });
  });
})(
jQuery);
?>
Онлайн: 3
Реклама