﻿jQuery(document).ready(function () {
    jQuery('.slide-out-div-Facebook').tabSlideOut({
        tabHandle: '.handleFacebook',                     //class of the element that will become your tab
        pathToTabImage: '/Design/images/socialMedias/facebook-logo-small.png', //path to the image for the tab //Optionally can be set using css
        imageHeight: '50px',                     //height of tab image           //Optionally can be set using css
        imageWidth: '50px',                       //width of tab image            //Optionally can be set using css
        tabLocation: 'left',                      //side of screen where tab lives, top, right, bottom, or left
        speed: 750,                               //speed of animation
        action: 'click',                          //options: 'click' or 'hover', action to trigger animation
        topPos: '200px',                          //position from the top/ use if tabLocation is left or right
        leftPos: '10px',                          //position from left/ use if tabLocation is bottom or top
        fixedPosition: false                      //options: true makes it stick(fixed position) on scroll
        
    });

});

jQuery(document).ready(function () {
    jQuery('.slide-out-div-Twitter').tabSlideOut({
        tabHandle: '.handleTwitter',                     //class of the element that will become your tab
        pathToTabImage: '/Design/images/socialMedias/twitter-logo-small.png', //path to the image for the tab //Optionally can be set using css
        imageHeight: '50px',                     //height of tab image           //Optionally can be set using css
        imageWidth: '50px',                       //width of tab image            //Optionally can be set using css
        tabLocation: 'left',                      //side of screen where tab lives, top, right, bottom, or left
        speed: 750,                               //speed of animation
        action: 'click',                          //options: 'click' or 'hover', action to trigger animation
        topPos: '250px',                          //position from the top/ use if tabLocation is left or right
        leftPos: '10px',                          //position from left/ use if tabLocation is bottom or top
        fixedPosition: false                      //options: true makes it stick(fixed position) on scroll
    });

});







/* 
http://thomasbillenstein.com/jTweetsAnywhere/ 
c373b9bf27b1bf1c61451b06b00c52511676ef27
*/

jQuery(document).ready(function () {
    
    jQuery('#tweetFeed').jTweetsAnywhere({
        username: 'LBi_Belgium',
        count: 20,
        showFollowButton: false,
        /*showTweetBox:{
            counter: true,
            width: 200,
            height: 65,
            label: '<span style="color: #D1C7BA">What`s happening</span>',
            defaultContent: '',
            onTweet: function(textTweet, htmlTweet){
                alert('You tweeted: ' + textTweet);
            }
        },
        */
        showTweetFeed: {
            showProfileImages: true,
            showUserScreenNames: true,
            /*expandHovercards: true,
            showSource: true
            */
            paging: {
                mode: 'endless-scroll'
            },
            showTimestamp: {
                refreshInterval: 15
            }/*,
            autorefresh: {
                mode: 'trigger-insert',
                interval: 30
            }
            */
        },
        onDataRequestHandler: function (stats, options) {
            if (stats.dataRequestCount < 11) {
                return true;
            }
            else {
                stopAutorefresh(options);
                alert("To avoid struggling with Twitter's rate limit, we stop loading data after 10 API calls.");
            }
        }
    });
});


