1
0
mirror of https://github.com/gsi-upm/sitc synced 2025-08-23 02:02:20 +00:00

added tutorial SPARQL

This commit is contained in:
cif2cif
2021-02-18 18:10:59 +01:00
parent 7271b5e632
commit 8b6d6de169
45 changed files with 7502 additions and 0 deletions

34
lod/tutorial/js/bootstrap-4-navbar.js vendored Normal file
View File

@@ -0,0 +1,34 @@
/*!
* Bootstrap 4 multi dropdown navbar ( https://bootstrapthemes.co/demo/resource/bootstrap-4-multi-dropdown-navbar/ )
* Copyright 2017.
* Licensed under the GPL license
*/
$( document ).ready( function () {
$( '.mobile-drop a.dropdown-toggle' ).on( 'click', function ( e ) {
var $el = $( this );
var $parent = $( this ).offsetParent( ".mobile-drop" );
if ($('.show.mobile-drop').length > 0){
$('.show.mobile-drop').each(function(item){
$(this).toggleClass('show');
});
}
var $subMenu = $( this ).next( ".mobile-drop" );
$subMenu.toggleClass( 'show' );
$( this ).parent( "li" ).toggleClass( 'show' );
$( this ).parents( 'li.nav-item.dropdown.mobile-drop.show' ).on( 'click', function ( e ) {
$( '.mobile-drop .show' ).removeClass( "show" );
} );
if ( !$parent.parent().hasClass( 'navbar-nav' ) ) {
$el.next().css( { "top": $el[0].offsetTop, "left": $parent.outerWidth() - 4 } );
}
return false;
} );
} );

View File

@@ -0,0 +1,8 @@
$(document).ready(function() {
$('a').each(function() {
var a = new RegExp('/' + window.location.host + '/');
if (!a.test(this.href)) {
$(this).attr("target","_blank");
}
});
});

View File

@@ -0,0 +1,13 @@
// http://ben.balter.com/2014/03/13/pages-anchor-links/
$(function() {
return $("h2, h3, h4, h5, h6").each(function(i, el) {
var $el, icon, id;
$el = $(el);
id = $el.attr('id');
icon = '<i class="fa fa-link" style="font-size: 0.8em"></i>';
if (id) {
return $el.append($("<a />").addClass("header-link").attr("href", "#" + id).html(icon));
}
});
});