Commit c469d4e5 authored by Jim Tittsler's avatar Jim Tittsler

Use https or // to sideload.

Force https (or use protocol relative references) to
allow enabling SSL on deployed WordPress site.

Addresses #30
parent dd929d2d
......@@ -2,8 +2,8 @@ nice node courseWP.js --prevnext --brand Art \
--wpurl http://course.oeru.org/art/ \
--wpuser ArtUser --wppass "Art$Pass" --wpdelete --wpmenu \
--theme newSplashWP \
--link http://www.tru.ca/ \
--logo http://wikieducator.org/images/e/ef/Thompson_Rivers_University.png \
--link https://www.tru.ca/ \
--logo https://wikieducator.org/images/e/ef/Thompson_Rivers_University.png \
http://wikieducator.org/Art_Appreciation_and_Techniques/Outline_demo \
"/Art Appreciation and Techniques"
......@@ -2,7 +2,7 @@
/* jshint node: true, multistr: true, trailing: true, esnext: true */
"use strict";
const VERSION = "0.12.0",
const VERSION = "0.12.9",
JQUERY = "http://code.jquery.com/jquery-2.1.1.min.js",
FILEPATH = "/home/www/www";
......@@ -380,7 +380,7 @@ function processPage(pi) {
href.charAt(0) === "/" &&
href.charAt(1) !== "/"
) {
$(this).attr("href", "http://wikieducator.org" + href);
$(this).attr("href", "https://wikieducator.org" + href);
}
});
$("html").find("script[src]").each(function() {
......@@ -391,7 +391,7 @@ function processPage(pi) {
href.charAt(0) === "/" &&
href.charAt(1) !== "/"
) {
$(this).attr("src", "http://wikieducator.org" + href);
$(this).attr("src", "https://wikieducator.org" + href);
}
});
// add user fetch
......@@ -421,7 +421,7 @@ function processPage(pi) {
var req = new XMLHttpRequest();
window.wgUserLoading = 1;
req.onload = gotUser;
req.open("get", "http://wikieducator.org/api.php?action=query&meta=userinfo&uiprop=realname&format=json");
req.open("get", "https://wikieducator.org/api.php?action=query&meta=userinfo&uiprop=realname&format=json");
req.send();
}());
</script>`);
......@@ -527,7 +527,7 @@ function processPage(pi) {
// if using analytics, install at the bottom of the page
if (options.siteid) {
options.tracker = options.tracker || "//stats.oeru.org";
options.tracker = options.tracker || "https://stats.oeru.org";
$("#content").append(
`[oeru_analytics type="piwik" url="${options.tracker}" id="${options.siteid}"]`
);
......@@ -548,7 +548,7 @@ function processPage(pi) {
src.indexOf("//") !== 0 &&
src.indexOf("/wp") !== 0
) {
$(this).attr("src", "http://WikiEducator.org" + src);
$(this).attr("src", "https://WikiEducator.org" + src);
}
});
$("script").remove();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment