Commit 2b72c8ce authored by Paul Hibbitts's avatar Paul Hibbitts

Theme updates.

parent 53ba3b2d
# v2.0.4
## 02/02/2018
1. [](#improved)
* Updated global handling of 'chromeless' and 'hidepagetitle' URL flags (thanks Ricardo)
# v2.0.3
## 02/01/2018
......
name: Course Hub Bootstrap
version: 2.0.3
version: 2.0.4
description: "A customized version of the Bootstrap theme (built with Bootstrap 3) for use with the Grav Course Hub skeleton package."
icon: university
author:
......
$(document).ready(function(){
$("a.newwindow").attr("target","_blank");
$("a.topwindow").attr("target","_top");
$('.container').on('click', 'a:not(.external-link):not([href^="#"])', function(e){
e.preventDefault();
var url = window.location.href;
if (url.indexOf("chromeless:true") >= 0) {
var clickedLink = $(this).attr('href') + "/chromeless:true";
window.location.href = clickedLink;
}else {
$('.container').on('click', 'a:not(.external-link):not([href^="#"])', function(e){
e.preventDefault();
var url = window.location.href;
var newurl = $(this).attr('href');
window.location.href = $(this).attr('href');
if (url.indexOf("chromeless:true") >= 0) {
newurl = newurl + "/chromeless:true";
}
}
});
if (url.indexOf("hidepagetitle:true") >= 0) {
newurl = newurl + "/hidepagetitle:true";
}
window.location.href = newurl;
});
});
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