شمار شهدای لبنان به ۳ هزار و ۳۶۵ نفر افزایش یافت
let dataText = [{“title”:”u0645u062du06a9u0648u0645u06ccu062a u0648u06a9u06ccu0644 u0627u062du0645u062fu06cc u0646u0698u0627u062f u0628u0647 u0632u0646u062fu0627u0646 u0628u0627 u0634u06a9u0627u06ccu062a u0622u0645u0646u0647u200cu0633u0627u062fu0627u062a u0630u0628u06ccu062du200cu067eu0648u0631″,”link”:”/fa/news/1013482″},{“title”:”u0641u0631u0648u0634 u062eu0627u0646u0647 u062fu0631 u062au0631u06a9u06ccu0647 u0628u0647 u062eu0627u0631u062cu06cc u0647u0627 / u0631u0648u0633 u0647u0627 u0648 u0627u06ccu0631u0627u0646u06cc u0647u0627 u062fu0631 u0635u062fu0631″,”link”:”/fa/news/1013448″},{“title”:”u0627u0646u062au0642u0627u062f u0633u06ccu062f u062du0633u0646 u062eu0645u06ccu0646u06cc u0627u0632 u0633u0627u0646u0633u0648u0631 u06a9u062au0627u0628 u0647u0627 : u0628u062du062b u0628u0631 u0633u0631 u0641u06ccu0644u062au0631u06ccu0646u06af u0627u0633u062a u0627u0645u0627 u062fu0631 u0647u0645u06ccu0646 u0634u0631u0627u06ccu0637 50 u0645u06ccu0644u06ccu0648u0646 u0646u0641u0631 u0639u0636u0648 u062au0644u06afu0631u0627u0645 u0647u0633u062au0646u062f”,”link”:”/fa/news/1013440″},{“title”:”u067eu06ccu0631u0627u0647u0646 u0632u06ccu0628u0627u06cc u062au06ccu0645 u0645u0644u06cc u0627u06ccu0631u0627u0646 u0645u0642u0627u0628u0644 u06a9u0631u0647u200cu0634u0645u0627u0644u06cc (+ u0639u06a9u0633)”,”link”:”/fa/news/1013434″},{“title”:”u06ccu0627u0633u0648u062cu061b u0631u0648u0627u06ccu062a u0642u062au0644 u0645u0633u0639u0648u062f u062fu0627u0648u0648u062fu06cc u067eu0632u0634u06a9 u0642u0644u0628 u062au0648u0633u0637 u0628u0631u0627u062fu0631 u0628u06ccu0645u0627u0631 u0641u0648u062a u0634u062fu0647 / u0628u0633u062au0647 u0634u062fu0646 u0627u0639u062au0631u0627u0636u06cc u0645u0637u0628 u067eu0632u0634u06a9u0627u0646 u0628u0631u0627u06cc 2 u0631u0648u0632 / u062au062cu0645u0639 u067eu0632u0634u06a9u0627u0646 u0645u0642u0627u0628u0644 u0627u0633u062au0627u0646u062fu0627u0631u06cc”,”link”:”/fa/news/1013431″},{“title”:”u0628u0631u0642 u0646u062fu0627u0631u06ccu0645u061b u0686u0631u0627u061f u0686u0648u0646 u06afu0627u0632 u0646u062fu0627u0631u06ccu0645!”,”link”:”/fa/news/1013430″},{“title”:”u0633u0641u06ccu0631 u0627u062du062au0645u0627u0644u06cc u0622u0645u0631u06ccu06a9u0627: u0641u0631u0635u062a u00abu0628u0633u0637 u062du0627u06a9u0645u06ccu062a u0627u0633u0631u0627u0626u06ccu0644u00bb u0628u0631 u06a9u0631u0627u0646u0647 u0628u0627u062eu062au0631u06cc u0648u062cu0648u062f u062fu0627u0631u062f”,”link”:”/fa/news/1013427″},{“title”:”u0647u0648u0627u067eu06ccu0645u0627u06cc u0645u0633u0627u0641u0631u0628u0631u06cc u0622u0645u0631u06ccu06a9u0627u06ccu06cc u0628u0631 u0641u0631u0627u0632 u067eu0627u06ccu062au062eu062a u0647u0627u0626u06ccu062au06cc u0647u062fu0641 u0642u0631u0627u0631 u06afu0631u0641u062a”,”link”:”/fa/news/1013424″},{“title”:”u0645u0627u0644u06a9 u067eu0631u0633u067eu0648u0644u06ccu0633 u0622u06ccu0646u062fu0647 u0627u06ccu0646 u0628u0627u0634u06afu0627u0647 u0631u0627 u0628u0647 u062eu0637u0631 u0627u0646u062fu0627u062eu062a”,”link”:”/fa/news/1013423″},{“title”:”u0686u0627u0644u0634 u06f5 u0631u0648u0632 u06f5 u0631u0627u0632 u0628u0644u0648u0628u0627u0646u06a9 u0633u0627u0645u0627u0646 / u067eu0648u0634 u0628u0647u062au0631 u0627u0633u062a u06ccu0627 u067eu06ccu0627u0645u06a9u061f u0645u0633u0627u0644u0647 u0627u06ccu0646 u0627u0633u062a!”,”link”:”/fa/news/1013416″}];
document.addEventListener(‘DOMContentLoaded’, function (event) {
var setTimeouteText;
var iNews;
var setTimeouteNews;
var setTimeouteCallBack;
var timer_on = 1;
function typeWriter(text, i, fnCallback) {
if (i < (text.title.length)) {
if (i + 1 == text.title.length) {
document.getElementById("typewriter").innerHTML = '‘ + text.title.substring(0, i + 1) + ”;
} else {
document.getElementById(“typewriter”).innerHTML = ‘‘ + text.title.substring(0, i + 1) + ‘
function StartTextAnimation(i) {
iNews = i;
if (typeof dataText[i] == ‘undefined’) {
setTimeouteNews = setTimeout(function () {
StartTextAnimation(0);
}, 100);
} else if (i < dataText[i].title.length) {
typeWriter(dataText[i], 0, function () {
StartTextAnimation(i + 1);
});
}
}
function startCount() {
if (!timer_on) {
timer_on = 1;
StartTextAnimation(iNews + 1);
}
}
function stopCount() {
if (typeof dataText[iNews] == 'undefined') {
document.getElementById("typewriter").innerHTML = '‘ + dataText[0].title + ”;
}else {
document.getElementById(“typewriter”).innerHTML = ‘‘ + dataText[iNews].title + ”;
}
clearTimeout(setTimeouteText);
clearTimeout(setTimeouteNews);
clearTimeout(setTimeouteCallBack);
timer_on = 0;
}
document.getElementById(“typewriter”).onmouseenter = function () {
stopCount()
};
document.getElementById(“typewriter”).onmouseleave = function () {
startCount()
};
StartTextAnimation(0);
});
شمار شهدای لبنان به ۳ هزار و ۳۶۵ نفر افزایش یافت
const newsList = JSON.parse(‘[{“id”:”90535″},{“id”:”90532″},{“id”:”90565″},{“id”:”90567″},{“id”:”90566″},{“id”:”90564″},{“id”:”90563″},{“id”:”90561″},{“id”:”90559″},{“id”:”90557″},{“id”:”90556″},{“id”:”90555″},{“id”:”90554″},{“id”:”90553″},{“id”:”90552″},{“id”:”90551″},{“id”:”90550″},{“id”:”90549″},{“id”:”90547″},{“id”:”90546″},{“id”:”90545″},{“id”:”90544″},{“id”:”90548″},{“id”:”90543″},{“id”:”90542″},{“id”:”90541″},{“id”:”90540″},{“id”:”90538″},{“id”:”90539″},{“id”:”90534″},{“id”:”90533″},{“id”:”90531″},{“id”:”90530″},{“id”:”90529″},{“id”:”90528″},{“id”:”90527″},{“id”:”90526″},{“id”:”90525″},{“id”:”90524″},{“id”:”90523″},{“id”:”90522″},{“id”:”90521″},{“id”:”90520″},{“id”:”90518″},{“id”:”90517″},{“id”:”90519″},{“id”:”90516″},{“id”:”90515″},{“id”:”90514″},{“id”:”90513″}]’);
const findDiv = document.getElementById(‘shuffles’);
const findLink=document.getElementById(‘news-link’);
if (newsList.length === 1) {
findDiv.style.display=”flex”;
findLink.setAttribute(‘href’,”/fa/news/”+newsList[0].id +’?visitYear=y’);
} else if (newsList.length > 1) {
const newsListLength = newsList.length – 1;
const intArr = Math.floor(Math.random() * newsListLength);
findDiv.style.display=”flex”;
findLink.setAttribute(‘href’,”/fa/news/”+newsList[intArr].id + ‘?visitYear=y’);
}
docReady(function() {
let copyLink = document.getElementById(‘copyLink’);
let foo = document.getElementById(‘foo’);
const setCopy = () => {
foo.select();
document.execCommand(‘copy’);
};
copyLink.addEventListener(‘click’, setCopy);
});
var temp = document.getElementById(‘adv311’);
var bodyID = document.getElementsByTagName(‘body’)[0].id;
if(bodyID == ‘news’ || bodyID == ‘hafez’){
temp.innerHTML = renderAds({“sec_id”:”311″,”sec_view_limit”:”480″,”cdn_url”:”https://cdn.asriran.com”,”sec_type”:”1″,”adv”:[]} ,”https://www.asriran.com/fa/ads/redirect”, 0 , 0 , “lazyload” , “14030823”);
} else {
temp.innerHTML = renderAds({“sec_id”:”311″,”sec_view_limit”:”480″,”cdn_url”:”https://cdn.asriran.com”,”sec_type”:”1″,”adv”:[]} ,”https://www.asriran.com/fa/ads/redirect”, 0 , 0 , “14030823”);
}
var parentWidth = temp.offsetWidth;
var advImage = temp.getElementsByTagName(‘img’);
for (i = 0; i < advImage.length; i++) {
let w = {"sec_id":"311","sec_view_limit":"480","cdn_url":"https://cdn.asriran.com","sec_type":"1","adv":[]}.adv[i].width;
let h = {"sec_id":"311","sec_view_limit":"480","cdn_url":"https://cdn.asriran.com","sec_type":"1","adv":[]}.adv[i].height;
var ratio = w / h;
var newHeigth = parentWidth / ratio;
advImage[i].setAttribute('heigth', Math.round(newHeigth));
advImage[i].style.height = Math.round(newHeigth) + 'px';
}
document.addEventListener( ‘DOMContentLoaded’, function () {
var xtpls2 = document.querySelector(‘#mine’);
var xtpls = document.querySelector(‘.hello’);
const observerr = lozad(xtpls, {
load: function (el) {
lazyLoadDependensies(lazyDep.s1);
var temp = xtpls2.innerHTML;
xtpls.innerHTML = temp;
xtpls2.remove();
var s1 = document.querySelector(‘#news_slider_2’);
if(s1){
setTimeout(()=>{
const swiper1 = new Swiper(“#news_slider_2”, {
watchSlidesProgress: true,
slidesPerView: 5,
loop: true,
speed:1000,
slidesPerGroup: 1,
spaceBetween: 4,
autoplay: {
delay: 2000,
},
navigation: {
nextEl: ‘.swiper-button-next1’,
prevEl: ‘.swiper-button-prev1’,
},
breakpoints: {
0: {
slidesPerView: 2,
},
480: {
slidesPerView: 3,
},
992: {
slidesPerView: 5,
}
}
});
},500);
}
}
});
observerr.observe();
});
اولین کسی باشید که نظر میدهد!