1jQuery(document).ready(function ($) { 2 "use strict"; 3 /** 4 * Tab show and hide 5 */ 6 $("body").on("click", ".fsdt-close-tab", function (e) { 7 $(".fsdt-tab.fsdt-menu-wrap").removeClass("active"); 8 $(this).closest(".fsdt-tab-data").hide(); 9 $(".fsdt-external").removeClass("fsdt-no-hover"); 10 e.stopImmediatePropagation(); 11 }); 12 13 /** 14 * icon switch case 15 */ 16 $("body").on("click", ".fsdt-open-menu", function (e) { 17 $(".fsdt-close").toggle(); 18 $(".fsdt-openn").toggle(); 19 $(".fsdt-open-menu").toggleClass("active"); 20 }); 21 22 /** 23 * tab close for template 23 and template 24 24 */ 25 $("body").on("click", ".fsdt-close", function (e) { 26 $(".fsdt-menu-wrap").removeClass("active"); 27 $(".fsdt-tab-data").hide(); 28 }); 29 30 /** 31 * tab click event 32 */ 33 $("body").on("click", ".fsdt-tab.fsdt-menu-wrap", function (event) { 34 var selector = $(this); 35 var tempDivClass = $("#fsdt-front-display-wrap").attr("class"); 36 var tempArray = tempDivClass.split(" "); 37 var temp_num = tempArray[2]; 38 if (!$(this).hasClass("fsdt-close-tab")) { 39 var tab_ref = $(this).data("tab-ref"); 40 if (!$(this).hasClass("active")) { 41 if ($(this).is(":has(.fsdt-tab-data)")) { 42 $(".fsdt-tab.fsdt-menu-wrap").removeClass("active"); 43 $(this).addClass("active"); 44 $(".fsdt-tab-data").hide(); 45 $('.fsdt-tab-data[data-tab-ref="' + tab_ref + '"]').show(); 46 47 if ( 48 temp_num == "fsdt-template-6" || 49 temp_num == "fsdt-template-7" || 50 temp_num == "fsdt-template-8" 51 52 ) { 53 $(".fsdt-external").addClass("fsdt-no-hover"); 54 } 55 } 56 } else { 57 if (!$(event.target).closest(".fsdt-tab-data").length) { 58 $('.fsdt-tab-data[data-tab-ref="' + tab_ref + '"]').toggle(); 59 selector.removeClass("active"); 60 61 if ( 62 temp_num == "fsdt-template-6" || 63 temp_num == "fsdt-template-7" || 64 temp_num == "fsdt-template-8" 65 ) { 66 $(".fsdt-external").removeClass("fsdt-no-hover"); 67 } 68 } 69 } 70 } else { 71 72 } 73 }); 74 75 $("body").on("click", ".fsdt-open-menu", function () { 76 $(".fsdt-show").toggle("slide"); 77 }); 78 $("body").on("click", function () { 79 $("p").toggleClass("main"); 80 }); 81 82 $(document).on("click", "body", function (event) { 83 if ($(event.target).closest(".fsdt-tab-data").length) { 84 if ($(this).is(":has(.fsdt-tab-data)")) { 85 $(event.target).closest(".fstp-tab-data").show(); 86 } else { 87 $(event.target).closest(".fsdt-tab-data").show(); 88 $(".fsdt-menu-wrap").removeClass("active"); 89 } 90 } else { 91 $(".fsdt-external").removeClass("fsdt-no-hover"); 92 $(".fsdt-menu-wrap").removeClass("active"); 93 $(".fsdt-tab-data").hide(); 94 } 95 }); 96 97 $(document).on("click", "fsdt-tab, .fsdt-tab-link", function (e) { 98 e.stopImmediatePropagation(); 99 }); 100});
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.