From 83ffc9bab8d6d4bf4a0e5d5e5d7f3df4fb78bf15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E6=A9=99?= Date: Fri, 17 Jul 2015 10:00:19 +0800 Subject: [PATCH] force https --- index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d90bffc..1736671 100644 --- a/index.html +++ b/index.html @@ -73,6 +73,15 @@ navigationTooltips: ['挑战雄狮', '认识自己', '聚集勇气', '唤醒睡狮'] }); }); + + //Force Https + (function forceHttps(){ + var ishttps = 'https:' == document.location.protocol ? true: false; + if(ishttps == false){ + location.href = location.href.replace("http://", "https://"); + } + })(); + @@ -112,4 +121,4 @@

唤醒睡狮

- \ No newline at end of file +