From a7428ccdb3da1e2e501803cae56ff2484347aa92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Panzenb=C3=B6ck?= Date: Wed, 6 Aug 2014 23:54:11 +0200 Subject: [PATCH] http -> https --- browserponies.js | 2 +- gui-common.js | 7 ++++++- index.html | 24 ++++++++++++------------ 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/browserponies.js b/browserponies.js index 91f9a70..6683305 100644 --- a/browserponies.js +++ b/browserponies.js @@ -337,7 +337,7 @@ var BrowserPonies = (function () { return URL.fix(baseurl); }, fix: function (url) { - return url.replace(/^https?:\/\/web\d?\.student\.tuwien\.ac\.at\/~e0427417\/browser-ponies\//,"http://panzi.github.com/Browser-Ponies/"); + return url.replace(/^https?:\/\/web\d?\.student\.tuwien\.ac\.at\/~e0427417\/browser-ponies\//,"https://panzi.github.com/Browser-Ponies/"); } }); diff --git a/gui-common.js b/gui-common.js index 2effe0a..9b37ec9 100644 --- a/gui-common.js +++ b/gui-common.js @@ -3,11 +3,16 @@ var observe = BrowserPonies.Util.observe; var tag = BrowserPonies.Util.tag; var $ = BrowserPonies.Util.$; -var absUrl = BrowserPonies.Util.URL.abs; +var _absUrl = BrowserPonies.Util.URL.abs; var has = BrowserPonies.Util.has; var partial = BrowserPonies.Util.partial; var dataUrl = BrowserPonies.Util.dataUrl; +function absUrl (url) { + // force https + return _absUrl(url).replace(/^http:/,'https:'); +} + if (typeof($x) === "undefined" && document.evaluate) { window.$x = function (xpath, context) { var nodes = []; diff --git a/index.html b/index.html index c7546e2..89decb3 100644 --- a/index.html +++ b/index.html @@ -1,15 +1,15 @@ - + - + Browser Ponies - +