97K Shares
Pin96K
Share414
Tweet
Yum193
Stumble1
+116
'post_id': 7536, 'timestamp': 1503079557 }; // if( !swp_cache_data.timestamp ){ // error handling} console.log( "Server Timestamp is " + swp_cache_data.timestamp ); var browser_date = Date.now(); if( !browser_date ) browser_date = new Date().getTime(); browser_date = Math.floor( browser_date / 1000 ); console.log( "Browser Timestamp is " + browser_date ); var elapsed_time = ( browser_date - swp_cache_data.timestamp ); if( elapsed_time > 60 ){ console.log( "Elapsed time since server timestamp is greater than 60 seconds -- " + elapsed_time + "seconds" ); within_timelimit = false; } else { console.log( "Elapsed time since server timestamp is less than 60 seconds -- " + elapsed_time + "seconds" ); within_timelimit = true; } if( within_timelimit === true ){ jQuery.post( swp_admin_ajax, swp_cache_data, function( response ) { console.log(response); }); socialWarfarePlugin.fetchShares(); } } } , 250 ); }); swp_post_id='7536'; swp_post_url='http://www.yummyhealthyeasy.com/caprese-balsamic-chicken-recipe/'; swp_post_recovery_url = 'http://www.yummyhealthyeasy.com/2015/05/caprese-balsamic-chicken-recipe/'; // socialWarfarePlugin.fetchShares(); }