1/** This package is part of CozySF framework.* Is available with all themes for compatibility*/ 2var cozysf_shortcodes_loaded = true; 3var cozysf_debug = false; 4if (typeof cozysf_debug == 'undefined') { 5 cozysf_debug = false; 6} 7if (typeof cozysf_owl_loaded == 'undefined') { 8 var cozysf_owl_loaded = false; 9} 10jQuery(function ($) { 11 if (cozysf_owl_loaded == false && typeof $('body').owlCarousel == 'function') { 12 if (cozysf_debug == true) { 13 console.warn('OWL Sliders loaded from plugin.'); 14 } 15 $(".slide-boxes").each(function(){ 16 var cfg = $(this).data('config'); 17 if(typeof cfg != 'undefined'){ 18 cfg = eval('('+cfg+')'); 19 20 $(this).owlCarousel(cfg); 21 }else { 22 $(this).owlCarousel(); 23 } 24 }); 25 cozysf_owl_loaded = true; 26 } 27}); 28 29jQuery(function ($) { 30 $(window).on('smartresize', function(){ 31 setFullHeight(); 32 }); 33 setFullHeight(); 34 35 var elements = $('.with-scroll-bg'); 36 if(elements.length > 0){ 37 elements.each(function(){ 38 var scroll_speed = jQuery(this).data('speed'); 39 var scroll_direction = jQuery(this).data('direction'); 40 jQuery(this).bgscroll({scrollSpeed:scroll_speed , direction:scroll_direction }); 41 }); 42 } 43 44}); 45jQuery(function ($) { 46 $('.pie-chart').easyPieChart({ 47 easing: 'easeInOutQuart', 48 scaleLength: 0, 49 lineWidth: 5, 50 barColor: '#f0f0f0', 51 trackColor: '#fcfcfc', 52 onStep: function (from, to, percent) { 53 $(this.el).find('.percent').text(Math.round(percent)); 54 } 55 }); 56}); 57jQuery(function ($) { 58 if (typeof mc4wp != 'undefined') { 59 if (mc4wp.success == '1') { 60 alert("Your email (" + mc4wp.postData.EMAIL + ") has ben added to database.\nThank you for subscribe."); 61 } else { 62 alert("Your email (" + mc4wp.postData.EMAIL + ") has not been added to database.\nDid you already added?."); 63 } 64 } 65}); 66jQuery(function ($) { 67 if (typeof $('.testimonial').flexslider == 'function') { 68 var flex_settings = { 69 animation: "fade", 70 selector: ".testimonials .monial", 71 controlNav: false, 72 directionNav: true, 73 slideshowSpeed: 7000, 74 direction: "horizontal", 75 start: function (slider) { 76 $('body').removeClass('loading'); 77 } 78 } 79 $('.testimonial').flexslider(flex_settings); 80 flex_settings.selector = '.text-slider > li'; 81 $('.twitter-feed').flexslider(flex_settings); 82 } 83 if (typeof $('body').parallax == 'function') { 84 $('.cozysf-parallax').parallax(); 85 } 86 if (typeof $('body').accordion == 'function') { 87 $('.cozysf-accordion').accordion({ 88 heightStyle: "content" 89 }) 90 } 91 /* 92 if (typeof $('body').appear == 'function') { 93 $('.animated').appear(); 94 $('.animated').on('appear', function () { 95 var elem = $(this); 96 var animation = elem.data('animation'); 97 if (!elem.hasClass('visible')) { 98 var animationDelay = elem.data('animation-delay'); 99 if (animationDelay) { 100 setTimeout(function () { 101 elem.addClass(animation + " visible"); 102 }, animationDelay); 103 } else { 104 elem.addClass(animation + " visible"); 105 } 106 } 107 }); 108 }*/ 109}); 110var markers = []; 111var info_window = []; 112jQuery(function ($) { 113 'use strict'; 114 if (typeof google == 'undefined') { 115 console.warn('Google class does not exist.'); 116 return; 117 } 118 if (typeof cozysf_map_settings == 'undefined') { 119 console.warn('cozysf_map_settings does not exist.'); 120 return; 121 } 122 if (typeof $('#google-map').html() != 'string') { 123 console.warn('Google map container not found. Skip initialization.'); 124 return; 125 } 126 var markers_title = cozysf_map_settings.markers_title; 127 var latlng = new google.maps.LatLng(cozysf_map_settings.center.lat, cozysf_map_settings.center.lng); 128 var color_road = "#000000"; 129 var color_landscape = "#141414"; 130 var color_text = "#7f8080"; 131 var color_textfill = "#808080"; 132 var color_poi = "#161616"; 133 var map_options = { 134 zoom: parseInt(cozysf_map_settings.zoom), 135 center: latlng, 136 mapTypeId: google.maps.MapTypeId.ROADMAP, 137 disableDefaultUI: true, 138 scrollwheel: false, 139 }; 140 if (cozysf_map_settings.style.enabled == '1') { 141 var color_road = cozysf_map_settings.style.road; 142 var color_landscape = cozysf_map_settings.style.landscape; 143 var color_text = cozysf_map_settings.style.label; 144 var color_textfill = cozysf_map_settings.style.label_fill; 145 var color_poi = cozysf_map_settings.style.poi; 146 var styles = [{ 147 "featureType": "road", 148 "stylers": [{ 149 "color": color_road 150 }] 151 }, { 152 "featureType": "landscape", 153 "stylers": [{ 154 "color": color_landscape
155 }] 156 }, { 157 "elementType": "labels.text.fill", 158 "stylers": [{ 159 "color": color_textfill 160 }] 161 }, { 162 "featureType": "poi", 163 "stylers": [{ 164 "color": color_poi 165 }] 166 }, { 167 "elementType": "labels.text", 168 "stylers": [{ 169 "saturation": 1 170 }, { 171 "weight": 0.1 172 }, { 173 "color": color_text 174 }] 175 }]; 176 map_options.styles = styles; 177 } 178 var map = new google.maps.Map(document.getElementById('google-map'), map_options); 179 var i = 0; 180 for (var j = 1; j <= 3; j++) { 181 if (cozysf_map_settings['marker']['m_' + j]['enable'] == '1') { 182 var marker_content = cozysf_map_settings['marker']['m_' + j]['ct']; 183 var marker_lat = cozysf_map_settings['marker']['m_' + j]['lat']; 184 var marker_lng = cozysf_map_settings['marker']['m_' + j]['lng']; 185 var marker_title = markers_title; 186 var content_string = '<div id="content">' + marker_content + '</div>'; 187 info_window[i] = new google.maps.InfoWindow({ 188 content: content_string 189 }); 190 var marker_coord = new google.maps.LatLng(marker_lat, marker_lng); 191 var image = cozysf_map_settings.plugin_dir + 'images/marker.png'; 192 markers[i] = new google.maps.Marker({ 193 position: marker_coord, 194 map: map, 195 title: marker_title, 196 icon: image 197 }); 198 i++; 199 } 200 } 201 for (var i = 0; i < markers.length; i++) { 202 if (cozysf_debug == true) { console.log(info_window[i]); } 203 google.maps.event.addListener(markers[i], 'click', makeMapListener(info_window[i], map, markers[i], info_window)); 204 } 205}); 206 207function makeMapListener(window, map, markers, all) { 208 return function () { 209 for (var i = 0; i < all.length; i++) { 210 all[i].close(); 211 } 212 window.open(map, markers); 213 }; 214} 215 216function setFullHeight(){ 217 var w_height = jQuery(window).height(); 218 jQuery('.cozysf-full-bg').outerHeight(w_height); 219}
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.