return $.ajax({ method: method, url: 'https://' + api_server + '/1.1' + url, headers: { 'X-LC-Id': 'UFC34rgyQIUzLxJiISpTJNjp-gzGzoHsz', 'X-LC-Key': 'lX0DjmQF0KAYXrFKO0FPmrY2', 'Content-Type': 'application/json', }, data: data }); }; if ($('.post-title-link').length >= 1) { showTime(Counter); } }); });