1<!doctype html> 2<html> 3<head> 4<meta charset="utf-8"> 5</head> 6 7<body> 8 9<!---<button onclick="myFunction()">mese</button> pulsante MESE che manda alla funzione location.replace-------->
10<script type="text/javascript" language="JavaScript"> 11 12function WebDate() { 13var now = new Date();// ok 14 15var dd = now.getDate();//ok 16 17// if(dd<10){//ok 18// dd= 7 + dd;//ok 7 19 // } //ok 20 21var year= now.getYear();if (year < 1000) year += 1900;//ok 22nameMth = new Array('gennaio','febbraio','marzo','aprile','maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre','dicembre'); 23document.write(nameMth[now.getMonth()]); 24document.write(dd); 25var currentDate = new Date().getMonth(); 26if (currentDate == 0) 27 window.location = "https://soloarte.atelierdesarts.com/giorno/gennaio/01-" + dd + ".html"; 28else if (currentDate == 1) 29 window.location = "https://soloarte.atelierdesarts.com/giorno/febbraio/02-" + dd + ".html"; 30else if (currentDate == 2) 31 window.location = "https://soloarte.atelierdesarts.com/giorno/marzo/03-" + dd + ".html"; 32else if (currentDate == 3) 33 window.location = "https://soloarte.atelierdesarts.com/giorno/aprile/04-" + dd + ".html"; 34else if (currentDate == 4) 35 window.location = "https://soloarte.atelierdesarts.com/giorno/maggio/05-" + dd + ".html"; 36else if (currentDate == 5) 37 window.location = "https://soloarte.atelierdesarts.com/giorno/giugno/06-" + dd + ".html"; 38else if (currentDate == 6) 39 window.location = "https://soloarte.atelierdesarts.com/giorno/luglio/07-" + dd + ".html"; 40else if (currentDate == 7) 41 window.location = "https://soloarte.atelierdesarts.com/giorno/agosto/08-" + dd + ".html"; 42else if (currentDate == 8) 43 window.location = "https://soloarte.atelierdesarts.com/giorno/settembre/09-" + dd + ".html"; 44else if (currentDate == 9) 45 window.location = "https://soloarte.atelierdesarts.com/giorno/ottobre/10-" + dd + ".html"; 46else if (currentDate == 10) 47 window.location = "https://soloarte.atelierdesarts.com/giorno/novembre/11-" + dd + ".html"; 48else if (currentDate == 11) 49 window.location = "https://soloarte.atelierdesarts.com/giorno/dicembre/12-" + dd + ".html"; 50 } 51 </script>
51 52
53<script type="text/javascript"> WebDate();dd; </script>
53 <!---- SCRIVE IL MESE (WebDate) MEMORIZZATO var now = new Date() --> 54 </body> 55</html>
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.