PageSourceSearch

https://karnatakamaritime.in/wp-content/plugins/ova-portfolio/assets/js/frontend/ovapor-script.js?ver=7.1.2

js karnatakamaritime.in collected 2026-10-02 20:59:56 UTC 3,203 bytes, 109 lines download raw bytes

1/************** Popup Image**************/
2
3(function( $ ){
4	// 'use strict';
5
6	$(document).ready(function(){
7    $('.ova-load-more-por').on('click', function(){
8
9      var paged = $(this).closest('.ova_more_por').attr('data-paged');
10      var perpage = $(this).closest('.ova_more_por').attr('data-perpage');
11      var cat = $(this).closest('.ova_more_por').attr('data-cat');
12      var type = $(this).closest('.ova_more_por').attr('data-type');
13
14      var new_paged = parseInt(paged) + 1;
15      $(this).closest('.ova_more_por').attr('data-paged',new_paged);
16
17      $('.ova-load-more-por').css({'display':'none'});
18      $('.ova-loader').css({'display':'inline-block'});
19
20      jQuery.ajax({
21         url: ajax_object.ajax_url,
22         type: 'POST',
23         data: ({
24            action: 'ova_loadmore_portfolio',
25            paged: paged,
26            perpage: perpage,
27            cat: cat,
28            type: type,
29         }),
30        success: function(data){
31          if ( data ){
32
33            $('.content-por').append(data).isotope('appended', data);
34
35            $('.content-por').imagesLoaded( function() {
36              $('.content-por').isotope( 'reloadItems' ).isotope();
37
38            });
39
40            $('.ova-load-more-por').css({'display':'inline-block'});
41            $('.ova-loader').css({'display':'none'});
42
43          }else{
44            $('.ova-loader').css({'display':'none'});
45            $('.ova-nodata').css({'display':'block'});
46            $('.ova-nodata span').css({'display':'inline-block'});
47          }
48         }
49      });
50    });
51      $(".content-por").each(function(){
52        var $mcontainer = $(this);
53         $mcontainer.imagesLoaded( function() {
54
55             $mcontainer.isotope({
56                 itemSelector : '.ovapor-item',
57                 animationOptions: {
58                     duration: 750,
59                     easing: 'linear'
60                 },
61             });
62
63             if( $mcontainer.hasClass('classic-portfolio') ){
64              $mcontainer.isotope({
65                layoutMode: 'fitRows',
66                fitRows: {
67                  gutter: 30
68                },
69              })
70            }
71         });
72      })
73      
74          
75          $('.archive-por .list-cat-por li').click(function(){ 
76              
77            $(".archive-por .list-cat-por li").removeClass("active");
78            $(this).addClass("active");        
79
80              var selector = $(this).attr('data-filter'); 
81              $(".content-por").isotope({ 
82                  filter: selector, 
83                  animationOptions: { 
84                      duration: 750, 
85                      easing: 'linear', 
86                      queue: false, 
87                  } 
88              }); 
89
90              if( $(this).hasClass('classic-portfolio') ){
91                $(".content-por").isotope({
92                  layoutMode: 'fitRows',
93                  fitRows: {
94                    gutter: 30
95                  },
96                })
97              }
98            return false; 
99          }); 
100
101
102          if( $(".single-por .item-gallery > a").length > 0 ){
103            $(".single-por .item-gallery > a").fancybox({});
104          }
105
106		
107      
108   });
109})(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.