1/* 2 * Version: 2.1.2 3 */ 4 5// Notify Plugin - Code for the demo site of HtmlCoder 6// You can delete the code below 7//----------------------------------------------- 8(function($) { 9 10 "use strict"; 11 12 $(document).ready(function() { 13 if (($(".main-navigation.onclick").length>0) && $(window).width() > 991 ){ 14 $.notify({ 15 // options 16 message: 'The Dropdowns of the Main Menu, are now open with click on Parent Items. Click "Home" to checkout this behavior.' 17 },{ 18 // settings 19 type: 'info', 20 delay: 10000, 21 offset : { 22 y: 150, 23 x: 20 24 } 25 }); 26 }; 27 if (!($(".main-navigation.animated").length>0) && $(window).width() > 991 && $(".main-navigation").length>0){ 28 $.notify({ 29 // options 30 message: 'The animations of main menu are disabled.' 31 },{ 32 // settings 33 type: 'info', 34 delay: 10000, 35 offset : { 36 y: 150, 37 x: 20 38 } 39 }); // End Notify Plugin - The above code (from line 14) is used for demonstration purposes only 40 41 }; 42 43 44 }); // End document ready 45 46 47 48})(jQuery); 49 50/* 51 52if ($(".iviewer_wrapper").length > 0){ 53 $('.main-container .iviewer_wrapper').each(function () { 54 $(this).attr("id", "waterHolder"); 55 /!*$(this).append(" <div id='waterHolder'></div>")*!/ 56 }) 57} 58 59/!*$("body").append(" <div id='waterHolder'></div>");*!/ 60 61var pixel = create2DArray(createRadialCanvas(2,2)); 62var raindrop = create2DArray(createRadialCanvas(4,4)); 63var finger = create2DArray(createRadialCanvas(14,14)); 64 65var width = 400; 66var height = 300; 67 68function init(){ 69 document.querySelectorAll('.iviewer_wrapper').forEach(function (field) { 70 71 // Init the basic components 72 var waterModel = new WaterModel(width, height, { 73 resolution: 2.0, 74 interpolate: false, 75 damping: 0.985, 76 clipping: 5, 77 evolveThreshold: 0.05, 78 maxFps: 50, 79 showStats: true 80 }); 81 82 83 console.log(field); 84 85 var waterCanvas = new WaterCanvas(width, height,'waterHolder', waterModel, { 86 backgroundImageUrl: domein + "layout/snippets/images/banner.jpg", 87 lightRefraction: 2.0, 88 lightReflection: 0.1, 89 showStats: false 90 }); 91 92 enableMouseInteraction(waterModel, field); 93 94 $(field).css({ 95 'width': width + 'px', 96 'height': height + 'px', 97 }); 98 99 100 }); 101} 102 103setTimeout(function(){ 104 init(); 105}, 500);*/ 106 107 108 109 110if ($("body.snippet").length === 0) { 111 112/* 113 document.querySelectorAll('.main-container > .custom-2-plaatjes-links').forEach(function (field) { 114 const element_visible = new IntersectionObserver(entries => { 115 field.classList.add('active-animation', entries[0].isIntersecting); 116 }); 117 element_visible.observe(field); 118 }); 119*/ 120 121 122 123 document.querySelectorAll('.main-container > section .custom-icons-opsomming ').forEach(function (field) { 124 const element_visible = new IntersectionObserver(entries => { 125 $(field).closest(".custom-2-plaatjes-links")[0].classList.add('active-animation', entries[0].isIntersecting); 126 }); 127 element_visible.observe(field); 128 }); 129/* 130 const element2 = document.querySelector('.custom-2-plaatjes-links'); 131 const observer2 = new IntersectionObserver(entries => { 132 if (entries[0].isIntersecting === true) { 133 $(element2).find('svg .custom-icons-opsomming > li').each(function () { 134 135 }); 136 } 137 element2.classList.add('custom-animation', entries[0].isIntersecting); 138 }); 139 observer2.observe(element2);*/ 140} 141 142 143 144$("body:not(.snippet) .video-snippet .video-bg").css("background-image", "url('"+domein+"layout/snippets/images/transparent.png')") 145 146if ($('body.vervolg .main-container section#top-foto-h1').length > 0){ 147 $('#custom-top-foto-h1').hide(); 148} 149 150if ("ontouchstart" in document.documentElement) { 151 $("body").addClass("touchscreen"); 152} 153 154if ($(".main-container > section:first-of-type").next().hasClass("basis-plaatje-links-33")){ 155 $(".basis-plaatje-links-33").addClass("first-section"); 156} 157 158if ($(".blue-wave-bg").length > 0){ 159 $('.main-container > section').each(function () { 160 if ($(this).hasClass("blue-wave-bg")){ 161 /*$(this).next().addClass("custom-margin-minus");*/ 162 } 163 164 }) 165} 166 167 168 169 170 171 172if((typeof xl !== "undefined" && xl === true) || (typeof lg !== "undefined" && lg === true)) { 173 174 $('.main-container section div[class*="col-"] > img').each(function () { 175 if (!$(this).hasClass("logo-groot-banner")){ 176 var src = $(this).attr("data-fm-file"); 177 if(typeof src === "undefined"){ 178 src = $(this).attr("src"); 179 } 180 if(typeof src !== "undefined"){ 181 var newsrc = '"'+src+'"'; 182 $(this).replaceWith("<div class='custom-ripple-img' style='background-image: url("+newsrc+")'></div>"); 183 } 184 } 185 }); 186 187 if ($(".iviewer_wrapper").length > 0) { 188 $('.main-container .iviewer_wrapper .iviewer, body:not(.snippet).video-fixed-on .video-snippet .video-bg, .custom-ripple-img, .bg-img:not(.nieuws-over-img), .footer').each(function () { 189 $(this).ripples({ 190 resolution: 200, 191 dropRadius: 30, 192 perturbance: 0.004, 193 }); 194 195 }); 196 } 197} 198 199 200/*menu effect*/ 201 202 203/*var values = { 204 friction: 0.8, 205 timeStep: 0.01, 206 amount: 15, 207 mass: 2, 208 count: 0 209}; 210values.invMass = 1 / values.mass; 211 212var path, springs; 213var size = view.size * [1.2, 1]; 214 215var Spring = function(a, b, strength, restLength) { 216 this.a = a; 217 this.b = b; 218 this.restLength = restLength || 80; 219 this.strength = strength ? strength : 0.55; 220 this.mamb = values.invMass * values.invMass; 221}; 222 223Spring.prototype.update = function() { 224 var delta = this.b - this.a; 225 var dist = delta.length; 226 var normDistStrength = (dist - this.restLength) / 227 (dist * this.mamb) * this.strength; 228 delta.y *= normDistStrength * values.invMass * 0.2; 229 if (!this.a.fixed) 230 this.a.y += delta.y; 231 if (!this.b.fixed) 232 this.b.y -= delta.y; 233}; 234 235 236function createPath(strength) { 237 var path = new Path({ 238 fillColor: 'black' 239 }); 240 springs = []; 241 for (var i = 0; i <= values.amount; i++) { 242 var segment = path.add(new Point(i / values.amount, 0.5) * size); 243 var point = segment.point; 244 if (i == 0 || i == values.amount) 245 point.y += size.height; 246 point.px = point.x; 247 point.py = point.y; 248 // The first two and last two points are fixed: 249 point.fixed = i < 2 || i > values.amount - 2; 250 if (i > 0) { 251 var spring = new Spring(segment.previous.point, point, strength); 252 springs.push(spring); 253 } 254 } 255 path.position.x -= size.width / 4; 256 return path; 257} 258 259function onResize() { 260 if (path) 261 path.remove(); 262 size = view.bounds.size * [2, 1]; 263 path = createPath(0.1); 264} 265 266function onMouseMove(event) { 267 var location = path.getNearestLocation(event.point); 268 var segment = location.segment; 269 var point = segment.point; 270 271 if (!point.fixed && location.distance < size.height / 4) { 272 var y = event.point.y; 273 point.y += (y - point.y) / 6; 274 if (segment.previous && !segment.previous.fixed) { 275 var previous = segment.previous.point; 276 previous.y += (y - previous.y) / 24; 277 } 278 if (segment.next && !segment.next.fixed) { 279 var next = segment.next.point; 280 next.y += (y - next.y) / 24; 281 } 282 } 283} 284 285function onFrame(event) { 286 updateWave(path); 287} 288 289function updateWave(path) { 290 var force = 1 - values.friction * values.timeStep * values.timeStep; 291 for (var i = 0, l = path.segments.length; i < l; i++) { 292 var point = path.segments[i].point; 293 var dy = (point.y - point.py) * force; 294 point.py = point.y; 295 point.y = Math.max(point.y + dy, 0); 296 } 297 298 for (var j = 0, l = springs.length; j < l; j++) { 299 springs[j].update(); 300 } 301 path.smooth({ type: 'continuous' }); 302} 303 304function onKeyDown(event) { 305 if (event.key == 'space') { 306 path.fullySelected = !path.fullySelected; 307 path.fillColor = path.fullySelected ? null : 'black'; 308 } 309}*/ 310/*einde menu effect*/ 311 312 313var word_effect_name = 'fadeInBottom'; 314function word_effect(item, i, effect_name){ 315 if(typeof effect_name === "undefined" || effect_name.length===0){ 316 effect_name = word_effect_name; 317 } 318 var timeout = 100; 319 item.addClass('hc-element-invisible').addClass('animated'); 320 setTimeout(function(){ 321 item.addClass('hc-element-visible ' + effect_name); //elem.find('.word').addClass('hc-element-invisible').addClass('animated'); 322 }, (i*timeout)); 323} 324function clear_word_effect(item){ 325 item.removeClass('hc-element-invisible').removeClass('animated').removeClass('hc-element-visible').removeClass(word_effect_name).removeClass('fadeInRight'); 326} 327var ofp_timer = null;
328var ofpc_timer = null; 329var ofp_duration = 850; 330$('.custom-toggle').click(function(){ 331 332 if(ofp_timer!==null){ 333 clearInterval(ofp_timer); 334 if($('body').hasClass('close-full-page-overlay')){ 335 $('body').removeClass('open-full-page-overlay').removeClass('close-full-page-overlay'); 336 } 337 } 338 if(ofpc_timer!==null){ 339 clearInterval(ofpc_timer); 340 if($('body').hasClass('close-full-page-overlay')){ 341 $('.custom-toggle').removeClass('dark').removeClass('white'); 342 } 343 } 344 345 if($('body').hasClass('open-full-page-overlay')){ // close 346 $('.custom-toggle').removeClass('open'); 347 $('body').addClass('close-full-page-overlay'); 348 ofp_timer = setTimeout(function(){ 349 $('body').removeClass('open-full-page-overlay').removeClass('close-full-page-overlay'); 350 }, ofp_duration); 351 352 /* color hamburger/cross */ 353 ofpc_timer = setTimeout(function(){ 354 $('.custom-toggle').removeClass('dark').addClass('white'); 355 ofpc_timer = setTimeout(function(){ 356 $('.custom-toggle').removeClass('white'); 357 }, (150)); 358 }, (ofp_duration-150)); 359 360 $('.full-page-overlay ul.navbar-nav li, .projecten-widget-wrapper, .full-page-overlay .social-links').each(function() { 361 clear_word_effect($(this)); 362 }); 363 } else { // open 364 $('.custom-toggle').addClass('open'); 365 $('body').addClass('open-full-page-overlay'); 366 367 /* color hamburger/cross */ 368 ofpc_timer = setTimeout(function(){ 369 $('.custom-toggle').addClass('dark').removeClass('white'); 370 }, (ofp_duration-100)); 371 372 373 var i = 3; 374 var effect = 'fadeInRight'; 375 $('.full-page-overlay ul.navbar-nav li, .projecten-widget-wrapper, .full-page-overlay .social-links').each(function() { 376 word_effect($(this), i++, effect); 377 }); 378 379 } 380}); 381 382 383var title_words; 384 385 386$('.custom-diensten .dienst-item').each(function() { 387 var blok = $(this).find("p"); 388 title_words = $(this).find("p").text().split("-"); 389 $(this).find("p").empty(); 390 391 392 $.each(title_words, function(i, v) { 393 394 if (v.length > 1){ 395 $(blok).append($('<span class="custom-line">').text(v)); 396 } 397 398 }); 399 400}); 401 402 403 404$('.hitarea.right').click(function () { 405 $('.custom-menu-items li.nav-item').each(function (i) { 406 $(this).addClass('customfadeinmenu'); 407 $(this).css('animation-delay', '' + i * 200 + 'ms'); 408 }); 409}); 410 411$('.closeBulge .close').click(function () { 412 $('.custom-menu-items li.nav-item').each(function (i) { 413 $(this).removeClass('customfadeinmenu'); 414 }); 415}); 416 417 418 419 420$( document ).ready(function() { 421 422 setTimeout(function(){ 423 $("#MenuBulge .right").css("opacity", "1") 424 }, 500); 425 426}); 427 428$(".main-container > section:not(:first-of-type)").each(function (i){ 429 if ($(this).find(".iviewer").length === 0){ 430 $(this).addClass("custom-plaatje-geen-iviewer"); 431 } 432}) 433 434if((typeof xs !== "undefined" && xs === true) || (typeof sm !== "undefined" && sm === true) || (typeof md !== "undefined" && md === true)) { 435 $(document).ready(function() { 436 if ($("body.index .video-autoplay-v1").length > 0) { 437 $(".video-autoplay-v1").addClass("phone-view"); 438 439 var screenHeight = $(window).height(); 440 var offset = $(".fixed-balk-onder").outerHeight(true); 441 442 443 $("body:not(.snippet) .video-autoplay-v1.phone-view > .video-autoplay").css("min-height", "calc(" + screenHeight + "px - " + offset + "px)"); 444 445 $("body:not(.snippet) .video-autoplay-v1.phone-view > .video-autoplay, body:not(.snippet) .video-autoplay-v1.phone-view .video-snippet .video-bg, .video-autoplay-v1.phone-view .video-fill-screen, .video-autoplay-v1.phone-view .video-outer-wrapper, body:not(.snippet) .video-autoplay-v1.phone-view .video-snippet iframe").css("height", "calc(" + screenHeight + "px - " + offset + "px)"); 446 $("body:not(.snippet) .video-autoplay-v1.phone-view > .video-autoplay, body:not(.snippet) .video-autoplay-v1.phone-view .video-snippet .video-bg, .video-autoplay-v1.phone-view .video-fill-screen, .video-autoplay-v1.phone-view .video-outer-wrapper, body:not(.snippet) .video-autoplay-v1.phone-view .video-snippet iframe").css("max-height", "calc(" + screenHeight + "px - " + offset + "px)"); 447 $("body:not(.snippet) .video-autoplay-v1.phone-view > .video-autoplay, body:not(.snippet) .video-autoplay-v1.phone-view .video-snippet .video-bg, .video-autoplay-v1.phone-view .video-fill-screen, .video-autoplay-v1.phone-view .video-outer-wrapper, body:not(.snippet) .video-autoplay-v1.phone-view .video-snippet iframe").css("min-height", "calc(" + screenHeight + "px - " + offset + "px)"); 448 449 450 $(".custom-btn-outer-wrapper > .custom-btn-wrapper > .custom-btn-orangje").appendTo($(".custom-video-titel > .container")) 451 452 } 453 }); 454}
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.