diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-11-15 02:24:46 +0100 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-11-15 02:24:46 +0100 |
commit | f76ac3e9f5dbb6d9bc928ae40d87101183686e63 (patch) | |
tree | f7f88869563847f03165b4374da48f852f2f5dd4 /assets/js | |
parent | izbrisal telefonsko številko (diff) | |
download | sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar.gz sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar.bz2 sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar.lz sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar.xz sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar.zst sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.zip |
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/main.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..c19eb0f --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,10 @@ +if (document.location.protocol != "https:" + && ( + window.location.hostname.endsWith("sijanec.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); + }); +} |