PageSourceSearch

https://pdoffice.ro/assets/js/scripts.js

js pdoffice.ro collected 2026-10-02 01:08:22 UTC 2,888 bytes, 91 lines download raw bytes

1/*
2    Slider
3*/
4$(window).load(function() {
5    $('.flexslider').flexslider({
6        animation: "slide"
7    });
8});
9
10
11/*
12    Filterable portfolio
13*/
14jQuery(document).ready(function() {
15    $clientsHolder = $('ul.portfolio-img');
16    $clientsClone = $clientsHolder.clone(); 
17 
18    $('.filter-portfolio a').click(function(e) {
19        e.preventDefault();
20        $filterClass = $(this).attr('class');
21 
22        $('.filter-portfolio a').attr('id', '');
23        $(this).attr('id', 'active-imgs');
24 
25        if($filterClass == 'all'){
26            $filters = $clientsClone.find('li');
27        }
28        else {
29            $filters = $clientsClone.find('li[data-type~='+ $filterClass +']');
30        }
31 
32        $clientsHolder.quicksand($filters, {duration: 700}, function() {
33            $("a[rel^='prettyPhoto']").prettyPhoto({social_tools: false});
34        });
35    });
36});
37
38
39/*
40
41    
42
43    Google maps
44*/
45jQuery(document).ready(function() {
46    var position = new google.maps.LatLng(45.995288, 26.135426);
47    $('.map').gmap({'center': position,'zoom': 15, 'disableDefaultUI':true, 'callback': function() {
48            var self = this;
49            self.addMarker({'position': this.get('map').getCenter() });	
50        }
51    }); 
52});
53
54
55/*
56    Contact form
57*/
58jQuery(document).ready(function() {
59    $('.contact-form form').submit(function() {
60
61        $('.contact-form form .nameLabel').html('Name');
62        $('.contact-form form .emailLabel').html('Email');
63        $('.contact-form form .messageLabel').html('Message');
64
65        var postdata = $('.contact-form form').serialize();
66        $.ajax({
67            type: 'POST',
68            url: 'assets/sendmail.php',
69            data: postdata,
70            dataType: 'json',
71            success: function(json) {
72                if(json.nameMessage != '') {
73                    $('.contact-form form .nameLabel').append(' - <span class="violet" style="font-size: 13px; font-style: italic"> ' + json.nameMessage + '</span>');
74                }
75                if(json.emailMessage != '') {
76                    $('.contact-form form .emailLabel').append(' - <span class="violet" style="font-size: 13px; font-style: italic"> ' + json.emailMessage + '</span>');
77                }
78                if(json.messageMessage != '') {
79                    $('.contact-form form .messageLabel').append(' - <span class="violet" style="font-size: 13px; font-style: italic"> ' + json.messageMessage + '</span>');
80                }
81                if(json.nameMessage == '' && json.emailMessage == '' && json.messageMessage == '') {
82                    $('.contact-form form').fadeOut('fast', function() {
83                        $('.contact-form').append('<p><span class="violet">Köszönjük, hogy felkeresett minket!</span> Hamarosan válaszolunk.</p>');
84                    });
85                }
86            }
87        });
88        return false;
89    });
90});
91

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.