PageSourceSearch

https://www.weddingku.id/wp-content/themes/weddingku/js/main.js

js weddingku.id collected 2026-09-29 07:06:06 UTC 8,981 bytes, 278 lines download raw bytes

1(function($) {
2    'use strict';
3    
4    if ($('.header-middle-area').height() > 81) {
5        $('.breadcrumb-area').css('margin-top',90);
6    }
7
8    $('.portfolio-filter li').on('click', function(event) {
9        $(this).siblings('.active').removeClass('active');
10        $(this).addClass('active');
11        event.preventDefault();
12    });
13
14    var $masonry = $('.portfolio-masonry');
15    if (typeof imagesLoaded == 'function') {
16        imagesLoaded($masonry, function() {
17            setTimeout(function() {
18                $masonry.isotope({
19                    itemSelector: '.portfolio-item',
20                    resizesContainer: false,
21                    layoutMode: 'masonry',
22                    filter: '*'
23                });
24            }, 500);
25
26        });
27    };
28
29    $('.portfolio-filter').on('click', 'a', function() {
30        $(this).addClass('current');
31        var filterValue = $(this).attr('data-filter');
32        $(this).parents('.portfolio-filter-wrap').next().isotope({
33            filter: filterValue
34        });
35    });
36
37    var $blog = $('.blog-masonry');
38    if ($.fn.imagesLoaded && $blog.length > 0) {
39        imagesLoaded($blog, function() {
40            setTimeout(function() {
41                $blog.isotope({
42                    itemSelector: '.post-grid-item',
43                    layoutMode: 'masonry'
44                });
45            }, 500);
46
47        });
48    } 
49
50	$('body').append('<a id="back-to-top" class="to-top-btn" href="#"><i class="fa fa-angle-up"></i></a>');
51	if ($('#back-to-top').length) {
52		var scrollTrigger = 100, // px
53			backToTop = function () {
54				var scrollTop = $(window).scrollTop();
55				if (scrollTop > scrollTrigger) {
56					$('#back-to-top').addClass('to-top-show');
57				} else {
58					$('#back-to-top').removeClass('to-top-show');
59				}
60			};
61		backToTop();
62		$(window).on('scroll', function () {
63			backToTop();
64		});
65		$('#back-to-top').on('click', function (e) {
66			e.preventDefault();
67			$('html,body').animate({
68				scrollTop: 0
69			}, 500);
70		});
71	};
72
73    $(window).on('load', function() {
74        $('#preloader').delay(350).fadeOut('slow'); 
75        $('body').delay(350).css({'overflow':'visible'});
76    })
77
78    $(window).on('scroll', function () {
79        var wSize = $(window).width();
80        if (wSize > 1 && $(this).scrollTop() > 1) {
81            $('#sticky-header').addClass('sticky');
82        }
83        else {
84            $('#sticky-header').removeClass('sticky');
85        }
86    });
87
88    $('.hamburger').on('click', function() {
89        $(this).toggleClass('is-active');
90        $(this).next().toggleClass('nav-show')
91    });
92    $('.menu-button a').on('click', function() {
93        $('.overlay').fadeToggle(300);
94        $(this).toggleClass('btn-open').toggleClass('btn-close');
95    });
96    $('.overlay').on('click', function() {
97        $('.menu-button').fadeToggle(300);
98        $('.button a').toggleClass('btn-open').toggleClass('btn-close');
99        open = false;
100    });
101
102    $('.flay-out-menu-btn').on('click', function() {
103        $('.header-left').toggleClass('flay-header-in');
104        $(this).toggleClass('flay-close');
105    });
106
107    $('#sidebar-menu').treeview({
108        animated: 'medium',
109        collapsed: true,
110        unique: true,
111        toggle: function() {
112            window.console && console.log('%o was toggled', this);
113        }
114    });
115
116    new WOW().init();
117
118    $('.panel-heading a').on('click',function(e){
119        if($(this).parents('.panel').children('.panel-collapse').hasClass('in')){
120            e.stopPropagation();
121        }
122        e.preventDefault();
123    });  
124
125    $('.mobile-menu').meanmenu();
126
127    var mapid = jQuery("#g_map");
128
129    var map_lat = mapid.data("lat");
130    var map_lon = mapid.data("lon");
131    var map_zoom = mapid.data("zoom");
132    var map_info = mapid.data("info");
133    var map_type = mapid.data("type");
134
135    function init_map() {
136        var myOptions = {
137            styles: [{
138                "featureType": "water",
139                "elementType": "geometry",
140                "stylers": [{
141                    "color": "#e9e9e9"
142                }, {
143                    "lightness": 17
144                }]
145            }, {
146                "featureType": "landscape",
147                "elementType": "geometry",
148                "stylers": [{
149                    "color": "#f5f5f5"
150                }, {
151                    "lightness": 20
152                }]
153            }, {
154                "featureType": "road.highway",
155                "elementType": "geometry.fill",
156                "stylers": [{
157                    "color": "#ffffff"
158                }, {
159                    "lightness": 17
160                }]
161            }, {
162                "featureType": "road.highway",
163                "elementType": "geometry.stroke",
164                "stylers": [{
165                    "color": "#ffffff"
166                }, {
167                    "lightness": 29
168                }, {
169                    "weight": 0.2
170                }]
171            }, {
172                "featureType": "road.arterial",
173                "elementType": "geometry",
174                "stylers": [{
175                    "color": "#ffffff"
176                }, {
177                    "lightness": 18
178                }]
179            }, {
180                "featureType": "road.local",
181                "elementType": "geometry",
182                "stylers": [{
183                    "color": "#ffffff"
184                }, {
185                    "lightness": 16
186                }]
187            }, {
188                "featureType": "poi",
189                "elementType": "geometry",
190                "stylers": [{
191                    "color": "#f5f5f5"
192                }, {
193                    "lightness": 21
194                }]
195            }, {
196                "featureType": "poi.park",
197                "elementType": "geometry",
198                "stylers": [{
199                    "color": "#dedede"
200                }, {
201                    "lightness": 21
202                }]
203            }, {
204                "elementType": "labels.text.stroke",
205                "stylers": [{
206                    "visibility": "on"
207                }, {
208                    "color": "#ffffff"
209                }, {
210                    "lightness": 16
211                }]
212            }, {
213                "elementType": "labels.text.fill",
214                "stylers": [{
215                    "saturation": 36
216                }, {
217                    "color": "#333333"
218                }, {
219                    "lightness": 40
220                }]
221            }, {
222                "elementType": "labels.icon",
223                "stylers": [{
224                    "visibility": "off"
225                }]
226            }, {
227                "featureType": "transit",
228                "elementType": "geometry",
229                "stylers": [{
230                    "color": "#f2f2f2"
231                }, {
232                    "lightness": 19
233                }]
234            }, {
235                "featureType": "administrative",
236                "elementType": "geometry.fill",
237                "stylers": [{
238                    "color": "#fefefe"
239                }, {
240                    "lightness": 20
241                }]
242            }, {
243                "featureType": "administrative",
244                "elementType": "geometry.stroke",
245                "stylers": [{
246                    "color": "#fefefe"
247                }, {
248                    "lightness": 17
249                }, {
250                    "weight": 1.2
251                }]
252            }],
253            zoom: map_zoom,
254            center: new google.maps.LatLng(map_lat,map_lon),
255            mapTypeId: google.maps.MapTypeId.map_type
256        };
257        if( $('#g_map').length ) {
258            var map = new google.maps.Map(document.getElementById("g_map"), myOptions);
259            var marker = new google.maps.Marker({
260                map: map,
261                position: new google.maps.LatLng(map_lat,map_lon)
262            });
263            var infowindow = new google.maps.InfoWindow({
264                content: map_info
265            });
266            google.maps.event.addListener(marker, "click", function() {
267                infowindow.open(map, marker);
268            });
269            infowindow.open(map, marker);
270        }
271    }
272    //google.maps.event.addDomListener(window, "load", init_map);
273
274    //var $ = jQuery.noConflict(); // use value of hidden CF7 input to set selected option in select field $(document).ready(function(){ // get contents of hidden input; store in variable 
275    var val =  $("span.hiddendefault input").val(); // set the "selected" attribute for option with value equal to variable 
276    $('select#paketpilih option[value=' + val + ']').attr('selected', 'selected'); 
277
278})(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.