PageSourceSearch

https://thepridela.com/wp-content/themes/balaton/assets/weart.js

js thepridela.com collected 2026-10-02 05:00:12 UTC 8,116 bytes, 154 lines download raw bytes

1(function($) {
2"use strict";
3
4  $(document).ready(function(){
5
6    $('.lazy').Lazy();
7    $("#sidebar-inner.sticky-kit").stick_in_parent({
8      offset_top: 60,
9    });
10    weart_menu();
11    weart_scrollDown();
12    weart_expand_menu();
13    weart_social();
14    weart_comment_button_hack();
15    weart_twitter_embed_hack();
16    weart_infinite_click();
17  });
18
19  function weart_menu(){
20    $('.search-indicator').on('click',function(){
21      $('.search-box').toggle();
22      $('.search-indicator i').toggleClass('fa-search fa-times')
23    });
24    // expand
25      $('.bars').on('click',function(){
26        $('#weart-mobile').toggle('fast');
27      });
28      $('#weart-mobile ul ul').on().each(function() {
29        if($(this).children().length){
30          $(this,'li:first').parent().append('<a class="expand right" href="#"><i class="fa fa-plus"></i><i class="fa fa-minus d-none"></i></a>');
31        }
32      });
33      $('#weart-mobile ul li a.expand').on("click",function(e){
34        e.preventDefault();
35        if ($(this).hasClass("clicked")) {
36          $(this).find('.fa-minus').toggleClass('d-none');
37          $(this).find('.fa-plus').toggleClass('d-none');
38          $(this).prev('ul').slideUp(300, function(){});
39          $(this).parent('li').removeClass('active');
40        } else {
41          $(this).find('.fa-minus').toggleClass('d-none');
42          $(this).find('.fa-plus').toggleClass('d-none');
43          $(this).prev('ul').slideDown(300, function(){});
44          $(this).parent('li').addClass('active');
45        }
46        $(this).toggleClass("clicked");
47      });
48      return false;
49    // end
50  }/* end of weart_menu() */
51
52  function weart_scrollDown(){
53    // vars
54    var didScroll;
55    // is scrolled?
56    $(window).scroll( function(event){ didScroll = true; } );
57    // small delay
58    setInterval(function() {
59      if (didScroll) {
60        var st = $(this).scrollTop();
61        if( st > 400){ $('#fly-over').show('fast'); }
62        else{ $('#fly-over').hide('fast'); }
63        didScroll = false;
64      }
65    }, 250);
66  }/* end of weart_scrollDown() */
67
68  function weart_expand_menu(){
69    $('.sidebar .box ul ul').on().each(function() {
70        if($(this).children().length){
71            $(this,'li:first').parent().append('<a class="expand" href="#"><i class="fa fa-plus"></i></a>');
72        }
73    });
74    $('.sidebar .box ul li a.expand').on("click",function(e){
75      e.preventDefault();
76      if ($(this).hasClass("clicked")) {
77        $(this).find('i').toggleClass('fa-plus fa-minus');
78        $(this).prev('ul').slideUp(300, function(){});
79        $(this).parent('li').removeClass('active');
80      } else {
81        $(this).find('i').toggleClass('fa-plus fa-minus');
82        $(this).prev('ul').slideDown(300, function(){});
83        $(this).parent('li').addClass('active');
84      }
85      $(this).toggleClass("clicked");
86    });
87    return false;
88  }/*end of weart_expand_menu()*/
89
90  function weart_social(){
91    var vmi = '';
92    $(".w-social li a").on().each(function(){
93      vmi = $(this).text();
94      if(  vmi === "500px" || vmi === "adn" || vmi === "amazon" || vmi === "android" || vmi === "angellist" || vmi === "apple" || vmi === "bandcamp" || vmi === "behance" || vmi === "bitbucket" || vmi === "btc" || vmi === "black-tie" || vmi === "bluetooth" || vmi === "buysellads" || vmi === "cc-amex" || vmi === "cc-diners-club" || vmi === "cc-discover" || vmi === "cc-jcb" || vmi === "cc-mastercard" || vmi === "cc-paypal" || vmi === "cc-stripe" || vmi === "cc-visa" || vmi === "chrome" || vmi === "codepen" || vmi === "codiepie" || vmi === "connectdevelop" || vmi === "contao" || vmi === "css3" || vmi === "dashcube" || vmi === "delicious" || vmi === "deviantart" || vmi === "digg" || vmi === "dribbble" || vmi === "dropbox" || vmi === "drupal" || vmi === "edge" || vmi === "eercast" || vmi === "empire" || vmi === "envira" || vmi === "etsy" || vmi === "expeditedssl" || vmi === "font-awesome" || vmi === "facebook" || vmi === "firefox" || vmi === "first-order" || vmi === "flickr" || vmi === "font-awesome" || vmi === "fonticons" || vmi === "fort-awesome" || vmi === "forumbee" || vmi === "foursquare" || vmi === "free-code-camp" || vmi === "get-pocket" || vmi === "gg" || vmi === "git" || vmi === "github" || vmi === "gitlab" || vmi === "glide" || vmi === "google" || vmi === "google-plus" || vmi === "google-wallet" || vmi === "gratipay" || vmi === "grav" || vmi === "hacker-news" || vmi === "houzz" || vmi === "html5" || vmi === "imdb" || vmi === "instagram" || vmi === "internet-explorer" || vmi === "ioxhost" || vmi === "
94joomla" || vmi === "jsfiddle" || vmi === "lastfm" || vmi === "leanpub" || vmi === "linkedin" || vmi === "linode" || vmi === "linux" || vmi === "maxcdn" || vmi === "meanpath" || vmi === "medium" || vmi === "meetup" || vmi === "mixcloud" || vmi === "modx" || vmi === "odnoklassniki" || vmi === "opencart" || vmi === "openid" || vmi === "opera" || vmi === "optin-monster" || vmi === "pagelines" || vmi === "paypal" || vmi === "pied-piper" || vmi === "pinterest" || vmi === "product-hunt" || vmi === "qq" || vmi === "quora" || vmi === "ravelry" || vmi === "rebel" || vmi === "reddit" || vmi === "renren" || vmi === "rebel" || vmi === "safari" || vmi === "scribd" || vmi === "sellsy" || vmi === "shirtsinbulk" || vmi === "simplybuilt" || vmi === "skyatlas" || vmi === "skype" || vmi === "slack" || vmi === "slideshare" || vmi === "snapchat" || vmi === "soundcloud" || vmi === "spotify" || vmi === "stack-exchange" || vmi === "stack-overflow" || vmi === "steam" || vmi === "steam-square" || vmi === "stumbleupon" || vmi === "superpowers" || vmi === "telegram" || vmi === "tencent-weibo" || vmi === "themeisle" || vmi === "trello" || vmi === "tripadvisor " || vmi === "tumblr" || vmi === "twitch" || vmi === "twitter" || vmi === "usb" || vmi === "viacoin" || vmi === "viadeo" || vmi === "vimeo" || vmi === "vine" || vmi === "vk" || vmi === "wechat " || vmi === "weibo" || vmi === "whatsapp" || vmi === "wikipedia-w" || vmi === "windows" || vmi === "wordpress" || vmi === "wpbeginner" || vmi === "wpexplorer" || vmi === "wpforms" || vmi === "xing" || vmi === "yahoo" || vmi === "yelp" || vmi === "yoast" || vmi === "youtube" ){
95        $(this).empty();
96        $(this).prepend('<i class="fab fa-'+vmi+'"></i>');
97      }else{
98        $(this).parent().remove();
99      }
100    });
101    $(".w-social").toggleClass('d-none d-md-flex');
102    return false;
103  }// END OF weart_social()
104
105  function weart_twitter_embed_hack(){
106    $(".article-content .twitter-tweet").parent().removeClass("embed-responsive-16by9");
107    $(".article-content #fb-root").parent().removeClass("embed-responsive-16by9 embed-responsive").addClass("mw-100 pb-3");
108    $(".article-content .instagram-media").parent().removeClass("embed-responsive-16by9 embed-responsive");
109  }/*end of weart_twitter_embed_hack()*/
110
111  function weart_comment_button_hack(){
112    $('button#llc_comments_button').addClass('text-uppercase px-3 py-2 rounded-0 w-50 f-meta btn btn-outline-dark');
113  }/*end of weart_comment_button_hack()*/
114
115  function weart_infinite_click(){
116    var container = $('.grid');
117
118    container.infinitescroll(
119      // infinitescroll
120        {
121          navSelector: ".infinite-nav",
122          nextSelector: ".infinite-nav a:first",
123          itemSelector: ".grid-item",
124          errorCallback: function(){ $(".infinite-more").css("display", "none");  },
125          loading: {
126            msgText: '',
127            finishedMsg: '',
128          },
129        },
130      // end
131
132      function( newElements ) {
133        $('.lazy').Lazy();
134      },
135
136    );
137
138    $(window).unbind(".infscr");
139    $(".infinite-more").on('click',function(){
140      container.infinitescroll("retrieve")
141      return false;
142    });
143
144    $(window).load(function(){
145      if ($(".infinite-nav a").length) {
146        $(".infinite-more").css("display","inline-block");
147      } else {
148        $(".infinite-more").css("display","none");
149      }
150    });
151
152  }/* weart_infinite_click() */
153
154})( 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.