PageSourceSearch

https://penovgroup.com/themes/js/script.js

js penovgroup.com collected 2026-09-30 11:53:40 UTC 11,030 bytes, 373 lines download raw bytes

1var cufon_fonts = 'false';
2var twitter_user_name = 'envatowebdesign';
3$(document).ready(function () {
4    $('.slider_backgrounds li').each(function () {
5        var background_file = $(this).find('img').attr("src");
6        var link = $(this).find('a').attr("href");
7        image_class = $(this).attr("class");
8        var slide_image = '#fff url(' + background_file + ') no-repeat';
9        var this_slide = $('.background_image.' + image_class);
10        if (link) {
11            this_slide.css({
12                'background': slide_image,
13                'cursor': 'pointer'
14            });
15            this_slide.click(function () {
16                window.location = link;
17            });
18        } else {
19            this_slide.css('background', slide_image);
20        }
21    });
22    var slider_area;
23    var slider_buttons;
24    if ($('#slider_area').length > 0) {
25        slider_area = "#slider_area";
26        slider_buttons = "#numbers";
27        $(slider_area).cycle({
28            fx: 'fade',
29            timeout: 4000,
30            easing: 'backout',
31            pager: slider_buttons,
32            cleartype: 1,
33            pause: true,
34            pauseOnPagerHover: true,
35            pagerAnchorBuilder: function (idx) {
36                return '<a href="#" title=""><img src="themes/images/pixel.gif" width="14" heigth="14"></a>';
37            }
38        });
39    }
40});
41$(document).ready(function () {
42    $('.product_slider').cycle({
43        fx: 'fade',
44        timeout: 4000,
45        easing: 'backout',
46        pager: '.slider_buttons',
47        cleartype: 1,
48        pause: true,
49        pauseOnPagerHover: true,
50        pagerAnchorBuilder: function (idx) {
51            return '<a href="#" title=""><img src="themes/images/pixel.gif" width="14" heigth="14"></a>';
52        }
53    });
54});
55jQuery(document).ready(function () {
56    jQuery("a[rel^='prettyPhoto']").prettyPhoto({
57        animationSpeed: 'slow',
58        theme: 'light_rounded',
59        slideshow: false,
60        overlay_gallery: false
61    });
62	$('.popup').prettyPhoto({
63        animationSpeed: 'slow',
64        theme: 'light_rounded',
65        slideshow: false,
66        overlay_gallery: false
67    });
68});
69if (cufon_fonts == 'true') {
70    $(document).ready(function () {
71        Cufon.replace('h1,h2,h3,h4,h5,h6, #navigation > li > a', {
72            hover: true,
73            textShadow: '1px 1px #fff'
74        });
75        Cufon.replace('.desc .title,.banner a.big_button span,  .head_text, .banner .text', {
76            hover: true
77        });
78        Cufon.replace('.banner .text', {
79            hover: true
80        });
81        Cufon.replace('.desc .title,.cufon', {
82            hover: true
83        });
84        Cufon.replace('.top_slogan, .top_slogan h4, .top_slogan h4 a', {
85            textShadow: 'none'
86        });
87    });
88}
89$(document).ready(function () {
90    if (!$.browser.msie) {
91        $('.small_button,.medium_button').hover(function () {
92            $(this).stop().animate({
93                opacity: '0.8'
94            }, {
95                duration: 500
96            });
97        }, function () {
98            $(this).stop().css('opacity', '1');
99        });
100    }
101});
102$(document).ready(function () {
103    $('.portfolio_categories').click(function () {
104        $('.portfolio_categories').hide();
105        $('.portfolio_categories_open').stop().css({
106            display: 'block'
107        });
108    });
109    $('.portfolio_categories_open').click(function () {
110        $('.portfolio_categories_open').hide();
111        $('.portfolio_categories').stop().css({
112            display: 'block'
113        });
114    });
115});
116
117
118
119
120$(document).ready(function () {
121if ( window.innerWidth < 910 ) {
122	jQuery('#navigation ul').before('<div class="dropdown-toggle"></div>');
123	jQuery( ".dropdown-toggle" ).click(function() {
124    jQuery(this).parents('#navigation li').toggleClass("active");
125	
126	//jQuery(this).parents('.vac-item').toggleClass("active").find('.vac-item-answer').slideToggle();
127	//jQuery( ".site-header-menu" ).toggleClass( "menu-hide");
128});
129
130}
131});
132
133
134
135
136$(document).ready(function () {
137if ( window.innerWidth >= 910 ) {
138    $("#navigation li").each(function () {
139        $(this).hover(function () {
140            $(this).find('ul:first').stop().css({
141                paddingTop: "8px",
142                height: "auto",
143                overflow: "hidden",
144                display: "none"
145            }).slideDown(200, function () {
146                $(this).css({
147                    height: "auto",
148                    overflow: "visible"
149                });
150            });
151        }, function () {
152            $(this).find('ul:first').stop().slideUp(200, function () {
153                $(this).css({
154                    display: "none",
155                    overflow: "hidden"
156                });
157            });
158        });
159    });
160    $("#navigation ul ").css({
161        display: "none"
162    });
163}
164});
165$(function () {
166    $("ul.tabs").tabs("> .pane", {
167        effect: 'fade'
168    });
169    $(".accordion").tabs(".pane", {
170        tabs: 'h3',
171        effect: 'slide'
172    });
173    $(".scrollable").scrollable();
174    $(".items.big_image img").click(function () {
175        if ($(this).hasClass("active")) {
176            return;
177        }
178        var url = $(this).attr("src").replace("_t", "");
179        var wrap = $("#image_wrap").fadeTo("medium", 0.5);
180        var img = new Image();
181        img.onload = function () {
182            wrap.fadeTo("fast", 1);
183            wrap.find("img").attr("src", url);
184        };
185        img.src = url;
186        $(".items img").removeClass("active");
187        $(this).addClass("active");
188    }).filter(":first").click();
189});
190$(document).ready(function () {
191    var search_text = jQuery(".search_bar .search_text").val();
192    jQuery(".search_bar .search_text").focus(function () {
193        jQuery(".search_bar .search_text").val('');
194    });
195});
196$(document).ready(function () {
197    $(window).load(function () {
198        var portfolio_item = jQuery("a.imgeffect");
199        portfolio_item.each(function () {
200            var img_width = $(this).find('img').width();
201            var img_height = $(this).find('img').innerHeight();
202            var imageClass = $(this).attr("class");
203            $(this).prepend('<span class="imagemask ' + imageClass + '"></span>');
204            if ($.browser.msie) {
205                var p = $(this).find('img');
206                var position = p.position();
207                var PosTop = parseInt(p.css("margin-top")) + position.top;
208                var PosLeft = parseInt(p.css("margin-left")) + position.left;
209                if (!PosLeft) {
210                    PosLeft = position.left
211                };
212                $(this).find('.imagemask').css({
213                    top: PosTop + 2
214                });
215                $(this).find('.imagemask').css({
216                    left: PosLeft + 2
217                });
218            }
219            $('.imagemask', this).css({
220                width: img_width,
221                height: img_height,
222                backgroundPosition: 'right bottom'
223            });
224            if ($.browser.msie) {
225                $('.imagemask', this).css({
226                    display: 'none'
227                });
228            }
229        });
230    });
231    var image_e = $("a.imgeffect");
232    if ($.browser.msie) {
233        $(this).find('.imagemask').css({
234            display: "none"
235        });
236        image_e.mouseover(function () {
237            $(this).find('.imagemask').stop().css({
238                display: "block"
239            });
240        }).mouseout(function () {
241            $(this).find('.imagemask').stop().css({
242                display: "none"
243            });
244        });
245    } else {
246        image_e.mouseover(function () {
247            $(this).find('.imagemask').stop().animate({
248                display: "block",
249                opacity: 1
250            }, 0);
251        }).mouseout(function () {
252            $(this).find('.imagemask').stop().animate({
253                display: "none",
254                opacity: 0
255            }, 0);
256        });
257    }
258});
259$(document).ready(function () {
260    var loader = jQuery('<img src="themes/images/loading.gif" alt="..." />').appendTo(".loading").hide();
261    jQuery().ajaxStart(function () {
262        loader.show();
263    }).ajaxStop(function () {
264        loader.hide();
265    }).ajaxError(function (a, b, e) {
266        throw e;
267    });
268    jQuery.validator.messages.required = "";
269    var v = jQuery("#validate_form").validate({
270        submitHandler: function (form) {
271            jQuery(form).ajaxSubmit({
272                target: "#result"
273            });
274        }
275    });
276    jQuery("#reset").click(function () {
277        v.resetForm();
278    });
279});
280
281jQuery(document).ready(function () {
282    jQuery(".line span.top").click(function () {
283        jQuery('html, body').animate({
284            scrollTop: 0
285        }, 'slow');
286    });
287    jQuery( "#accordion" ).accordion({active:false,autoHeight: false,collapsible: true, header: 'h4'});
288});
289if ($.browser.msie) {
290    var curvyCornersNoAutoScan = true;
291    window.onload = function () {
292        var settings = {
293            tl: {
294                radius: 14
295            },
296            tr: {
297                radius: 14
298            },
299            bl: {
300                radius: 14
301            },
302            br: {
303                radius: 14
304            },
305            antiAlias: true
306        }
307        var settings2 = {
308            tl: {
309                radius: 0
310            },
311            tr: {
312                radius: 14
313            },
314            bl: {
315                radius: 0
316            },
317            br: {
318                radius: 14
319            },
320            antiAlias: true
321        }
322        var divObj = document.getElementById("myDiv");
323        curvyCorners(settings, ".background_image,.content_background");
324        curvyCorners(settings2, ".desc");
325    }
326}
327
328if (!$.browser.msie) {
329    $(function () {
330        $('.social_media_icons img').each(function () {
331            $(this).hover(function () {
332                $(this).stop().animate({
333                    opacity: 1.0
334                }, 400);
335            }, function () {
336                $(this).stop().animate({
337                    opacity: 0.4
338                }, 400);
339            })
340        });
341    });
342}
343if (!$.browser.msie) {
344    $(document).ready(function () {
345        $(".frame img").imgr({
346            radius: "8px 8px 8px 8px"
347        });
348    });
349}
350$(document).ready(function () {
351    if ($('div.taps_wrap').length > 0) {
352        var settings = {
353            autoReinitialise: true,
354            maintainPosition: false
355        };
356        var pane = $('div.taps_wrap .pane');
357        pane.jScrollPane(settings);
358    }
359});
360
361////
362$(document).ready(function () {
363jQuery( ".menu-toggle" ).click(function() {
364    jQuery( ".site-header-menu" ).toggleClass( "menu-hide");
365	jQuery( ".menu-toggle" ).toggleClass( "toggled-on");
366});
367//
368jQuery( ".close-menu" ).click(function() {
369    jQuery( ".site-header-menu" ).toggleClass( "menu-hide");
370	jQuery( ".menu-toggle" ).removeClass( "toggled-on");
371	//jQuery( ".main-menu-button" ).toggleClass( "open-menu");
372});
373});

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.