summaryrefslogtreecommitdiffstats
path: root/assets/js/main.js
blob: 3fe88f961c6f6de738f6af8c3b1b81eff94d2521 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
if (document.location.protocol != "https:"
	&& (
		window.location.hostname.endsWith("sijanec.eu")
		|| window.location.hostname.endsWith("šijanec.eu")
		|| window.location.hostname.endsWith("xn--ijanec-9jb.eu"))) {
	fetch("/?preveri-https").then((response)=>{
		document.getElementById("ponudi-https").hidden = false;
	}).catch((error)=>{
		console.log("ne bom predlagal HTTPS, ker HTTPS ne deluje, ker: "+error);
	});
}
document.querySelectorAll(".commentform").forEach((c)=>{c.parentElement.previousElementSibling.checked=false}); // enovrstičnica, ki skrije komentar-forme, če checkbox statusi ostanejo po reloadu.