github is not executed and can be run locally.
my github pages has a second-level domain name, so this project is accessed with second-level domain name / demo-name .
Code:
$(document).ready(function(){
console.log("!");
var date = new Date();
var hour = date.getHours();
if(hour==23||hour<7)
{
var aList=document.getElementsByClassName("archive-name");
for(var i=0;i<aList.length;iPP){
document.getElementsByClassName("archive-name")[i].style.color="-sharpfff";
}
}else{
var aList=document.getElementsByClassName("archive-name");
for(var i=0;i<aList.length;iPP){
document.getElementsByClassName("archive-name")[i].style.color="-sharp333";
}
}
}
The console in the code doesn"t appear either. Why?
I don"t think it"s the code, so it"s github, but I didn"t find it.