PageSourceSearch

https://dmec.vn/templates/system/js/system.js

js dmec.vn collected 2026-09-24 09:11:41 UTC 1,379 bytes, 50 lines download raw bytes

1var reload = true;
2function ServerTime(){
3    var mydate = new Date()
4    var year = mydate.getYear()
5    if (year < 1000)
6        year += 1900
7    var month = mydate.getMonth() + 1
8    if (month < 10)
9        month = "0" + month
10    var day = mydate.getDate()
11    if (day < 10)
12        day = "0" + day
13    var dayw = mydate.getDay()
14    var hour = mydate.getHours()
15    if (hour < 10)
16        hour = "0" + hour
17    var minute = mydate.getMinutes()
18    var seconds = mydate.getSeconds();
19    if (minute < 10)
20        minute = "0" + minute
21    if (seconds < 10)
22        seconds = "0" + seconds
23    //var dayarray = new Array("Chủ Nhật", "Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6", "Thứ 7")
24    var time = hour + ":" + minute + ":" + seconds + " | " + day + "/" + month + "/" + year
25    if (document.getElementById('ServerTime') != null)
26        document.getElementById('ServerTime').innerHTML = time;    
27    window.setTimeout("ServerTime()", 1000);
28}
29
30function set_lang(lang){
31    $.post(base_url+"api/setlang/",{'lang':lang},function(data){  
32        location.reload();
33    });     
34}
35
36function set_langintro(lang){
37    $.post(base_url+"api/setlang/",{'lang':lang},function(data){
38         window.location.href = base_url+'trang-chu.html';
39    });     
40}
41
42
43
44function reload_local(){
45    if(reload==true){
46    location.reload();
47    var reload = false;
48    }
49}
50

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.