PageSourceSearch

https://edusoft.co.nz/wp-content/plugins/mas-addons/assets/js/widgets/content-swither.js

js edusoft.co.nz collected 2026-10-03 20:10:06 UTC 974 bytes, 25 lines download raw bytes

1(function ($) {
2    "use strict";
3    $(window).on('elementor/frontend/init', function () {
4        elementorFrontend.hooks.addAction('frontend/element_ready/mas-content-switcher.default', function ($scope) {
5            var main_switch = $scope.find('.mas-content-switcher-toggle-switch');
6            var main_switch_span = main_switch.find('.mas-content-switcher-toggle-switch-slider');
7
8            var content_1 = $scope.find('.mas-content-switcher-primary-wrap');
9            var content_2 = $scope.find('.mas-content-switcher-secondary-wrap');
10
11            if (main_switch_span.is(':checked')) {
12                content_1.hide();
13                content_2.show();
14            } else {
15                content_1.show();
16                content_2.hide();
17            }
18            main_switch_span.on('click', function (e) {
19                content_1.toggle();
20                content_2.toggle();
21            });
22        });
23
24    });
25})(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.