PageSourceSearch

https://info.nyif.com/wp-content/plugins/mighty-addons/assets/js/wrapper-link.js?ver=1.9.2

js nyif.com collected 2026-09-24 19:07:23 UTC 1,077 bytes, 44 lines download raw bytes

1(function ($) {
2  "use strict";
3
4  var Mighty_Addons = {
5
6    Mighty_WrapperLink: function ( $scope, $ ) {
7
8      if( $scope.data( 'mt-wrapperlink' ) || $scope.data( 'mt-hashed-wrapperlink' ) ) {
9
10        var isExternal = $scope.data( 'mt-wrapperlink-external' );
11
12        if ( ! $scope.data( 'mt-wrapperlink' ) ) {
13          return;
14        }
15
16        
17        $scope.on( 'click', function( e ) {
18          e.stopPropagation();
19
20          let url = this.getAttribute( 'data-mt-wrapperlink' );
21
22          if ( isExternal ) {
23            window.open( url, '_blank' );
24          } else {
25            if ( $scope.data( 'mt-wrapperlink' ) ) {
26              window.location.href = url;
27            } else {
28              $( 'html, body' ).animate( { scrollTop: $( url ).offset().top }, 1000 );
29            }
30          }
31        });
32
33      }
34    }
35
36  }
37
38  $(window).on('elementor/frontend/init', function () {
39
40    elementorFrontend.hooks.addAction( 'frontend/element_ready/global', Mighty_Addons.Mighty_WrapperLink );
41
42  });
43
44})(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.