1jQuery(document).ready(function(){ 2 3 // Define Elements 4 5 //REL.E.elementname = jQuery('#elementname'); 6 7 REL.init(); 8 9}); 10 11 12var REL = {}; 13REL.E = {}; 14 15 16REL.init = function() 17{ 18 REL.initHomeSlider(); 19 REL.initServiceSlider(); 20 REL.initFunderSlider(); 21 REL.initQuoteSlider(); 22 REL.initCommunityImpactSlider(); 23 REL.initAreasOfSupportNeededSlider(); 24 REL.initTranslate(); 25 REL.initHeaderSearch(); 26 REL.initCloseNotice(); 27 REL.initMobileMenu(); 28 REL.initGalleryBlock(); 29} 30 31REL.initGalleryBlock = function() { 32 33 jQuery('.gallery-block .main-gallery').slick({ 34 slidesToShow: 1, 35 slidesToScroll: 1, 36 autoplay: true, 37 autoplaySpeed: 4000, 38 arrows: false, 39 fade: true, 40 asNavFor: '.gallery-block .nav-gallery' 41 }); 42 jQuery('.gallery-block .nav-gallery').slick({ 43 slidesToShow: 3, 44 slidesToScroll: 1, 45 asNavFor: '.gallery-block .main-gallery', 46 dots: false, 47 centerMode: true, 48 focusOnSelect: true, 49 responsive: [ 50 { 51 breakpoint: 700, 52 settings: { 53 slidesToShow: 1, 54 slidesToScroll: 1, 55 infinite: true, 56 arrows: true, 57 dots: false 58 } 59 }, 60 { 61 breakpoint: 400, 62 settings: { 63 slidesToShow: 1, 64 slidesToScroll: 1, 65 infinite: true, 66 arrows: true, 67 dots: false, 68 centerMode: false, 69 } 70 } 71 ], 72 }); 73} 74 75 76REL.initMobileMenu = function() { 77 jQuery('.mobile-menu-toggle').click(function() { 78 if (jQuery('.mobile-menu-toggle').hasClass('is-active')) { 79 jQuery('.mobile-menu-toggle').removeClass('is-active'); 80 jQuery('#masthead .right-side').removeClass('is-active'); 81 } 82 else { 83 jQuery('.mobile-menu-toggle').addClass('is-active'); 84 jQuery('#masthead .right-side').addClass('is-active'); 85 } 86 }); 87 88 jQuery('#primary-menu > li.menu-item-has-children').click(function() { 89 jQuery(this).toggleClass('active'); 90 }) 91} 92 93REL.initCloseNotice = function() { 94 jQuery( '#fnc-close-notice' ).click(function() { 95 jQuery( '#noticeBar' ).slideUp( 'slow', function() { 96 }); 97 }); 98} 99 100 101REL.initTranslate = function() { 102 jQuery('.g-translate-switcher').click(function() { 103 jQuery('#google_language_translator').toggle(); 104 }); 105} 106 107REL.initHeaderSearch = function() { 108 jQuery('.search-toggle').click(function() { 109 jQuery('.search-form').toggle(); 110 }); 111} 112 113REL.initHomeSlider = function() { 114 jQuery('.home-slider .text').slick({ 115 arrows: false, 116 dots: true, 117 }) 118} 119 120REL.initServiceSlider = function() { 121 jQuery('.service-slider .text').slick({ 122 arrows: false, 123 dots: true, 124 autoplay: 5000, 125 }) 126} 127 128// REL.initFunderSlider = function() { 129// jQuery('.funder-slider .text').slick({ 130// arrows: true, 131// dots: false, 132// }) 133// } 134 135REL.initFunderSlider = function() { 136 jQuery('.funder-slider .text').slick({ 137 slidesToShow: 4, 138 slidesToScroll: 4, 139 dots: false, 140 arrows: true, 141 infinite: true, 142 responsive: [ 143 /*{ 144 breakpoint: 700, 145 settings: { 146 slidesToShow: 2, 147 slidesToScroll: 2, 148 infinite: true, 149 dots: false 150 } 151 },*/ 152 { 153 breakpoint: 700, 154 settings: { 155 slidesToShow: 1, 156 slidesToScroll: 1, 157 infinite: true, 158 arrows: true, 159 dots: false 160 } 161 } 162 ] 163 }); 164} 165 166REL.initQuoteSlider = function() { 167 jQuery('.quote-slider').slick({ 168 arrows: false, 169 dots: true, 170 }) 171} 172 173REL.initCommunityImpactSlider = function() { 174 jQuery('.community-impact-block').slick({ 175 arrows: true, 176 dots: false, 177 infinite: true, 178 variableWidth: true, 179 centerMode: true, 180 autoplay: 4000, 181 }) 182} 183 184// REL.initAreasOfSupportNeededSlider = function() { 185// jQuery('.support-areas-block').slick({ 186// arrows: true, 187// dots: false, 188// variableWidth: false, 189// infinite: true, 190// slidesToShow: 3, 191// slidesToScroll: 1, 192// centerMode: true, 193// centerPadding: '60px', 194// }) 195// } 196 197REL.initAreasOfSupportNeededSlider = function() { 198 jQuery('.support-areas-block').slick({ 199 centerMode: false, 200 centerPadding: '60px', 201 slidesToShow: 3, 202 responsive: [ 203 { 204 breakpoint: 768, 205 settings: { 206 arrows: false, 207 centerMode: true, 208 centerPadding: '40px', 209 slidesToShow: 2 210 } 211 }, 212 { 213 breakpoint: 600, 214 settings: { 215 arrows: false, 216 centerMode: false, 217 centerPadding: '40px', 218 slidesToShow: 1 219 } 220 } 221 ] 222 }) 223 } 224 225 226 var relInitMap = function() { 227 const style = [ 228 { 229 "elementType": "geometry", 230 "stylers": [ 231 { 232 "color": "#d6e2e7" 233 } 234 ] 235 }, 236 { 237 "elementType": "labels.icon", 238 "stylers": [ 239 { 240 "visibility": "off" 241 } 242 ] 243 }, 244 { 245 "elementType": "labels.text.fill", 246 "stylers": [ 247 { 248 "color": "#747f83" 249 } 250 ] 251 }, 252 { 253 "elementType": "labels.text.stroke", 254 "stylers": [ 255 { 256 "color": "#dde9ee" 257 } 258 ] 259 }, 260 { 261 "featureType": "administrative.land_parcel", 262 "elementType": "labels.text.fill", 263 "stylers": [ 264 { 265 "color": "#747f83" 266 } 267 ] 268 }, 269 { 270 "featureType": "poi", 271 "elementType": "geometry", 272 "stylers": [ 273 { 274 "color": "#cdd9dd" 275 } 276 ] 277 }, 278 { 279 "featureType": "poi", 280 "elementType": "labels.text.fill", 281 "stylers": [ 282 { 283 "color": "#747f83" 284 } 285 ] 286 }, 287 { 288 "featureType": "poi.park", 289 "elementType": "geometry", 290 "stylers": [ 291 { 292 "color": "#cdd9dd" 293 } 294 ] 295 }, 296 { 297 "featureType": "poi.park", 298 "elementType": "labels.text.fill", 299 "stylers": [ 300 { 301 "color": "#747f83" 302 } 303 ] 304 }, 305 { 306 "featureType": "road", 307 "elementType": "geometry", 308 "stylers": [ 309 { 310 "color": "#dde9ee" 311 } 312 ] 313 }, 314 { 315 "featureType": "road.arterial", 316 "elementType": "labels.text.fill", 317 "stylers": [ 318 { 319 "color": "#757575" 320 } 321 ] 322 }, 323 { 324 "featureType": "road.highway", 325 "elementType": "geometry", 326 "stylers": [ 327 { 328 "color": "#dde9ee" 329 } 330 ] 331 }, 332 { 333 "featureType": "road.highway", 334 "elementType": "labels.text.fill", 335 "stylers": [ 336 { 337 "color": "#747f83" 338 } 339 ] 340 }, 341 { 342 "featureType": "road.local", 343 "elementType": "labels.text.fill", 344 "stylers": [ 345 { 346 "color": "#dde9ee" 347 } 348 ] 349 }, 350 { 351 "featureType": "transit.line", 352 "elementType": "geometry", 353 "stylers": [ 354 { 355 "color": "#e5e5e5" 356 } 357 ] 358 }, 359 { 360 "featureType": "transit.station", 361 "elementType": "geometry", 362 "stylers": [ 363 { 364 "color": "#cdd9dd" 365 } 366 ] 367 }, 368 { 369 "featureType": "water", 370 "elementType": "geometry", 371 "stylers": [ 372 { 373 "color": "#cdd9dd" 374 } 375 ] 376 }, 377 { 378 "featureType": "water", 379 "elementType": "labels.text.fill", 380 "stylers": [ 381 { 382 "color": "#747f83" 383 } 384 ] 385 } 386 ]; 387 388 //55 Spence Street Winnipeg, MB, R3B 2R9 389 const center = { lat: 49.8828102, lng: -97.1569382 }; 390 // The map, centered at Uluru 391 const map = new google.maps.Map( 392 document.getElementById("contact-map"), 393 { 394 zoom: 15, 395 center: center, 396 styles: style, 397 } 398 ); 399 400 const infowindow = new google.maps.InfoWindow({ 401 content: '<strong>Thrive Administration</strong><br>406 Edmonton St',
402 ariaLabel: "406 Edmonton St", 403 }); 404 405 406 // The marker, positioned at Uluru 407 const marker = new google.maps.Marker({ 408 position: center, 409 map: map, 410 title: '406 Edmonton St' 411 }); 412 413 marker.addListener("click", () => { 414 infowindow.open({ 415 anchor: marker, 416 map, 417 }); 418 }); 419 420 421 }
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.