PageSourceSearch

https://apartments.com.gh/oc-content/plugins/blog/js/user.js?v=20260924120726

js apartments.com.gh collected 2026-09-24 10:07:42 UTC 1,934 bytes, 67 lines download raw bytes

1$(document).ready(function() {
2
3  // WIDGET HOVER EFFECT - ON
4  $('body').on('mouseenter', '.blg-card-link', function(e){
5    $(this).parent().find('.blg-img-div > div').stop(false, false).animate({height: "120%",width:"120%",left:"-10%",top:"-10%"});
6  });
7
8
9  // WIDGET HOVER EFFECT - OFF
10  $('body').on('mouseleave', '.blg-card-link', function(e){
11    $(this).parent().find('.blg-img-div > div').stop(false, false).animate({height: "100%",width:"100%",left:"0",top:"0"});
12  });
13
14
15  // LIGHT GALLERY
16  if(typeof $.fn.lightGallery !== 'undefined') { 
17    $('.blg-primary-img').lightGallery({
18      mode: 'lg-fade',
19      thumbnail:true,
20      cssEasing : 'cubic-bezier(0.25, 0, 0.25, 1)',
21      download: false,
22      share: false
23    }); 
24  }
25
26
27  // CHANGE FILE INPUT NAME
28  $('input[name="image"]').change(function() {
29    if( $(this)[0].files[0]['name'] != '' ) {
30      $('.blg-att .wrap > span').text( $(this)[0].files[0]['name'] );
31    }
32  });
33
34
35  // REMOVE IS_BLANK CLASS
36  $('body').on('click', 'input#s_slug', function(e){
37    $(this).removeClass('is_blank');
38  });
39
40
41  // BLOG SLUG
42  $('body').on('keyup keypress keydown', '.blg-publish input#s_slug', function(e){
43    var slug = this.value.replace(/\s/g, '-').toLowerCase();
44
45    if(slug.match(/[^a-zA-Z0-9_-]/g)) {
46      this.value = slug.replace(/[^a-zA-Z0-9_-]/g, '');
47    } else {
48      this.value = slug;
49    }    
50  });
51
52  $('body').on('keyup keypress keydown', '.blg-publish input#s_title', function(e){
53    if($('.blg-publish input#s_slug').val() == '') {
54      $('.blg-publish input#s_slug').addClass('is_blank');
55    }
56
57    if($('.blg-publish input#s_slug').hasClass('is_blank')) {
58      var slug = this.value.replace(/\s/g, '-').toLowerCase();
59      
60      if(slug.match(/[^a-zA-Z0-9_-]/g)) {
61        $('.blg-publish input#s_slug').val(slug.replace(/[^a-zA-Z0-9_-]/g, ''));
62      } else {
63        $('.blg-publish input#s_slug').val(slug);
64      }
65    }
66  });
67});

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.