diff --git a/index.html b/index.html index bdd921b..2cf0eb4 100644 --- a/index.html +++ b/index.html @@ -26,13 +26,13 @@ class="datepicker" name="date" type="text" - placeholder="---- -- --" required pattern="[0-9]{4}/[0-9]{2}/[0-9]{2}.*" onchange="timechanged()">   reload +
@@ -169,8 +169,13 @@ if (agent.indexOf('msie')>0 || agent.indexOf('trident')>0) { alert("Internet Explorer には対応していません"); } + today = new Date(Date.now()); + today_str = today.getFullYear() + "/" + ("0"+(today.getMonth() + 1)).slice(-2,3) + "/" + (today.getDate()); + document.querySelector("#input_01").value = today_str; +console.log(today_str); timechanged(); filter(); + }; var direction = 1;