Search
menu

HOME > Positioning > SOKKIA > Movie

Positioning SOKKIA Japanese

Movie

Product Movie List

iX Product Page

GCX2

TSshield Product Page

TSshield Product Page

DX Product Page

DX Product Page

DX Product Page

SX Product Page

GYRO X ⅡProduct Page

// 経過時間(何日以内の記事に付与するか) var pass = 90 ; // 付与する文字 var content = "NEW"; var currentDate = new Date(); var spans = document.getElementsByTagName("span"); for (i = 0; i < spans.length; i++) { if (spans[i].getAttribute("class") == "new" || spans[i].getAttribute("className") == "new") { if (spans[i].childNodes[0]) { time = spans[i].childNodes[0].nodeValue.split(":"); var entryDate = new Date(time[0], time[1]-1, time[2], time[3], time[4], time[5]); var now = (entryDate.getTime() - currentDate.getTime())/(60*60*1000); now = Math.ceil(now); if(-now <= pass*24){ spans[i].innerHTML = content; spans[i].style.display = "block"; } } } }