1/* ----------------- Start Document ----------------- */ 2(function($){ 3 $(document).ready(function(){ 4 5/*----------------------------------------------------*/ 6/* Tabs 7/*----------------------------------------------------*/ 8 9 var $tabsNav = $('.tabs-nav'), 10 $tabsNavLis = $tabsNav.children('li'), 11 $tabContent = $('.tab-content'); 12 13 $tabsNav.each(function() { 14 var $this = $(this); 15 16 $this.next().children('.tab-content').stop(true,true).hide() 17 .first().show(); 18 19 $this.children('li').first().addClass('active').stop(true,true).show(); 20 }); 21 22 $tabsNavLis.on('click', function(e) { 23 var $this = $(this); 24 25 if($tabsNavLis.length > 1 ) { 26 $this.siblings().removeClass('active').end().addClass('active'); 27 $this.parent().next().children('.tab-content').stop(true,true).hide().siblings( $this.find('a').attr('href') ).fadeIn(); 28 } 29 e.preventDefault(); 30 }); 31 32 33/*----------------------------------------------------*/ 34/* Accordion 35/*----------------------------------------------------*/ 36 37 var $accor = $('.accordion'); 38 39 $accor.each(function() { 40 $(this).addClass('ui-accordion ui-widget ui-helper-reset'); 41 $(this).find('h3').addClass('ui-accordion-header ui-helper-reset ui-state-default ui-accordion-icons ui-corner-all'); 42 $(this).find('div').addClass('ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom'); 43 $(this).find("div").hide().first().show(); 44 $(this).find("h3").first().removeClass('ui-accordion-header-active ui-state-active ui-corner-top').addClass('ui-accordion-header-active ui-state-active ui-corner-top'); 45 $(this).find("span").first().addClass('ui-accordion-icon-active'); 46 }); 47 48 $trigger = $accor.find('h3'); 49 50 $trigger.on('click', function(e) { 51 var location = $(this).parent(); 52 53 if( $(this).next().is(':hidden') ) { 54 $triggerloc = $('h3',location); 55 $triggerloc.removeClass('ui-accordion-header-active ui-state-active ui-corner-top').next().slideUp(300); 56 $triggerloc.find('span').removeClass('ui-accordion-icon-active'); 57 $(this).find('span').addClass('ui-accordion-icon-active'); 58 $(this).addClass('ui-accordion-header-active ui-state-active ui-corner-top').next().slideDown(300); 59 } 60 e.preventDefault(); 61 }); 62 63 64 65/*----------------------------------------------------*/ 66/* Toggle 67/*----------------------------------------------------*/ 68 69 /* $(".toggle-container").hide(); 70 $(".trigger").toggle(function(){ 71 $(this).addClass("active"); 72 }, function () { 73 $(this).removeClass("active"); 74 }); 75 $(".trigger").click(function(){ 76 $(this).next(".toggle-container").slideToggle(); 77 }); 78 79 $(".trigger.opened").toggle(function(){ 80 $(this).removeClass("active"); 81 }, function () { 82 $(this).addClass("active"); 83 }); 84 85 $(".trigger.opened").addClass("active").next(".toggle-container").show();*/ 86 87 88 89/*----------------------------------------------------*/ 90/* Alert Boxes 91/*----------------------------------------------------*/ 92 93 94 $(".notification a.close").removeAttr("href").click(function(){ 95 $(this).parent().fadeOut(200); 96 }); 97 98 99/* ------------------ End Document ------------------ */ 100}); 101 102})(this.jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.