﻿$(document).ready(function() {

    $('#twitter').jTweetsAnywhere({
        username: 'DeFeestmachine',
        count: 4,
        showFollowButton: false,
        tweetTimestampDecorator: function(tweet, options) {

            var date = new Date(tweet.created_at);

            var dateString =

            date.getDate() + '-' +
            (date.getMonth() + 1) + '-' +
            date.getFullYear() + ' ' +
            date.getHours() + ':' +
            (date.getMinutes() < 10 ? '0' : '') +
            date.getMinutes();
            return '<span class="jta-tweet-timestamp">' + dateString + '</span>';
        }

    });


    $('#portal').smartTab({
        selected: 0,  // Selected Tab, 0 = first step   
        keyNavigation: false, // Enable/Disable key navigation
        autoProgress: true, // Auto navigate tabs on interval
        progressInterval: 3500, // Auto navigate Interval
        stopOnFocus: true, // Stops autoProgress on mouse hover and restarts when not
        transitionEffect: 'fade', // Effect on navigation, none/fade/slide
        tabContainerClass: 'tab' // tab container css class name
    });

});
            
