//document.getElementById(“info1”).innerHTML += “
“;
document.getElementById(“info3”).innerHTML = “
” + temperature + ” oC
“;
$(“.txt-province”).text(txt); $(“.ulvalue”).hide()
})
};
var an = true, w = 360; if ($(window).width() < 360) { w = $(window).width() – 100; } else if ($(window).width() < 767) { w = $(window).width() – 80; }
function searchclick() {
if ($(“#seach-box”).val() != “”) { doSearchSite(“seach-box”); return false; } else { $(‘#seach-box’).fadeToggle(100); $(‘#seach-box’).focus(); }
};
//Update Datetime
function updateDateTime() {
var currentTime = new Date();
var currentDay = currentTime.getDay();
//var currentDay = currentTime.getDay().toString().padStart(2, ‘0’);
var arNgayThang = “Chủ nhật_Thứ hai_Thứ ba_Thứ tư_Thứ năm_Thứ sáu_Thứ bảy”.split(“_”);
var currentDay = arNgayThang[currentDay];
var currentDate = currentTime.getDate().toString().padStart(2, ‘0’);
var currentMon = (currentTime.getMonth() + 1).toString().padStart(2, ‘0’);
var currentYr = currentTime.getFullYear().toString().padStart(2, ‘0’);
var currentHours = currentTime.getHours().toString().padStart(2, ‘0’);
var currentMinutes = currentTime.getMinutes().toString().padStart(2, ‘0’);
var currentSeconds = currentTime.getSeconds().toString().padStart(2, ‘0’);
var currentTimeString = `${currentHours}:${currentMinutes}:${currentSeconds}`;
var currentDateString = currentDay + ” ” + currentDate + “https://dangcongsan.vn/” + currentMon + “https://dangcongsan.vn/” + currentYr
document.getElementById(“time”).firstChild.nodeValue = currentTimeString
document.getElementById(“date”).firstChild.nodeValue = currentDateString; currentDay + ” ” + currentDate + “https://dangcongsan.vn/” + currentMon + “https://dangcongsan.vn/” + currentYr; document.getElementById(“time”).firstChild.nodeValue = currentTimeString, document.getElementById(“date”).firstChild.nodeValue = currentDateString;
};
//updateDateTime();
setInterval(“updateDateTime()”, 1000);
$(function () {
var path = location.pathname;
var currHref = location.href.replace(‘https://”https://dangcongsan.vn/xa-hoi/,”‘).replace(‘http://”https://dangcongsan.vn/xa-hoi/,”‘);
var origin = location.origin.replace(‘https://”https://dangcongsan.vn/xa-hoi/,”‘).replace(‘http://”https://dangcongsan.vn/xa-hoi/,”‘);
$(‘.main-menu li’).removeClass(“active”);
$(‘.main-menu li’).each(function (index) {
var link = $(this).find(‘a’).attr(‘href’).replace(‘https://”https://dangcongsan.vn/xa-hoi/,”‘).replace(‘http://”https://dangcongsan.vn/xa-hoi/,”‘).replace();
if ((currHref.indexOf(link) != -1 && link != origin && path != “https://dangcongsan.vn/”) || (link == origin && path == “https://dangcongsan.vn/”)) {
$(this).addClass(‘active’); return;
}
});
if ($(window).width() > 767) {
var stickyHeaderTop = $(‘.vmenu’).offset().top;
if ($(window).scrollTop() > stickyHeaderTop) {
$(‘.body’).addClass(‘fixtop’);
} else { $(‘.body’).removeClass(‘fixtop’); }
$(window).scroll(function () {
if ($(window).scrollTop() > stickyHeaderTop) { $(‘.body’).addClass(‘fixtop’); } else { $(‘.body’).removeClass(‘fixtop’); }
});
}
getWeatherHome(‘1581130″https://dangcongsan.vn/xa-hoi/,”Hà Nội’); $(“.arrowDown”).click(function () { $(“.ulvalue”).toggleClass(“show”) });
//var weatherAllDistrict = JSON.parse(`[{“name”:”Hà Nội”,”value”:1581130},{“name”:”Hồ Chí Minh”,”value”:1566083},{“name”:”An Giang”,”value”:1591474},{“name”:”Bà Rịa – Vũng Tàu”,”value”:1582720},{“name”:”Bạc Liêu”,”value”:1591472},{“name”:”Bắc Kạn”,”value”:1591476},{“name”:”Bắc Giang”,”value”:1591478},{“name”:”Bắc Ninh”,”value”:1591449},{“name”:”Bến Tre”,”value”:1591470},{“name”:”Bình Dương”,”value”:1586443},{“name”:”Bình Định”,”value”:1587919},{“name”:”Bình Phước”,”value”:1582723},{“name”:”Bình Thuận”,”value”:1587916},{“name”:”Cà Mau”,”value”:1586447},{“name”:”Cao Bằng”,”value”:1586182},{“name”:”Cần Thơ”,”value”:1586203},{“name”:”Đà Nẵng”,”value”:1583992},{“name”:”Đắk Lắk”,”value”:1584071},{“name”:”Đắk Nông”,”value”:1584169},{“name”:”Điện Biên”,”value”:1584534},{“name”:”Đồng Nai”,”value”:1584536},{“name”:”Đồng Tháp”,”value”:1584561},{“name”:”Gia Lai”,”value”:1568769},{“name”:”Hà Giang”,”value”:1581349},{“name”:”Hà Nam”,”value”:1581326},{“name”:”Hà Tĩnh”,”value”:1581348},{“name”:”Hải Dương”,”value”:1581297},{“name”:”Hải Phòng”,”value”:1581290},{“name”:”Hậu Giang”,”value”:1581277},{“name”:”Hòa Bình”,”value”:1581052},{“name”:”Hưng Yên”,”value”:1581030},{“name”:”Khánh Hòa”,”value”:1563281},{“name”:”Kiên Giang”,”value”:1579008},{“name”:”Kon Tum”,”value”:1578500},{“name”:”Lai Châu”,”value”:1576303},{“name”:”Lâm Đồng”,”value”:1576303},{“name”:”Lạng Sơn”,”value”:1576633},{“name”:”Lào Cai”,”value”:1576638},{“name”:”Long An”,”value”:1571968},{“name”:”Nam Định”,”value”:1573517},{“name”:”Nghệ An”,”value”:1571968},{“name”:”Ninh Bình”,”value”:1571966},{“name”:”Ninh Thuận”,”value”:1571967},{“name”:”Phú Thọ”,”value”:1570449},{“name”:”Phú Yên”,”value”:1568770},{“name”:”Quảng Bình“,”value”:1568777},{“name”:”Quảng Nam”,”value”:1568770},{“name”:”Quảng Ngãi”,”value”:1568774},{“name”:”Quảng Ninh”,”value”:1568758},{“name”:”Quảng Trị”,”value”:1568574},{“name”:”Sóc Trăng”,”value”:1567788},{“name”:”Sơn La”,”value”:1567789},{“name”:”Tây Ninh”,”value”:1566559},{“name”:”Thái Bình”,”value”:1566346},{“name”:”Thái Nguyên”,”value”:1566319},{“name”:”Thanh Hóa”,”value”:1566166},{“name”:”Thừa Thiên Huế”,”value”:1565823},{“name”:”Tiền Giang”,”value”:1566557},{“name”:”Trà Vinh”,”value”:1566556},{“name”:”Tuyên Quang”,”value”:1566555},{“name”:”Vĩnh Long”,”value”:1562693},{“name”:”Vĩnh Phúc”,”value”:1562820},{“name”:”Yên Bái”,”value”:1562822}]`);
});
Nguồn tin: https%3A%2F%2Fdangcongsan.vn%2Fxa-hoi%2Fcong-bo-cac-so-dien-thoai-duong-day-nong-an-toan-giao-thong-dip-nghi-le-2-9-676276.html
+ There are no comments
Add yours