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:
34
lod/tutorial/js/bootstrap-4-navbar.js
vendored
Normal file
34
lod/tutorial/js/bootstrap-4-navbar.js
vendored
Normal 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;
|
||||
} );
|
||||
} );
|
8
lod/tutorial/js/ext_links.js
Normal file
8
lod/tutorial/js/ext_links.js
Normal 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");
|
||||
}
|
||||
});
|
||||
});
|
13
lod/tutorial/js/header_links.js
Normal file
13
lod/tutorial/js/header_links.js
Normal 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));
|
||||
}
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user