summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-11-15 02:24:46 +0100
committersijanec <sijanecantonluka@gmail.com>2020-11-15 02:24:46 +0100
commitf76ac3e9f5dbb6d9bc928ae40d87101183686e63 (patch)
treef7f88869563847f03165b4374da48f852f2f5dd4 /assets
parentizbrisal telefonsko številko (diff)
downloadsijanec.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')
-rw-r--r--assets/js/main.js10
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);
+ });
+}