/**
 * 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.
    jQuery.post("announcements.php", { action: "twitterfeed", numtweets: 2 },
        function(data) {
            jQuery("#twitterFeedOutput").html(data);
        });
});
