2017-07-19 8 views
0

ページに入るときにサイドバーを閉じることができます。私のやり方を見つけることができませんでした。Jquery - ページがロードされたときにサイドバーが開きます

// butonları görünür yap 
setTimeout(function(){ 
    oContainer.animate({ left : 0 }); 
}, 200); 

// butonları gizle/göster 
$('body').on('click', '.show-hide-contact-bar', function(e){ 
    e.preventDefault(); 
    e.stopImmediatePropagation(); 
    $('.show-hide-contact-bar').find('.fa').toggleClass('fa-angle-right fa-angle-left'); 
    oContainer.find('.cb-ancor').toggleClass('cb-hidden'); 
}); 

私はちょうどdemo.js内の各アイテムのクラスにcb-hiddenを追加jQuery Plugin For Floating Social & Contact Sidebar

答えて

0

を使用しています:

// Initialize Share-Buttons 
$.contactButtons({ 
    effect : 'slide-on-scroll', 
    buttons : { 
    'facebook': { class: 'facebook cb-hidden', use: true, link: 'https://www.facebook.com/pages/mycompany', extras: 'target="_blank"' }, 
    'linkedin': { class: 'linkedin cb-hidden', use: true, link: 'https://www.linkedin.com/company/mycompany' }, 
    'google':  { class: 'gplus cb-hidden', use: true, link: 'https://plus.google.com/myidongoogle' }, 
    'mybutton': { class: 'git cb-hidden',  use: true, link: 'http://github.com', icon: 'github', title: 'My title for the button' }, 
    'phone':  { class: 'phone separated cb-hidden', use: true, link: '+000' }, 
    'email':  { class: 'email cb-hidden', use: true, link: '[email protected]' } 
    } 
}); 
関連する問題