PageSourceSearch

https://pakistanhinducouncil.org/wp-content/plugins/bdaia-shortcodes/assets/js/scripts.js

js pakistanhinducouncil.org collected 2026-10-02 13:54:29 UTC 2,174 bytes, 59 lines download raw bytes

1/**
2 * document ready
3 * ========================================================= */
4
5;(function ($) { 'use strict';
6
7    $(document).ready(function($)
8    {
9        jQuery( 'div.bdaia-flip-container').hover( function (e) {
10            jQuery(this).toggleClass('hover', e.type === 'mouseenter');
11        });
12
13
14        jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
15            return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
16        };
17
18        jQuery("h4.toggle-head-open").click(function () {
19            jQuery(this).parent().find("div.toggle-content").stop().slideToggle(400, 'swing', function() {});
20            jQuery(this).hide();
21            jQuery(this).parent().find("h4.toggle-head-close").show();
22            return false;
23        });
24        jQuery("h4.toggle-head-close").click(function () {
25            jQuery(this).parent().find("div.toggle-content").stop().slideToggle(400, 'swing', function() {});
26            jQuery(this).hide();
27            jQuery(this).parent().find("h4.toggle-head-open").show();
28            return false;
29        });
30
31        jQuery('.tooltip-nw').tipsy({fade: true, gravity: 'nw'});
32        jQuery('.tooltip-ne').tipsy({fade: true, gravity: 'ne'});
33        jQuery('.tooltip-w' ).tipsy({fade: true, gravity: 'w' });
34        jQuery('.tooltip-e' ).tipsy({fade: true, gravity: 'e' });
35        jQuery('.tooltip-sw').tipsy({fade: true, gravity: 'w' });
36        jQuery('.tooltip-se').tipsy({fade: true, gravity: 'e' });
37        jQuery('.ttip, .tooltip-n'	  ).tipsy({fade: true, gravity: 's'});
38        jQuery('.tooldown, .tooltip-s').tipsy({fade: true, gravity: 'n'});
39    });
40
41    $(window).resize(function() {
42        bdaia_shorty_set_height();
43    });
44
45    $(window).load(function () {
46        bdaia_shorty_set_height();
47    });
48
49})(jQuery);;
50
51
52/**
53 * Set min height
54 * ========================================================= */
55;function bdaia_shorty_set_height()
56{
57    var windowHeight = jQuery("div.bdaia-flip-container .bdaia-back").innerHeight();
58    jQuery("div.bdaia-flip-container .bdaia-flipper, div.bdaia-flip-container .bdaia-back").css('min-height', windowHeight);
59};;

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.