Fenerbahçe’den transferde yeni bomba! Ocakta Dybala bitiyor



05 Kasım 2024, Salı













`;
}

return html;
}
function checkMobileOrTablet() {
let isNoAds=”false” === ‘true’ ? true : false;

var isInfinite = false;

if (!deviceInfo.isMobile) {
SabahSurmansetAjaxCall(“haberdetay”);

if (!isNoAds) {
var HTML = “”;

if (isInfinite) {
HTML = ”;
} else {
HTML = ”;
}
}
}
}

var sonuc;

// Start – Get Sabah Surmanset
function SabahSurmansetAjaxCall(type, Id) {
var attribute = “752×640”;

var _isMobile = typeof (deviceInfo) != “undefined” && typeof (deviceInfo.isMobile) != “undefined” ? deviceInfo.isMobile : false;

var _url = ”
_url += “?utm_source=ahaber_” + (_isMobile ? “mobil” : “web”) + “_anasayfa”;
_url += “&utm_medium=ahaber_” + (_isMobile ? “mobil” : “web”) + “_anasayfa”;
_url += “&utm_campaign=ahaber_” + (_isMobile ? “mobil” : “web”) + “_anasayfa”;
_url += “#a{articleId}”;

if (type == “haberdetay” || type == “galeridetay”) {
fetch(`/json/getarticlesbyrange/${(“50450b66-f39e-4dd8-867b-4d2e15726a5f”).toLowerCase()}/${(“f949437e-a568-4e52-baac-ebef5cc218d9”).toLowerCase()}/20/5/${attribute}`, {
method: ‘GET’,
headers: {
‘Content-Type’: ‘application/json’,
},
// No body for GET requests
})
.then(response => {
if (response.ok) {
return response.json();
}
})
.then(result => {
if (result.success) {
isMobileLoadSabahNews = true;
sonuc = result.items;
sonuc = sonuc.slice(0, 4);
sonuc.splice(2, 1);
sonuc.splice(3, 1);
var _filteredList = Shuffle(sonuc).slice(0, 2);

_filteredList.forEach(function (item) {
currentUrl = _url.replace(‘{articleId}’, item.ArticleId);
if (currentUrl == null || (item.Path == null && item.Path2 == null)) {
return;
}
var r = $(““, { href: currentUrl, target: “_blank” }),
r=$(r).attr(‘aria-label’, t.TitleShort);
a = r.clone(),
n = $(““, { src: !item.Path ? item.Path2 : item.Path }),
span = $(““, {});
n.attr(“width”, 314).attr(“height”, 225).attr(“decoding”, “async”).attr(“loading”, “async”);
var o = $(“

“, { class: “multiple boxShadowSet” }).append(r.append(span.append(n)));
var i = $(“
“).append(a.text(item.TitleShort));
o.append(i);
var div4 = $(“”, { class: “col-sm-12 view10” }).append(o);
});

fetch(“/json/getmansetforrightmenu”)
.then(response => {
if (response.ok) {
return response.json();
}
})
.then(e => {
if (e.Success) {
var r = 0;
if (e.List != null && e.List != undefined && e.List.length > 0) {
e.List = e.List.reverse();
}
mostReadList = e.List;
e.List.forEach(function (a) {
if (‘False’ === ‘False’) {
if (r < 5) {
if (!a.IsResmiIlan)
a.GetUrl += “/?utm_source=haberdetaysagsutun&utm_medium=haberdetaydetaysagsutun&utm_campaign=haberdetaysagsutun”;
$(“#second-eb3ece96-0d5d-4def-ac82-b406570ccdd3″).after(t(a, !0))
r++;
}
}
});
}
})
.catch(error => {
console.error(‘Error:’, error);
});
}
})
.catch(error => {
console.error(‘Error:’, error);
});
}
else if (type == ‘haberdetaymobil’) {
var sabahArticleList = [];
attribute=”239×142”;

fetch(`/json/getarticlesbyrange/${(“50450b66-f39e-4dd8-867b-4d2e15726a5f”).toLowerCase()}/${(“dbddb679-e8b3-430b-a074-81e317b70bde”).toLowerCase()}/0/1/${attribute}`, {
method: ‘GET’,
headers: {
‘Content-Type’: ‘application/json’,
},
})
.then(response => {
if (response.ok) {
return response.json();
}
})
.then(galeriSporResult => {
if (galeriSporResult.success) {
galeriSporResult.items.forEach(function (value) {
value.Url = value.Url.indexOf(“http”) < 0 ? ” + value.Url : value.Url;
sabahArticleList.push(value);
});
}

fetch(`/json/getarticlesbyrange/${(“50450b66-f39e-4dd8-867b-4d2e15726a5f”).toLowerCase()}/${(“c369bdf9-8990-45fa-919e-8b2035356e22”).toLowerCase()}/0/1/${attribute}`, {
method: ‘GET’,
headers: {
‘Content-Type’: ‘application/json’,
},
// No body for GET requests
})
.then(response => {
if (response.ok) {
return response.json();
}
})
.then(galeriMagazinResult => {
if (galeriMagazinResult.success) {
galeriMagazinResult.items.forEach(function (value) {
value.Url = value.Url.indexOf(“http”) < 0 ? ” + value.Url : value.Url;
sabahArticleList.push(value);
});
}

if (sabahArticleList.length == 2) {
setTimeout(function () {
sabahArticleList.forEach(function (item) {
if (item.Path == null || item.Url == null) {
return;
}
var _html = “”;
_html += “
“;
_html += ” “;
_html += ” “;
_html += ” “;
_html += ”
” + item.Title + “
“;
_html += “

“;
$(“#news_” + Id).append(_html);
});
}, 0);
}
})
.catch(error => {
console.error(‘Error:’, error);
});
})
.catch(error => {
console.error(‘Error:’, error);
});
}
}

function Shuffle(array) {
var m = array.length, t, i;
while (m) {
i = Math.floor(Math.random() * m–);
t = array[m];
array[m] = array[i];
array[i] = t;
}
return array;
}
// End – Get Sabah Surmanset