PageSourceSearch

https://www.genderconfirmation.com/wp-content/themes/GenderConfirmation/js/customjs.js?ver=161154

js genderconfirmation.com collected 2026-09-25 19:17:37 UTC 7,530 bytes, 165 lines download raw bytes

1jQuery(document).ready(function(e){jQuery(".search_icon").click(function(){e(".head_search_form").hasClass("active")?e(".head_search_form").removeClass("active"):e(".head_search_form").addClass("active")}),!e("body").hasClass("home")&&e(".module-surround").height()>400&&e(".module-surround").addClass("scrollbar_active"),e(".sidebar-right .module-surround ul.menu li a,#mega-menu-primary li a,a.mega-menu-link").click(function(e){window.onbeforeunload=null}),jQuery("#menu-item-2745").hasClass("current-menu-item")?jQuery(".module-surround ul.menu .menu-item-2745 ul.sub-menu").css("display","block"):jQuery(".module-surround ul.menu .menu-item-2745 ul.sub-menu").css("display","none"),e(document).on("click",".mega-menu-item",function(){e(".mega-menu-item").removeClass("mega-toggle-on"),e(this).addClass("mega-toggle-on")}),e("ul.sub-menu li").hasClass("current-menu-item")?""!==($curret_page=e("ul.sub-menu li.current-menu-item a").text()).trim()&&e(".curr_pagetitle").text($curret_page):""!==($curret_page=e("ul.menu li.current-menu-item a:first").text()).trim()&&e(".curr_pagetitle").text($curret_page)}),jQuery(window).scroll(function(){jQuery(window).scrollTop()>=5?jQuery(".new_header").addClass("fixed"):jQuery(".new_header").removeClass("fixed")});
2
3jQuery(document).ready(function($) {
4    $('body.page-id-8349 .faq li.q').click(function() {
5        $('li.q').not(this).removeClass('has-rotate'); 
6        $(this).toggleClass('has-rotate'); 
7    });
8    // 
9    $('body.page-id-2699 .faq li.q').click(function() {
10        $('li.q').not(this).removeClass('has-rotate'); 
11        $(this).toggleClass('has-rotate'); 
12    });
13    // 
14    $('body.page-id-3151 .faq li.q').click(function() {
15        $('li.q').not(this).removeClass('has-rotate'); 
16        $(this).toggleClass('has-rotate'); 
17    });
18    // 
19    $('body.page-id-2700 .faq li.q').click(function() {
20        $('li.q').not(this).removeClass('has-rotate'); 
21        $(this).toggleClass('has-rotate'); 
22    });
23    // 
24    $('body.page-id-2827 ul li.menu-item-11397').addClass('current-menu-item');
25    $('body.page-id-2827 ul li.menu-item-11398').addClass('current-menu-item');
26    setTimeout(function(){
27        $('body.page-id-13491 ul.faq li:first').click();
28    },1500);
29    // Slider Arrow ================
30        // Click on the link
31            // Only run on page 21339
32
33            // When the lightbox link is clicked
34            $('body.wp-singular .incision_slider .wcp-light-box').click(function() {
35
36                // Wait until Fancybox is fully shown
37                $(document).on('afterShow.fb', function(e, instance, slide) {
38
39    // Loop through all Fancybox content containers
40    $("body.wp-singular .fancybox-content").each(function() {
41
42        // Append arrows only if they don't exist
43        if ($(this).find("body.wp-singular  .custom-fancybox-nav").length === 0) {
44            $(this).append(`
45                <div class="custom-fancybox-nav" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none;">
46                    <div class="custom-prev" style="position: absolute; top: 50%; left: 10px; transform: translateY(-50%); font-size: 2em; color: white; cursor: pointer; pointer-events: all;">&#10094;</div>
47                    <div class="custom-next" style="position: absolute; top: 50%; right: 10px; transform: translateY(-50%); font-size: 2em; color: white; cursor: pointer; pointer-events: all;">&#10095;</div>
48                </div>
49            `);
50        }
51
52        // Show/hide arrows based on current slide
53        const prev = $(this).find(".custom-prev");
54        const next = $(this).find(".custom-next");
55
56        if (instance.currIndex === 0 && instance.group.length === 1) {
57            // Only one slide: hide both
58            prev.hide();
59            next.hide();
60        } else if (instance.currIndex === 0) {
61            // First slide: hide prev, show next
62            prev.hide();
63            next.show();
64        } else if (instance.currIndex === instance.group.length - 1) {
65            // Last slide: show prev, hide next
66            prev.show();
67            next.hide();
68        } else {
69            // Middle slides: show both
70            prev.show();
71            next.show();
72        }
73
74    });
75
76    // Bind click events for arrows
77    $("body.wp-singular  .custom-prev").off('click').on('click', function(e) {
78        e.stopPropagation();
79        setTimeout(function() {
80            $('[data-fancybox-prev]').trigger('click');
81        }, 500);
82    });
83
84    $("body.wp-singular  .custom-next").off('click').on('click', function(e) {
85        e.stopPropagation();
86        setTimeout(function() {
87            $('[data-fancybox-next]').trigger('click');
88        }, 500);
89    });
90
91});
92
93
94            });
95
96
97    // Slider Arrow Ends ================
98     // Move navigation inside each .fancybox-content, but only once
99    //  jQuery(document).on('afterShow.fb', function() {
100    //      $('body.page-id-21339 .fancybox-content').each(function() {
101    //          var $content = $(this);
102    //          if ($content.find('.fancybox-navigation').length === 0) {
103    //              $('.fancybox-navigation').appendTo($content);
104    //          }
105    //      });
106    // });
107    // jQuery(document).on('afterShow.fb', function() {
108    //     // Check if .fancybox-navigation is already appended to .fancybox-content
109    //     if (jQuery('body.page-id-21339 .fancybox-content').find('.fancybox-navigation').length === 0) {
110    //         // Append only if not already present
111    //         jQuery('body.page-id-21339 .fancybox-content').append(jQuery('body.page-id-21339 .fancybox-navigation'));
112    //     }
113    // });
114});
115
116
117// function togglevaginoplastyImage(element) {
118//     let img = element.querySelector("img");
119//     let overlay = element.querySelector(".overlay");
120//     let icon = element.querySelector("img");
121
122//     if (img.style.filter === "blur(0px)") {
123//         img.style.filter = "blur(20px)";
124//         overlay.style.opacity = "1"; // Hide overlay
125//         wp-content/uploads/2025/03/eye-fill.png
126//         icon.classList.replace("fa-eye", "fa-eye-slash");
127//     } else {
128//         img.style.filter = "blur(0)";
129//         overlay.style.opacity = "0"; // Show overlay
130//         icon.classList.replace("fa-eye-slash", "fa-eye");
131//     }
132// }
133
134// function togglevaginoplastyImage(element) {
135//     let img = element.querySelector("img.eye-slash");
136//    let mainImg = element.querySelector("img.main_image_blur");
137//    let overlay = element.querySelector(".overlay");
138//    const originalImage = "/wp-content/uploads/2025/03/eye-slash.png";
139//    const blurredImage = "/wp-content/uploads/2025/03/eye-fill-1.png";
140//    if (mainImg.style.filter === "blur(0px)") {
141//        mainImg.style.filter = "blur(20px)";
142//       img.src = originalImage;  // Change the image to the blurred version
143//        overlay.style.opacity = "1"; // Show the overlay
144//    } else {
145//        mainImg.style.filter = "blur(0)";
146//        img.src = blurredImage;  // Change back to the original image
147//        overlay.style.opacity = "0"; // Hide the overlay
148//    }
149// }
150
151
152
153function toggleBlur(iconElement) {
154  // Get the container where the icon was clicked
155  const container = iconElement.closest('.vaginoplasty-container');
156
157  // If found, unblur only this container
158  if (container) {
159    container.classList.remove('blurred');
160    container.classList.add('unblurred');
161
162    // Optionally hide the icon after click
163    iconElement.style.display = 'none';
164  }
165}

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.