This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getTweets($hash_tag) { | |
$url = 'http://search.twitter.com/search.atom?q='.urlencode($hash_tag) ; | |
echo "<p>Connecting to <strong>$url</strong> ...</p>"; | |
$ch = curl_init($url); | |
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
$xml = curl_exec ($ch); | |
curl_close ($ch); | |
//If you want to see the response from Twitter, uncomment this next part out: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.tab').click(function() { | |
$(this).show(); | |
var eventCategory = jQuery(this).attr('data-category'); | |
var eventAction = jQuery(this).attr('data-action'); | |
var eventLabel = window.document.title; | |
_gaq.push(['_trackEvent', eventCategory, eventAction, eventLabel]); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).scroll(function(){ | |
if ($(window).scrollTop() == $(document).height() - $(window).height()){ | |
// calling the function to get the ajax data | |
loadMore(); | |
} | |
}); | |
function loadMore() { | |
$.ajax({ | |
url: base_url + "/infscroll/get_inf_scroll_ajax", |
NewerOlder