1/* %D - Ð´ÐµÐ½Ñ Ð½ÐµÐ´ÐµÐ»Ð¸ 2* %d - ÑиÑло 3* %M - меÑÑÑ 4* %y - год 5* %Y - коÑоÑкий год 6* %h - ÑÐ°Ñ 7* %m - минÑÑа 8* %s - ÑекÑнда 9* ~xxxxxx~ - меÑÑаÑÑие ÑÐ¸Ð¼Ð²Ð¾Ð»Ñ 10*/ 11 12 13function myDate(id, shift) { 14 try { 15 var days = ['воÑкÑеÑенÑе', 'понеделÑник', 'вÑоÑник', 'ÑÑеда', 'ÑеÑвеÑг', 'пÑÑниÑа', 'ÑÑббоÑа'], 16 months = ['ÑнваÑÑ', 'ÑевÑалÑ', 'маÑÑа', 'апÑелÑ', 'маÑ', 'иÑнÑ', 'иÑлÑ', 'авгÑÑÑа', 'ÑенÑÑбÑÑ', 'окÑÑбÑÑ', 'ноÑбÑÑ', 'декабÑÑ'], 17 obj = document.getElementById(id), 18 format = obj.innerHTML; 19 20 function update() { 21 var date = new Date(), hours = date.getHours(); 22 23 if (shift == undefined) { 24 shift = hours - date.getUTCHours() + ((date.getDate() - date.getUTCDate())*24); 25 } 26 27 date.setUTCHours(date.getUTCHours() + shift); 28 var D = days[date.getUTCDay()], 29 d = date.getUTCDate(), 30 M = months[date.getUTCMonth()], 31 y = date.getUTCFullYear(), 32 h = date.getUTCHours(), 33 m = date.getUTCMinutes(), 34 s = date.getUTCSeconds(), 35 year = y.toString(), 36 Y = year[2] + year[3], 37 wrap = (s % 2 == 1)? '<span style="visibility:hidden">' : '<span>'; 38 if (h < 10) h = '0' + h; 39 if (m < 10) m = '0' + m; 40 if (s < 10) s = '0' + s; 41 obj.innerHTML = format 42 .replace(/%D/g, D) 43 .replace(/%d/g, d) 44 .replace(/%M/g, M) 45 .replace(/%Y/g, Y) 46 .replace(/%y/g, y) 47 .replace(/%h/g, h) 48 .replace(/%m/g, m) 49 .replace(/%s/g, s) 50 .replace(/~([^~]+)~/g, wrap + '$1</span>'); 51 } 52 update(); 53 window.setInterval(update, 1000); 54 } catch(e) { 55 56 } 57}; 58 59/*******************************************/ 60 61myDate('date'); // ÐÑÐµÐ¼Ñ Ð² ÑаÑовом поÑÑе полÑзоваÑÐµÐ»Ñ - в ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ñ id=date
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.