1/** 2* @version Octo 1.x 3* @package Octo Template Framework 4* @url https://www.octopoos.com 5* @editor Octopoos - www.octopoos.com 6* @author Alexandre Lapoux - v_1.0.0 7* @copyright Copyright (C) 2019 Octopoos. All Rights Reserved. 8* @license GNU General Public License version 2 or later; see _LICENSE.php 9**/ 10if("undefined"===typeof Innio)var Innio={}; 11if("undefined"===typeof JCck)var JCck={}; 12 13(function ($){ 14 15 $.fn.exists = function(callback) { 16 var args = [].slice.call(arguments, 1); 17 if (this.length) { 18 callback.call(this, args); 19 } 20 return this; 21 }; 22 23 Innio.animRemanLogo = function(){ 24 var html = "<div class='reman-logo'><div class='reman-arrow'></div><div class='reman-circle'></div></div>"; 25 var anim = []; 26 anim.push({ 'id':'893', 'lang':'en-gb', 'addClass': '' }); 27 28 anim.push({ 'id':'608', 'lang':'en-gb', 'addClass': '' }); 29 anim.push({ 'id':'609', 'lang':'en-gb', 'addClass': 'reup-engine' }); 30 anim.push({ 'id':'610', 'lang':'en-gb', 'addClass': 'reup-part' }); 31 32 anim.push({ 'id':'621', 'lang':'it-it', 'addClass': '' }); 33 anim.push({ 'id':'622', 'lang':'it-it', 'addClass': 'reup-engine' }); 34 anim.push({ 'id':'623', 'lang':'it-it', 'addClass': 'reup-part' }); 35 36 anim.push({ 'id':'640', 'lang':'es-es', 'addClass': '' }); 37 anim.push({ 'id':'641', 'lang':'es-es', 'addClass': 'reup-engine' }); 38 anim.push({ 'id':'642', 'lang':'es-es', 'addClass': 'reup-part' }); 39 40 anim.push({ 'id':'627', 'lang':'de-de', 'addClass': '' }); 41 anim.push({ 'id':'628', 'lang':'de-de', 'addClass': 'reup-engine' }); 42 anim.push({ 'id':'629', 'lang':'de-de', 'addClass': 'reup-part' }); 43 44 anim.push({ 'id':'649', 'lang':'pl-pl', 'addClass': '' }); 45 anim.push({ 'id':'651', 'lang':'pl-pl', 'addClass': 'reup-engine' }); 46 anim.push({ 'id':'653', 'lang':'pl-pl', 'addClass': 'reup-part' }); 47 48 anim.push({ 'id':'650', 'lang':'zh-cn', 'addClass': '' }); 49 anim.push({ 'id':'654', 'lang':'zh-cn', 'addClass': 'reup-engine' }); 50 anim.push({ 'id':'656', 'lang':'zh-cn', 'addClass': 'reup-part' }); 51 52 anim.push({ 'id':'779', 'lang':'ru-ru', 'addClass': '' }); 53 anim.push({ 'id':'781', 'lang':'ru-ru', 'addClass': 'reup-engine' }); 54 anim.push({ 'id':'780', 'lang':'ru-ru', 'addClass': 'reup-part' }); 55 56 anim.push({ 'id':'818', 'lang':'fr-fr', 'addClass': '' }); 57 anim.push({ 'id':'819', 'lang':'fr-fr', 'addClass': 'reup-engine' }); 58 anim.push({ 'id':'820', 'lang':'fr-fr', 'addClass': 'reup-part' }); 59 60 anim.push({ 'id':'972', 'lang':'ja-jp', 'addClass': '' }); 61 anim.push({ 'id':'973', 'lang':'ja-jp', 'addClass': 'reup-engine' }); 62 anim.push({ 'id':'975', 'lang':'ja-jp', 'addClass': 'reup-part' }); 63 64 anim.push({ 'id':'1027', 'lang':'ko-kr', 'addClass': '' }); 65 anim.push({ 'id':'1028', 'lang':'ko-kr', 'addClass': 'reup-engine' }); 66 anim.push({ 'id':'1030', 'lang':'ko-kr', 'addClass': 'reup-part' }); 67 68 69 $.each(anim, function( i , v ) { 70 $('.itemid-'+v.id+' .main-slides').exists(function() { 71 $( this ).append( html ); 72 $( this ).find( ".reman-logo" ).addClass( v.addClass ).addClass( 'reman-logo-'+v.lang ); 73 }); 74 }); 75 }; 76 77 78 Innio.animDots = function(){ 79 var html = '<div id="particles-logo"></div><div id="particles-js"></div>'; 80 var animDots = []; 81 animDots.push({ 'element':'.itemid-775', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'normal' }); 82 animDots.push({ 'element':'.itemid-776', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'normal' }); 83 animDots.push({ 'element':'.itemid-777', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'normal' }); 84 animDots.push({ 'element':'.itemid-612', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 85 animDots.push({ 'element':'.itemid-1872', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 86 animDots.push({ 'element':'.itemid-636', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 87 animDots.push({ 'element':'.itemid-892', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 88 animDots.push({ 'element':'.itemid-648', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 89 animDots.push({ 'element':'.itemid-635', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 90 animDots.push({ 'element':'.itemid-638', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 91 animDots.push({ 'element':'.itemid-137.is-digital', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#fff', 'colorline': '#fff', 'speed': 3, 'classLogo': 'myplant-white' }); 92 animDots.push({ 'element':'.itemid-659.is-digital', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#fff', 'colorline': '#fff', 'speed': 3, 'classLogo': 'myplant-white' }); 93 animDots.push({ 'element':'.itemid-810 [mag="3467"]', 'child':' .mag-bg', 'colordot': '#fff', 'colorline': '#fff', 'speed': 3, 'classLogo': 'myplant-white' }); 94 animDots.push({ 'element':'.itemid-919', 'child':' #page-7 #diagonal div', 'colordot': '#fff', 'colorline': '#fff', 'speed': 3, 'classLogo': '' }); 95 animDots.push({ 'element':'.itemid-1091', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'dotes-light-en' }); 96 animDots.push({ 'element':'.itemid-1092', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'dotes-light-en' }); 97 animDots.push({ 'element':'.itemid-1093', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'dotes-light-en' }); 98 animDots.push({ 'element':'.o-new', 'child':' #page-11 .o-container', 'colordot': '#70C5D0', 'colorline': '#B4E4EA', 'speed': 2, 'classLogo': '' }); 99 animDots.push({ 'element':'.itemid-647', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 100 animDots.push({ 'element':'.itemid-672', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 101 animDots.push({ 'element':'.itemid-646', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 102 animDots.push({ 'element':'.itemid-971', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 103 animDots.push({ 'element':'.itemid-1026', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 104 animDots.push({ 'element':'.itemid-637', 'child':' .uk-slideshow-items > li > .dp-slide', 'colordot': '#cccccc', 'colorline': '#cccccc', 'speed': 3, 'classLogo': 'loesung' }); 105 106 $.each(animDots, function( i , v ) { 107 $(v.element+v.child).exists(function() { 108 $( html ).insertBefore( $( this ) ); 109 $( this ).parent().find('#particles-logo').addClass(v.classLogo); 110 particlesJS("particles-js", { 111 "particles":{ 112 "number":{ 113 "value":80, 114 "density":{ 115 "enable":true, 116 "value_area":800 117 } 118 }, 119 "color":{ 120 "value":v.colordot 121 }, 122 "shape":{ 123 "type":"circle", 124 "stroke":{ 125 "width":0, 126 "color":"#000000" 127 }, 128 "polygon":{ 129 "nb_sides":5 130 }, 131 "image":{ 132 "src":"", 133 "width":100, 134 "height":100 135 } 136 }, 137 "opacity":{ 138 "value":1, 139 "random":false, 140 "anim":{ 141 "enable":false, 142 "speed":1, 143 "opacity_min":0.1, 144 "sync":false 145 } 146 }, 147 "size":{ 148 "value":3, 149 "random":true, 150 "anim":{ 151 "enable":false, 152 "speed":80, 153 "size_min":0.1, 154 "sync":false 155 } 156 }, 157 "line_linked":{ 158 "enable":true, 159 "distance":150, 160 "color": v.colorline, 161 "opacity":1, 162 "width":1 163 }, 164 "move":{ 165 "enable":true, 166 "speed":v.speed, 167 "direction":"none", 168 "random":false, 169 "straight":false, 170 "out_mode":"out", 171 "bounce":false, 172 "attract":{ 173 "enable":false, 174 "rotateX":600, 175 "rotateY":1200 176 } 177 } 178 }, 179 "interactivity":{ 180 "detect_on":"canvas", 181 "events":{ 182 "onhover":{ 183 "enable":false, 184 "mode":"repulse" 185 }, 186 "onclick":{ 187 "enable":false, 188 "mode":"push" 189 }, 190 "resize":true 191 }, 192 "modes":{ 193 "grab":{ 194 "distance":400, 195 "line_linked":{ 196 "opacity":1 197 } 198 }, 199 "bubble":{ 200 "distance":400, 201 "size":40, 202 "duration":2, 203 "opacity":8, 204 "speed":3 205 }, 206 "repulse":{ 207 "distance":50, 208 "duration":0.4 209 }, 210 "push":{ 211 "particles_nb":4 212 }, 213 "remove":{ 214 "particles_nb":2 215 } 216 } 217 }, 218 "retina_detect":true 219 }); 220 221 }); 222 }); 223 }; 224 225 Innio.animSlideOne = function(){ 226 var animSlideOne = '' 227 +'<div id="op-round" class="op-center">' 228 + '<div class="svg-pos-1" uk-scrollspy="cls: svg-anim-1; delay: 0; repeat:true">' 229 + '<div uk-scrollspy="cls: uk-animation-scale-up; delay: 0; repeat:true">' 230 + '<div>' 231 + '<img src="/templates/seb_minima_one_page_sustainability/images/panel01/animation-panel-01.png" width="100%">' 232 + '</div>' 233 + '</div>' 234 + '</div>' 235 + '<div class="svg-pos-2">' 236 + '<div uk-scrollspy="cls: uk-animation-scale-up; delay: 1500; repeat:true">' 237 + '<img src="/templates/seb_minima_one_page_sustainability/images/panel01/panel-01-logo.svg" loading="lazy" width="100%">' 238 + '</div>' 239 + '</div>' 240 +'</div>'; 241 $( ".anime-slide-one .dp-slide" ).exists(function() { 242 $( animSlideOne ).insertBefore( $( this ) ); 243 }); 244 }; 245 246 Innio.addLogo = function(){ 247 var html = "<div class='o-logo'></div>"; 248 var add = []; 249 //add.push({ 'id':'3209', 'lang':'en-gb', 'addClass': 'o-data-center' }); 250 add.push({ 'id':'2036', 'lang':'en-gb', 'addClass': 'o-data-center' }); 251 252 $.each(add, function( i , v ) { 253 $('#industry-'+v.id+' .o-add-logo').exists(function() { 254 $( this ).append( html ); 255 $( this ).find( ".o-logo" ).addClass( v.addClass ).addClass( 'o-logo-'+v.lang ); 256 }); 257 }); 258 }; 259 260 /* Add class o-open on button o-toggle */ 261 Innio.animHomeMedia = function(){ 262 $('.o-boxanim').exists(function() { 263 var 264 toggle = jQuery(this).find(".o-toggle"); 265 266 jQuery.each(toggle, function(index, value){ 267 var myId = this.id; 268 var idArray = myId.split("-"); 269 var id = idArray[2]; 270 var toggles = UIkit.toggle("#"+myId, {target: ".o-toggle-"+id}); 271 var el = jQuery("#o-toggle-"+id); 272 jQuery(".o-toggle-"+id+":nth-child(2)").exists(function() {
273 if("matchMedia" in window) { 274 if(window.matchMedia("(max-width:767px)").matches) { 275 UIkit.util.on(this, "show", function () { 276 el.addClass("o-open"); 277 el.parent().parent().find(".o-btn").addClass("o-btn-reverse"); 278 }); 279 UIkit.util.on(this, "hide", function () { 280 el.removeClass("o-open"); 281 el.parent().parent().find(".o-btn").removeClass("o-btn-reverse"); 282 }); 283 } else { 284 jQuery(".o-toggle-"+id).removeAttr("hidden"); 285 jQuery(this).attr("hidden",""); 286 el.removeClass("o-open"); 287 el.parent().parent().find(".o-btn").removeClass("o-btn-reverse"); 288 jQuery('.o-boxanim > div').each(function() { 289 jQuery(this).mouseover(function() { 290 jQuery(this).addClass('o-active'); 291 jQuery('.o-boxanim').children('div').not('.o-active').addClass('o-inactive'); 292 }); 293 jQuery(this).mouseleave(function() { 294 jQuery(this).removeClass('o-active'); 295 jQuery('.o-boxanim').children('div').not('.o-active').removeClass('o-inactive'); 296 }); 297 }); 298 } 299 } 300 }); 301 }); 302 }); 303 }; 304 305 const toto = 1; 306 307 $.fn.elComponent = function(options) { 308 var defaults = { 309 href: false, 310 IDopen: [], 311 attrAnchor: "anchor", 312 debug: true 313 }; 314 var settings = $.extend({}, defaults, options); 315 316 function debug(txt, obj, settings) { 317 if (settings.debug) { 318 if (window.console && window.console.log) { 319 window.console.log('-> elComponent ' + txt + ' : ') + window.console.log(obj); 320 }; 321 }; 322 }; 323 324 return this.each(function() { 325 326 if( settings.href ) { 327 var 328 myId = this.hash, 329 idArray = myId.split("-"), 330 id = idArray[1]; 331 332 $( this ).click(function(e) { 333 e.preventDefault(); 334 $(".o-comp-content").not('#o-comp-'+id).slideUp(); 335 $(".o-comp-item").not($( myId ).parent()).removeClass("active"); 336 $( myId ).parent().addClass("active"); 337 $( '#o-comp-'+id ).slideDown( "slow", function(){}); 338 }); 339 340 } else { 341 var 342 myId = this.id, 343 idArray = myId.split("-"), 344 id = idArray[1], 345 el = $( this ), 346 myhash = window.location.hash.replace('#',''), 347 attr = el.attr( settings.attrAnchor ); 348 349 if ( settings.IDopen.length !== 0 ) { 350 $.each( settings.IDopen, function( i , v ) { 351 var 352 openIdArray = v.split("-"), 353 openId = openIdArray[1]; 354 355 if( openId === id && myhash == '' ){ 356 el.parent().addClass("active"); 357 $( '#o-comp-'+id ).slideDown( "slow", function(){} ); 358 } 359 }); 360 } 361 362 el.click(function(e) { 363 e.preventDefault(); 364 $(".o-comp-content").not('#o-comp-'+id).slideUp(); 365 $(".o-comp-item").not(el.parent()).removeClass("active"); 366 el.parent().toggleClass("active"); 367 $( '#o-comp-'+id ).slideToggle( "slow", function(){} ); 368 if (typeof attr !== 'undefined' && attr !== false) { 369 window.location.hash = attr; 370 } 371 }); 372 373 if( typeof attr !== 'undefined' && attr !== false && myhash != '' && myhash == attr ){ 374 window.console.log(myhash); 375 $( "#id-"+ id ).parent().addClass("active"); 376 $( '#o-comp-'+id ).slideDown( "slow", function(){} ); 377 } 378 379 } 380 }); 381 }; 382 383 $.fn.tableToUkdrop = function() { 384 let el = $(this); 385 el.prepend('<span class="icon-help-2" type="button" style="margin:auto"></span>'); 386 el.find("div").attr("uk-drop","mode: click;pos:bottom-center"); 387 }; 388 389 $.fn.thToUkdrop = function() { 390 let 391 el = $(this), 392 p = el.find("p"), 393 txt = p.text(); 394 el.empty(); 395 el.html('<p><span class="icon-help-2 o-show-after@sm" uk-tooltip="'+txt+'"></span><span class="o-hide-before@sm">'+txt+'</span></p>'); 396 }; 397 398 $(document).ready(function() { 399 $("body").on("click", ".__RTP__modal", function(e) { 400 e.preventDefault(); 401 JCck.InnioProject.modal.loadUrl($(this).attr('data-mce-href') ? $(this).attr('data-mce-href') : $(this).attr('href')); 402 }); 403 $("body").on("click", ".__RTP__modalform", function(e) { 404 e.preventDefault(); 405 ["collapseModal_contact-us", 406 "collapseModal_kontaktieren-sie-uns", 407 "collapseModal_contatti", 408 "collapseModal_contactenos"].forEach(function(modal_id){ 409 if ($("#"+modal_id).length) { 410 $("#"+modal_id).modal("show"); 411 } 412 }); 413 }); 414 415 $(".header-menu-toggle").exists(function() { 416 $(this).click(function(e) { 417 e.preventDefault(); 418 $(this).toggleClass("op-active"); 419 }); 420 }); 421 422 $("#seb_self_registration_email").keyup(function() { 423 $(this).val($(this).val().toLowerCase()); 424 }); 425 426 $(".itemid-185, .itemid-1115, .itemid-1116, .itemid-1118, .itemid-1117").exists(function() { 427 $.each(["h1", "h2", "h3", "#main-content-desc p", ".wysiwyg p"], function( index , value ) { 428 if ( $(value).length > 0 ) { 429 $.each( $(value), function( i , v ) { 430 if ( $(v).length > 0 ) { 431 var 432 str = v.innerHTML, 433 reg = /reup/i; 434 v.innerHTML = str.replace(reg, "<span class='reup'>reup</span>"); 435 v.innerHTML = v.innerHTML.replace("-<span class='reup'>reup</span>", "-reup"); 436 } 437 }); 438 } 439 }); 440 }); 441 442 $(".o-author a").exists(function() { 443 var total = 9, thatHash = $('.o-author a').hash; 444 $.each([".bar-admin",".bar-header", "#absolute"], function( index , value ) { 445 if ( $(value).length > 0 ) { 446 total += $(value).outerHeight(true); 447 } 448 }); 449 $(this).attr("uk-scroll","offset:"+total); 450 }); 451 452 $(".o-scroll-btn").exists(function() { 453 var total = 9, thatHash = $(this).hash; 454 $.each([".bar-admin",".bar-header", "#absolute"], function( index , value ) { 455 if ( $(value).length > 0 ) { 456 total += $(value).outerHeight(true); 457 } 458 }); 459 $(this).attr("uk-scroll","offset:"+total); 460 }); 461 462 463 464 465 $(".js-editor-tinymce").exists(function() { 466 var element = $(this); 467 $(this).css({ "z-index":979 }); 468 $( window ).on( 'scroll', function () { 469 var offset = 0; 470 $.each([".bar-admin",".bar-header", "#absolute"], function( index , value ) { 471 if ( $(value).length > 0 ) { 472 offset += $(value).outerHeight(true); 473 } 474 }); 475 var resizeHeight = $('body').outerHeight(true) - offset - 80; 476 var eTopOrigin = element.offset().top; 477 var eTop = eTopOrigin - $(window).scrollTop(); 478 479 if( eTopOrigin == eTop ) { 480 element.find('iframe').height(250); 481 }else{ 482 element.find('iframe').height(resizeHeight); 483 } 484 }); 485 }); 486 487 488 489 $('.o-push .mod-marketo').exists(function() {
490 $(this).find(".modal-marketo").addClass("pushto").appendTo("body"); 491 $(".pushto").wrap( "<div class='mod-marketo'></div>") 492 }); 493 494 var toto = UIkit.slideshow('#slide-main', { 495 "animation": "push", 496 "autoplay":false, 497 "autoplayInterval":8000, 498 "maxHeight": 400, 499 "minHeight": 400, 500 "infinite":true 501 }); 502 503 $(".th-to-ukdrop").thToUkdrop(); 504 $(".table-to-ukdrop").tableToUkdrop(); 505 $(".wysiwyg table" ).each(function() { 506 var th = $( this ).find( 'th' ); 507 if ( th.length >= 1 ) { 508 $( this ).not('.o-table-responsive-1').basictable({header:true,breakpoint: 768}); 509 }else{ 510 $( this ).not('.o-table-responsive-1').basictable({header:false,breakpoint: 768}); 511 } 512 $( this ).not('.o-table-responsive-1').find('td').attr('style','width:100%; padding:8px 16px; margin:0 0 16px 0;border:1px solid #e2e2e2'); 513 514 var table_type = $(this).attr('data-table-type'); 515 var table_style = $(this).attr('data-table-style'); 516 517 if ( table_type == 1 ) { 518 $( this ).not('.o-table-responsive-1').find('td').attr('style','width:100%; padding:8px 16px; margin:0 0 16px 0;border:none'); 519 } 520 521 if ( table_style == 1 && table_type == 0 ) { 522 $( this ).not('.o-table-responsive-1').find('td').attr('style','width:100%; padding:8px 16px; margin:0 0 16px 0;border:1px solid #e2e2e2;border-left:2px solid #0097AA'); 523 } 524 if ( table_style == 2 && table_type == 0 ) { 525 $( this ).not('.o-table-responsive-1').find('td').attr('style','width:100%; padding:8px 16px; margin:0 0 16px 0;border:1px solid #e2e2e2;border-left:2px solid #51b046'); 526 } 527 if ( table_style == 3 && table_type == 0 ) { 528 $( this ).not('.o-table-responsive-1').find('td').attr('style','width:100%; padding:8px 16px; margin:0 0 16px 0;border:1px solid #e2e2e2;border-left:2px solid #ef773c'); 529 } 530 }); 531 $( window ).on( 'load beforeunload resize', function () { 532 $tableTag = $( ".wysiwyg > table.o-table-responsive-1" ); 533 if ( $(window).width() <= 768) { 534 $tableTag.wrap( "<div class='table-resp'></div>" ); 535 } 536 if ( $(window).width() >= 769) { 537 $( ".wysiwyg > .table-resp > table.o-table-responsive-1" ).unwrap(); 538 } 539 }); 540 541 Innio.animHomeMedia(); 542 Innio.animRemanLogo(); 543 Innio.addLogo(); 544 545 $(".o-comp-btn").elComponent({ 546 IDopen:["id-8487","id-8499","id-139472","id-138531","id-139509","id-139592","id-139593", "id-207560", "id-210412", "id-207562", "id-232805", "id-232584"] 547 }); 548 549 550 $("a[class^='o-plus-'],a[class*=' o-plus-']").elComponent({href:true}); 551 552 $(".mht").matchHeight({ 553 byRow: true, 554 property: 'height', 555 target: null, 556 remove: false 557 }); 558 $("body").on("click", ".modal-backdrop.scroll-to-action", function() { 559 $(this).remove(); 560 $("body").removeClass("highlighted"); 561 }); 562 563 $("body.lp footer").on('click', "ul.nav a", function(event) { 564 event.preventDefault(); 565 var url = $(this).attr("href"); 566 var p = url.indexOf('#'); 567 if ( p != -1 ) { 568 JCck.InnioProject.modal.settings.callbacks.shown = function() { 569 var myElement = document.getElementById('Cookies_and_Similar_Technologies'); 570 document.getElementById("wy").scrollTop = myElement.offsetTop - 107; 571 }; 572 url = url.substring(0,p); 573 } else { 574 JCck.InnioProject.modal.settings.callbacks.shown = function() { 575 return false; 576 }; 577 } 578 JCck.InnioProject.modal.loadUrl(url); 579 }); 580 581 $('#main > #overlay').exists(function() { 582 $('.o-pull').addClass("bg-before"); 583 }); 584 585 $(".innio-coopol").on("click", function() { 586 $('html', window.parent.document).addClass("coopol-freeze-alone"); 587 $("#coopol", window.parent.document).show(); 588 $('#coopol', window.parent.document).addClass('active-coopol'); 589 parent.jQuery('.coopol-toggle-display').trigger("click"); 590 }); 591 592 $(".innio-youtube").on("click", function() { 593 parent.Coopol.AllowGroup(3); 594 }); 595 596 UIkit.util.on('.o-items-phone', 'show', function () { 597 var el = $('.o-interface').find('.mod-marketo > .like-sticky-card').attr("style", '').removeClass('o-hide like-sticky-card').addClass('o-grid o-rgap-8 o-align-jic o-line-top'); 598 el.appendTo(".o-items-phone"); 599 $('.o-interface').find('.mod-marketo').appendTo("body"); 600 }); 601 }); 602 603 $( window ).on( 'load beforeunload', function () { 604 Innio.animHomeMedia(); 605 Innio.animDots(); 606 Innio.animSlideOne(); 607 }); 608 609 $(document).ready(function() { 610 // -- Specifications Slider 611 $('.o-switch-frequency').each(function(){ 612 JCck.InnioProject.slider($(this),$(this).find('.o-switch-slider').data('freq')); 613 }); 614 615 $('.o-switch-slider').not( ".disabled" ).on('click', function() { 616 if ($(this).attr('data-freq') == 50) { 617 JCck.InnioProject.slider($(this),60); 618 }else if ($(this).attr('data-freq') == 60) { 619 JCck.InnioProject.slider($(this),50); 620 } 621 }); 622 623 $('.o-switch-60').not( ".disabled" ).on('click', function() { 624 JCck.InnioProject.slider($(this),60); 625 }); 626 627 $('.o-switch-50').not( ".disabled" ).on('click', function() { 628 JCck.InnioProject.slider($(this),50); 629 }); 630 // ------- 631
632 $('#modal-cck').on('hide.bs.modal', function(e) { 633 this.querySelector('video').pause(); 634 }) 635 }); 636 637 JCck.InnioProject = { 638 modal: JCck.Core.getModal({"header":false,"class":"modal-frontend","url":{"tmpl":"raw"}}), 639 modal_kpi: JCck.Core.getModal({"mode":"image","navigation":1,"header":0,"class":"modal-frontend modal-sustainability-img"}), 640 modal_index: JCck.Core.getModal({"mode":"image","navigation":1,"header":0,"class":"modal-frontend modal-sustainability-img"}), 641 highlight: function() { 642 $('<div class="modal-backdrop fade in scroll-to-action"></div>').appendTo("body"); 643 $("body").addClass("highlighted"); 644 }, 645 reModal: function() { 646 JCck.InnioProject.modal.groups.ajax = []; 647 $(".cck-loading-more a[data-cck-modal]").each(function(i, e) { 648 JCck.InnioProject.modal.groups.ajax.push($(e)); 649 }); 650 JCck.InnioProject.modal.init(); 651 }, 652 slider: function(me,freq) { 653 var p = me.closest('.o-frequency-container'); 654 if (freq == 50) { 655 JCck.InnioProject.slider50(p); 656 } 657 if (freq == 60) { 658 JCck.InnioProject.slider60(p); 659 } 660 JCck.InnioProject.sliderFactsheets(p,freq); 661 }, 662 slider50: function(me) { 663 me.find('.o-switch-60').removeClass('active'); 664 me.find('.o-switch-50').addClass('active'); 665 if ( !me.find('.o-switch-frequency').hasClass("onlytoggle") ) { 666 me.find('.o-frequency-60').hide(); 667 me.find('.o-frequency-50').show(); 668 } 669 me.find('.o-switch-slider').attr("data-freq",50).removeClass('f60').addClass('f50'); 670 }, 671 slider60: function(me) { 672 me.find('.o-switch-60').addClass('active'); 673 me.find('.o-switch-50').removeClass('active'); 674 if ( !me.find('.o-switch-frequency').hasClass("onlytoggle") ) { 675 me.find('.o-frequency-60').show(); 676 me.find('.o-frequency-50').hide(); 677 } 678 me.find('.o-switch-slider').attr("data-freq",60).removeClass('f50').addClass('f60'); 679 }, 680 sliderFactsheets: function(elem,freq) { 681 var content = elem.closest('div.o-content'); 682 683 if ( content.find('a.octo-pdf-file').length > 0 ) { 684 if (freq == 50) { 685 content.find('a.octo-pdf-file.factsheet-50').show(); 686 content.find('a.octo-pdf-file.factsheet-60').hide(); 687 } else { 688 content.find('a.octo-pdf-file.factsheet-50').hide(); 689 content.find('a.octo-pdf-file.factsheet-60').show(); 690 } 691 } 692 } 693 }; 694})(jQuery); 695 696/*! modernizr 3.6.0 (Custom Build) | MIT * 697 * https://modernizr.com/download/?-webp-setclasses !*/ 698!function(e,n,A){function o(e,n){return typeof e===n}function t(){var e,n,A,t,a,i,l;for(var f in r)if(r.hasOwnProperty(f)){if(e=[],n=r[f],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(A=0;A<n.options.aliases.length;A++)e.push(n.options.aliases[A].toLowerCase());for(t=o(n.fn,"function")?n.fn():n.fn,a=0;a<e.length;a++)i=e[a],l=i.split("."),1===l.length?Modernizr[l[0]]=t:(!Modernizr[l[0]]||Modernizr[l[0]]instanceof Boolean||(Modernizr[l[0]]=new Boolean(Modernizr[l[0]])),Modernizr[l[0]][l[1]]=t),s.push((t?"":"no-")+l.join("-"))}}function a(e){var n=u.className,A=Modernizr._config.classPrefix||"";if(c&&(n=n.baseVal),Modernizr._config.enableJSClass){var o=new RegExp("(^|\\s)"+A+"no-js(\\s|$)");n=n.replace(o,"$1"+A+"js$2")}Modernizr._config.enableClasses&&(n+=" "+A+e.join(" "+A),c?u.className.baseVal=n:u.className=n)}function i(e,n){if("object"==typeof e)for(var A in e)f(e,A)&&i(A,e[A]);else{e=e.toLowerCase();var o=e.split("."),t=Modernizr[o[0]];if(2==o.length&&(t=t[o[1]]),"undefined"!=typeof t)return Modernizr;n="function"==typeof n?n():n,1==o.length?Modernizr[o[0]]=n:(!Modernizr[o[0]]||Modernizr[o[0]]instanceof Boolean||(Modernizr[o[0]]=new Boolean(Modernizr[o[0]])),Modernizr[o[0]][o[1]]=n),a([(n&&0!=n?"":"no-")+o.join("-")]),Modernizr._trigger(e,n)}return Modernizr}var s=[],r=[],l={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var A=this;setTimeout(function(){n(A[e])},0)},addTest:function(e,n,A){r.push({name:e,fn:n,options:A})},addAsyncTest:function(e){r.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=l,Modernizr=new Modernizr;var f,u=n.documentElement,c="svg"===u.nodeName.toLowerCase();!function(){var e={}.hasOwnProperty;f=o(e,"undefined")||o(e.call,"undefined")?function(e,n){return n in e&&o(e.constructor.prototype[n],"undefined")}:function(n,A){return e.call(n,A)}}(),l._l={},l.on=function(e,n){this._l[e]||(this._l[e]=[]),this._l[e].push(n),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},l._trigger=function(e,n){if(this._l[e]){var A=this._l[e];setTimeout(function(){var e,o;for(e=0;e<A.length;e++)(o=A[e])(n)},0),delete this._l[e]}},Modernizr._q.push(function(){l.addTest=i}),Modernizr.addAsyncTest(function(){function e(e,n,A){function o(n){var o=n&&"load"===n.type?1==t.width:!1,a="webp"===e;i(e,a&&o?new Boolean(o):o),A&&A(n)}var t=new Image;t.onerror=o,t.onload=o,t.src=n}var n=[{uri:"data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=",name:"webp"},{uri:"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",name:"webp.alpha"},{uri:"data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",name:"webp.animation"},{uri:"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",name:"webp.lossless"}],A=n.shift();e(A.name,A.uri,function(A){if(A&&"load"===A.type)for(var o=0;o<n.length;o++)e(n[o].name,n[o].uri)})}),t(),a(s),delete l.addTest,delete l.addAsyncTest;for(var p=0;p<Modernizr._q.length;p++)Modernizr._q[p]();e.Modernizr=Modernizr}(window,document);
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.