(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.withCredentials = true; xmlHttp.send(null); } withCol1Class=''; if(2 <= 1){ withCol1Class = 'svca__with-col-1'; } if (2 <= 5) { blockGridClass = 'svca__xsmall-block-grid-1 svca__small-block-grid-2 svca__medium-block-grid-2'; } 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=82478,82477,82476,82475,82474,82473&mode=api&count=4',function(data){ data = JSON.parse(data); if(data[0]['click_url']) { var result = data.reduce(function(accumulator, currentValue) { return accumulator + '
- '+currentValue['title']+'
';; },""); document.getElementById('click_sabavision_556999').innerHTML = (htmlStart+result+htmlEnd); } }); })();