2017-07-19 141 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'); 
}); 

我使用jQuery Plugin For Floating Social & Contact Sidebar

回答

0

只是demo.js添加cb-hidden的類每個項目:

// 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]' } 
    } 
});