(function(){ function httpGetAsync(theUrl, callback) { var xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4 && xmlHttp.status == 200) callback(xmlHttp.responseText); } xmlHttp.open("GET", theUrl, true); // true for asynchronous xmlHttp.send(null); } withCol1Class=''; if(3 <= 1){ withCol1Class = 'svca__with-col-1'; } if (3 <= 4) { blockGridClass = 'svca__xsmall-block-grid-1 svca__small-block-grid-2 svca__medium-block-grid-3'; } else { blockGridClass = 'svca__xsmall-block-grid-1 svca__small-block-grid-2 svca__medium-block-grid-3'; } var cardClass = ''; var htmlStart= '
جدیدترین مطالب وب اختصاصی از

'; var htmlEnd= '

'; httpGetAsync('https://click.sabavision.com/get_camp.php?id=75028,75027,75026,75025,75024,75023&mode=api&count=6',function(data){ data = JSON.parse(data); console.log(data); if(data[0]['click_url']) { for (var i in data) { htmlStart += '
- '+data[i]['title']+'
'; } document.getElementById('click_sabavision_586759').innerHTML = (htmlStart+htmlEnd); } }); })();