طيران الإمارات تطلب شراء 5 طائرات شحن من بوينغ
var baseUrl = “https://api.parsely.com/v2”; PARSELY_Related = { onload: setTimeout(function(){ var target = “Related”; var params = { apikey: ’emaratalyoum.com’, }; params.limit = 100; params.pub_date_start = “90d”; if(“Related” == target) { console.log(“Parse.ly code for related articles” ); params.url = window.location.href; } else { console.log(“Parse.ly code for recommended articles”); params.uuid = PARSELY.config.parsely_site_uuid; } var apiUrl = buildUrl(baseUrl, “/related”, params); var url = apiUrl + “&callback=?”; $.getJSON(url, function( data ) { var output=”” ; var articles = data.data ; if(data.data.length > 0 ) { if(“Related” == target) { output=”
” + “مواد ذات علاقة” + “
- ” ; }else { output=”
-
” + “” + title + “ -
” + “
” + title + “
” + “مواد ذات علاقة” + “
- ” ; } var count =0 ; for (var i in articles) { if(count < 6) { var imageUrl = articles[i]['image_url']; var imagename = ""; if (imageUrl.indexOf('original_640') == -1) { if (imageUrl.indexOf('logo-2023-1200×630.png') == -1) { var n = imageUrl.length; var lastIndex = imageUrl.lastIndexOf('/') imagename = imageUrl + '_gen/derivatives/rectangular_360/' + imageUrl.substring(lastIndex+1 ); }else { imagename = imageUrl.replace('logo-2023-1200×630.png', 'parsely_placeholder.jpg') ; } }else { imagename = imageUrl.replace('original_640', 'rectangular_360') ; } var title = articles[i]['title'] ; var url = articles[i]['url']; if("Related" == target) { output+="
“; count = count + 1; }else { if (url.indexOf(‘/opinion’) == -1 && url.indexOf(‘/hotline/others’) == -1) { output+=”
“; count = count + 1; } } } } } output+=”
“; document.getElementById(“parsely-related-stories”).innerHTML=output; $(“#parsely-related-stories li a”).click( function() { console.log(“Related” + ” clicked”); gtag(‘event’, ‘click’, {‘event_category’: ‘Related’}); }); }); }, 2000 ) }; function buildUrl(base, endpoint, params) { var url = base + endpoint + “?” + $.param(params); return url; }