bachelor-thesis/pgBadger/pgreport_nosoftopenjpa3/12/pgbadger_slide.min.js

3 lines
1.6 KiB
JavaScript
Raw Normal View History

2024-11-03 14:37:21 +01:00
jQuery(function(){jQuery("#pgbadger-brand").tooltip();jQuery("#pop-infos").popover("hide");jQuery(".slide").hide();jQuery(".active-slide").show();var a=location.hash;if(a){a=a.substring(1);var d=document.getElementById(a);var c=jQuery(d).parent().attr("id");if(c!=undefined){var b="#"+c;jQuery("#main-container li.slide").removeClass("active-slide").hide();jQuery(b).addClass("active-slide").fadeIn();window.location.hash="#"+a}}jQuery(".navbar li.dropdown").click(function(){var g=jQuery(this).attr("id");g=g.substring(5);var e="#"+g+"-slide";var f=jQuery("#main-container .active-slide").attr("id");f="#"+f;if(e!=f){jQuery("#main-container li.slide").removeClass("active-slide").hide();jQuery(e).addClass("active-slide").fadeIn()}scrollTo(0,0);draw_charts()});jQuery(".navbar li ul li").click(function(){var f=jQuery(this).parent().parent().attr("id");var g=f.substring(5);var e="#"+g+"-slide";jQuery("#main-container li.slide").removeClass("active-slide").hide();jQuery(e).addClass("active-slide").fadeIn();draw_charts()});draw_charts()});jQuery(document).ready(function(){jQuery(".sql").dblclick(function(){if(this.style==undefined||this.style.whiteSpace=="pre"){this.style.whiteSpace="normal"}else{this.style.whiteSpace="pre"}});jQuery(".icon-copy").click(function(){var e=$(this).parent()[0];if(window.getSelection){var d=window.getSelection();d.removeAllRanges();var b=document.createRange();b.selectNodeContents(e);d.addRange(b)}else{if(document.selection){var c=document.body.createTextRange();c.moveToElementText(e);c.select()}}});function a(){scrollBy(0,-50)}if(location.hash){a()}window.addEventListener("hashchange",a)});