Skip to content
Snippets Groups Projects
Commit 92dd2cde authored by root's avatar root
Browse files

inserted INEL help content and images

parent ed6fc3ef
Branches
No related tags found
No related merge requests found
images/bib-search.png

34.8 KiB

images/catalogue-columns-display.png

28 KiB

images/catalogue-export.png

30.6 KiB

images/catalogue-graph-basic.png

42.2 KiB

images/catalogue-graph-browse.png

90.2 KiB

images/catalogue-search.png

34.9 KiB

images/hzsk-repository-corpus-box.png

65.6 KiB

images/hzsk-repository-corpus-sessions.png

93.3 KiB

images/hzsk-repository-corpus-tabs.png

29 KiB

images/hzsk-repository-disco-juice.png

132 KiB

images/login-button.png

1.45 KiB

This diff is collapsed.
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
function analyzeHash(){
/* analyze URL for hopping to requested subsection directly */
var hash = window.location.hash.substr(1);
/* if hash is present in URL, that means a subsection is requested */
if(null!=hash && hash!=''){
var tabButton = $('ul.nav-pills').children('li').children('a[href="#'+hash+'"]');
/* if hash refers to major topic (there must be an a[data-toggle=tab]) */
if(tabButton.length > 0){
/* close all tabs */
$('.tab-pane').removeClass('active in');
/* open major topic */
$(tabButton).tab('show');
}
/* if no major topic was referred to by hash, it must be a subtopic */
else{
console.log('Hash: "'+hash+'"');
var requestedDiv = $('#'+hash);
/* open parent panel */
var parentPanel = $('#'+hash).parent();
console.log("parentPanel");
console.log(parentPanel);
if(!parentPanel.hasClass('active')){
$('ul.nav-pills').children('li').removeClass('active');
$('ul.nav-pills').children('li').has('a[href="#'+$(parentPanel).attr('id')+'"]').addClass('active');
$('.tab-pane').removeClass('active in');
parentPanel.addClass('active in');
}
/* collapse all other subsections */
$(parentPanel).children('div').each(function(i) {
var $this = $(this);
if(!$this.hasClass('panel-collapsed') && $this.attr('id')!=hash){
$this.children('.panel-body').css("display", "none");
$this.addClass('panel-collapsed');
$this.find('i').removeClass('glyphicon-chevron-up').addClass('glyphicon-chevron-down');
}
});
/* expand requested entry */
$(requestedDiv).each(function(i) {
var $this = $(this);
if(!$this.hasClass('panel-collapsed')){
$this.children('.panel-body').css("display", "block");
$this.addClass('panel-collapsed');
$this.find('i').removeClass('glyphicon-chevron-up').addClass('glyphicon-chevron-down');
}
});
}
}
}
$(document).ready( function( ) {
/* analyze GET parameter for language, and set body's lang attribute accordingly */
var language = getParameterByName('lang');
document.querySelector('body').setAttribute('lang', language);
document.querySelector('body').setAttribute('xml:lang', language);
/* analyze URL for hash, and change display of subsections if present*/
analyzeHash();
$(document).on('click', '.panel div.clickable', function (e) {
console.log(this);
var $this = $(this);
if (!$this.hasClass('panel-collapsed')) {
/* collapse section */
$this.parents('.panel').find('.panel-body').slideUp();
$this.addClass('panel-collapsed');
$this.find('i').removeClass('glyphicon-chevron-up').addClass('glyphicon-chevron-down');
} else {
/* expand section */
$this.parents('.panel').find('.panel-body').slideDown();
$this.removeClass('panel-collapsed');
$this.find('i').removeClass('glyphicon-chevron-down').addClass('glyphicon-chevron-up');
}
});
$(window).bind( 'hashchange', function(e) {
analyzeHash();
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment