PageSourceSearch

http://www.lifeologia.com/wp-content/themes/skyfashion/common/js/scripts.js

js lifeologia.com collected 2026-10-04 17:52:20 UTC 10,131 bytes, 244 lines download raw bytes

1var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
2if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
3{
4  let window = _____WB$wombat$assign$function_____("window");
5  let self = _____WB$wombat$assign$function_____("self");
6  let document = _____WB$wombat$assign$function_____("document");
7  let location = _____WB$wombat$assign$function_____("location");
8  let top = _____WB$wombat$assign$function_____("top");
9  let parent = _____WB$wombat$assign$function_____("parent");
10  let frames = _____WB$wombat$assign$function_____("frames");
11  let opener = _____WB$wombat$assign$function_____("opener");
12
13/***** On DOM load *********/
14jQuery(document).ready(function ($) {
15    /******* SOCIAL *********/
16    social_quantity = $('#header .socials a').length;
17    social_height = Math.ceil(social_quantity / ( parseInt($('#header .socials').width()) / 39 )) * 39;
18    if (social_height > 39) {
19        $('#header .socials .slide').hover(function () {
20            $(this).animate({
21                height:social_height
22            }, 300, 'swing');
23        }, function () {
24            $(this).animate({
25                height:'32'
26            }, 200, 'swing');
27        });
28    }
29    if ($.browser.msie) {
30        //no opacity on png!
31    }
32    else {
33        $('#header .socials a').css('opacity', '0.6').hover(function () {
34                $(this).fadeTo(300, 1);
35            },
36            function () {
37                $(this).fadeTo(300, 0.6);
38            })
39    }
40    /******* PORTFOLIO ELASTIC **********/
41    if ($('.portfolio-elastic .item').length) {
42        $container_1 = $('.portfolio-elastic');
43        $container_1.imagesLoaded(function () {
44            $container_1.masonry({
45                itemSelector:'.item:visible',
46                isAnimated:true,
47                animationOptions:{
48                    duration:350,
49                    easing:'linear',
50                    queue:false
51                }
52            });
53        });
54        equalHeight($(".portfolio_desc_below"));
55    }
56    if ($('#variant-liquid').length) {
57        $container_2 = $('#variant-liquid');
58        $container_2.imagesLoaded(function () {
59            $container_2.masonry({
60                itemSelector:'.liquid-item',
61                isAnimated:!Modernizr.csstransitions,
62                animationOptions:{
63                    duration:750,
64                    easing:'linear',
65                    queue:false
66                }
67            });
68        });
69    }
70    function equalHeight(group) {
71        var tallest = 0;
72        group.each(function () {
73            var thisHeight = $(this).height();
74            if (thisHeight > tallest) {
75                tallest = thisHeight;
76            }
77        });
78        group.height(tallest);
79    }
80    /******* PORTFOLIO DYNAMIC SORTING *******/
81    if ($('#portfolioList.dynamic').length) {
82        $('#portfolioList a').click(function (event) {
83            event.preventDefault();
84            $('#portfolioList a.selected').removeClass('selected');
85            items_class = $(this).attr('class');
86            $(this).addClass('selected');
87            if (items_class == 'portfolio_cat-all') {
88                $('.portfolio-elastic > div.item').fadeIn(300);
89                $('.portfolio-elastic > div.item').promise().done(function () {
90                    $('.portfolio-elastic').masonry({
91                        itemSelector:'.item:visible'
92                    }).masonry('reload');
93                });
94            }
95            else {
96                $('.portfolio-elastic > div.item').not('.' + items_class).fadeOut(300);
97                $('.portfolio-elastic > div.' + items_class).fadeIn(300);
98                $('.portfolio-elastic > div.item').promise().done(function () {
99                    $('.portfolio-elastic').masonry({
100                        itemSelector:'.item:visible'
101                    }).masonry('reload');
102                });
103            }
104        })
105    }
106    /* Accordion */
107    $(".acc_content").hide();
108    $(".acc_title:first").addClass("active_acc menu_line_top link_hover");
109    $(".acc_content:first").show();
110    $(".acc_title").click(function () {
111        $(".acc_title").removeClass("active_acc  menu_line_top link_hover"); //Remove any "active" class
112        $(this).addClass("active_acc  menu_line_top link_hover"); //Add "active" class to selected tab
113        $(".acc_content").hide(); //Hide all tab content
114        var activeTab = $(this).parent(); //Find the rel attribute value to identify the active tab + content
115        activeTab = $(activeTab).children(".acc_content"); //Fade in the active content
116        $(activeTab).fadeIn();
117        return false;
118    });
119    $(".acc_title").hover(function () {
120            $(this).addClass("link_hover");
121        },
122        function () {
123            if (!$(this).hasClass('active_acc')) {
124                $(this).removeClass("link_hover");
125            }
126        }
127    );
128    /******* TABS *********/
129        //Default Action
130    $(".tab_content").hide(); //Hide all content
131    $("ul.tabs li:first").addClass("active menu_line_top").show(); //Activate first tab
132    $(".tab_content:first").show(); //Show first tab content
133    //On Click Event
134    $("ul.tabs li").click(function () {
135        $("ul.tabs li").removeClass("active  menu_line_top"); //Remove any "active" class
136        $(this).addClass("active  menu_line_top"); //Add "active" class to selected tab
137        $(".tab_content").hide(); //Hide all tab content
138        var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
139        $(activeTab).fadeIn(); //Fade in the active content
140        return false;
141    });
142    /******* ALPHA SCOPE *********/
143    if ($('.alpha-scope').length) {
144        $('.alpha-scope').each(function () {
145            if ($(this).hasClass('alpha-scope-double-icon') || $(this).hasClass('alpha-scope-single-icon')) {
146                $('<span class="alpha-scope-all"><span class="alpha-scope-bg"></span></span>').appendTo(this).hide();
147                $(this).find('a').appendTo($(this).children('.alpha-scope-all'));
148            }
149            else {
150                $('<span class="alpha-scope-all"><span class="alpha-scope-bg"></span><span class="alpha-scope-icon"></span></span>').appendTo(this).hide();
151            }
152            $('.alpha-scope-bg').css('opacity', '0.5');
153            $('.alpha-scope').hover(function () {
154                $(this).children('span').fadeIn(300);
155            }, function () {
156                $(this).children('span').fadeOut(300);
157            });
158        });
159    }
160    /** Comment validation ***/
161    if ($('#commentform').length) {
162        //fix for not submiting form after check http://jibbering.com/faq/names/
163        $('#comment-submit').attr('name', 'othername');
164        $('#commentform').addClass('styled-form').removeClass('validated').submit(function (e) {
165            if ($(this).hasClass('validated')) {
166                return true;
167            }
168            else {
169                e.preventDefault();
170                error_number = 0;
171                $(this).find('input.required, textarea').each(function () {
172                    if ($.trim($(this).val()) == '') {
173                        $(this).addClass('error');
174                        error_number++;
175                        return;
176                    }
177                    if ($(this).is('#email')) {
178                        var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
179                        if ($(this).val().search(emailRegEx) == -1) {
180                            $(this).addClass('error');
181                            error_number++;
182                            return;
183                        }
184                    }
185                    // everythin ok
186                    $(this).removeClass('error');
187                });
188                if (error_number == 0) {
189                    $(this).addClass('validated').submit();
190                }
191            }
192        });
193    }
194    /** Contact validation ***/
195    if ($('.contact-form').length) {
196        $('.contact-form').removeClass('validated').submit(function (e) {
197            if ($(this).hasClass('validated')) {
198                return true;
199            }
200            else {
201                e.preventDefault();
202                error_number = 0;
203                $(this).find('input[type="text"], textarea').each(function () {
204                    if ($.trim($(this).val()) == '' && $(this).attr(id) != 'apollo13-contact-subject') {
205                        $(this).addClass('error');
206                        error_number++;
207                        return;
208                    }
209                    if ($(this).is('#email')) {
210                        var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
211                        if ($(this).val().search(emailRegEx) == -1) {
212                            $(this).addClass('error');
213                            error_number++;
214                            return;
215                        }
216                    }
217                    // everythin ok
218                    $(this).parent().removeClass('error');
219                    $('div#message_send').fadeIn(800);
220                });
221                if (error_number == 0) {
222                    $(this).addClass('validated').submit();
223                }
224            }
225        });
226    }
227    $('a.alpha-scope').hover(
228        function () {
229            var children = $(this).children('div.fancybox_hover');
230            if (children.length == 0) {
231                var content = '<div class="fancybox_hover"></div>';
232                $(this).stop(true, true).append(content);
233            }
234            var height = $(this).children('img').height();
235            $(this).children('div.fancybox_hover').height(height);
236            $(this).children('div.fancybox_hover').stop(true, true).fadeIn();
237        },
238        function () {
239            $(this).children('div.fancybox_hover').stop(true, true).fadeOut();
240        }
241    );
242});
243
244}

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.