/**
 * Javascript functions used to fetch the twitter feed.
 *
 * @file WHMCS Six Theme Twitter Javascript Function
 * @copyright Copyright 2015 WHMCS Limited
 */

jQuery(document).ready(function() {
    // Number should be between 1 and 2, since this is a limit of
    // Twitter's "Web Intents" setup.
    WHMCS.http.jqClient.post("index.php?rp=/announcements/twitterfeed",
        function(data) {
            jQuery("#twitterFeedOutput").html(data);
        }).promise().done(function(){
            $('#twitterFeedOutput').find('.fa').addClass('fab');
        });
});
