1(function ($) { 2 "use strict"; 3 /* 4 jQuery(window).load(function () { 5 var anchor = '.mobile-top-menu ul.nav-menu > li.menu-item-has-children'; 6 jQuery(anchor).prepend('<b class="caret"><i class="fa fa-fw">ï</i></b>'); 7 if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) { 8 jQuery('.mobile-top-menu ul.nav-menu li.menu-item-has-children b.caret').on('touchend', function() { 9 jQuery(this).parent().toggleClass('open'); 10 }); 11 } else { 12 jQuery('.mobile-top-menu ul.nav-menu li.menu-item-has-children b.caret').on('click', function () { 13 jQuery(this).parent().toggleClass('open'); 14 }); 15 } 16 }); 17 jQuery(window).resize(function () { 18 jQuery(".ult-carousel-wrapper").each(function () { 19 var $this = jQuery(this); 20 if ($this.hasClass("ult_full_width")) { 21 $this.removeAttr("style"); 22 var w = jQuery("html").outerWidth(); 23 var cw = $this.width(); 24 var left = (w - cw) / 2; 25 $this.css({"position": "relative", "left": "-" + left + "px", "width": w + "px"}); 26 } 27 }); 28 }); 29 jQuery(document).ready(function () { 30 // Post Like 31 jQuery("body").on("click", ".post-like a", function () { 32 var heart = jQuery(this); 33 var post_id = heart.data("post_id"); 34 jQuery.ajax({ 35 type: "post", 36 url: ajaxurl, 37 data: "action=post-like&nonce=" + ajax_nonce + "&imedica_post_like=&post_id=" + post_id, 38 success: function (count) { 39 if (count.indexOf("already") !== -1) { 40 var lecount = count.replace("already", ""); 41 if (lecount == 0) { 42 var lecount = "Like"; 43 } 44 heart.children(".like").removeClass("pastliked").addClass("disliked").html("<i class='fa fa-heart'></i>"); 45 heart.children(".count").removeClass("liked").addClass("disliked").text(lecount); 46 } else { 47 jQuery(".post-like.postid-" + post_id).html('<span class="like prevliked"><i class="fa fa-heart"></i></span> <span class="count alreadyliked">' + count + '</span>'); 48 } 49 } 50 }); 51 return false; 52 }); 53 jQuery(".ult-carousel-wrapper").each(function () { 54 var $this = jQuery(this); 55 if ($this.hasClass("ult_full_width")) { 56 var w = jQuery("html").outerWidth(); 57 var cw = $this.width(); 58 var left = (w - cw) / 2; 59 $this.css({ 60 "position": "relative", 61 "left": "-" + left + "px", 62 "width": w + "px" 63 }); 64 } 65 }); 66 */ 67 /*Scroll to top*/ 68/* 69 var h = jQuery("header.site-header-main").outerHeight(); 70 jQuery(window).scroll(function () { 71 if (jQuery(this).scrollTop() > h + 100) { 72 jQuery('.imd-scroll-top').fadeIn(); 73 } else { 74 jQuery('.imd-scroll-top').fadeOut(); 75 } 76 }); 77 //Click event to scroll to top 78 jQuery('.imd-scroll-top').click(function () { 79 jQuery('html, body').animate({ 80 scrollTop: 0 81 }, 800); 82 return false; 83 }); 84 // Apply lightbox to images 85 jQuery('#page').find('a.imedica-lightbox').colorbox({ 86 maxWidth: '80%', 87 maxHeight: '90%', 88 rel: 'imedica-lightbox', 89 opacity: 0.8, 90 transition: 'elastic', 91 current: '' 92 }); 93 }); 94 jQuery(window).load(function () { 95 var main_header = jQuery('.navbar-inverse1.header-default .site-navigation.primary-navigation ul.nav-menu > li > a'); 96 var stickyMenuList = jQuery('.navbar-inverse.header-default .site-navigation.primary-navigation ul.nav-menu > li > a'); 97 var title = jQuery('.navbar-inverse1.header-default div.header-main .site-heading').outerHeight(); 98 var stickyLogoHt = jQuery('.navbar-inverse.header-default div.header-main .site-title').outerHeight(); 99 var windowWidth = jQuery(window).width(); 100 if (windowWidth >= 783) { 101 main_header.css({ 102 'line-height': title + 'px' 103 }); 104 stickyMenuList.css({ 105 'line-height': stickyLogoHt + 'px' 106 }); 107 jQuery('.menu-search-default-head').css({ 108 'line-height': title + 'px' 109 }); 110 if ( jQuery('.navbar-inverse1').hasClass('header-default') ) { 111 menuLineheight( title ); 112 }; 113 } else { 114 main_header.removeAttr('style'); 115 } 116 var header_fixed = jQuery('.header-fixed').outerHeight() * 2; 117 jQuery('.header-fixed').css('top', '-' + (header_fixed + 20) + 'px'); 118 var hPos = jQuery('.site-header-main').height(); 119 var b = document.body; 120 var e = document.documentElement; 121 var left = parseFloat(window.pageXOffset || b.scrollLeft || e.scrollLeft); 122 var top = parseFloat(window.pageYOffset || b.scrollTop || e.scrollTop); 123 var main_header = jQuery('.header-main').outerHeight(); 124 if (hPos < (top - main_header)) { 125 jQuery('.header-fixed').css('top', '0px'); 126 } else { 127 jQuery('.header-fixed').css('top', '-' + header_fixed + 'px'); 128 } 129 }); 130 jQuery(window).resize(function (event) { 131 var main_header = jQuery('.header-default .site-navigation.primary-navigation ul.nav-menu > li > a'); 132 var stickyMenuList = jQuery('.navbar-inverse.header-default .site-navigation.primary-navigation ul.nav-menu > li > a'); 133 var title = jQuery('.header-default div.header-main .site-heading').outerHeight(); 134 var stickyLogoHt = jQuery('.navbar-inverse.header-default div.header-main .site-title').outerHeight(); 135 var windowWidth = jQuery(window).width(); 136 if (windowWidth >= 768) { 137 main_header.css({'line-height': title + 'px'}); 138 stickyMenuList.css({'line-height': stickyLogoHt + 'px'}); 139 if ( jQuery('.navbar-inverse1').hasClass('header-default') ) { 140 menuLineheight( title ); 141 }; 142 } else { 143 main_header.css('line-height', 'inherit'); 144 } 145 }); 146 // Fixed header 147 jQuery(window).scroll(function () { 148 var hPos = jQuery('.site-header-main').height(); 149 var b = document.body; 150 var e = document.documentElement; 151 var left = parseFloat(window.pageXOffset || b.scrollLeft || e.scrollLeft); 152 var top = parseFloat(window.pageYOffset || b.scrollTop || e.scrollTop); 153 var main_header = jQuery('.header-main').outerHeight(); 154 var header_fixed = jQuery('.header-fixed').outerHeight() * 2; 155 if (hPos < (top - main_header)) { 156 jQuery('.header-fixed').css('top', '0px'); 157 } else { 158 jQuery('.header-fixed').css('top', '-' + header_fixed + 'px'); 159 } 160 }); 161 jQuery(window).load(function () { 162 var parentList = 'ul.nav-menu li'; 163 jQuery(parentList).hover(function () { 164 var subMenuOffset = jQuery(this).children('ul').offset(); 165 var pageMargin = jQuery('#page').css('margin-right').replace("px", ""); 166 if (subMenuOffset) { 167 var distance = jQuery(window).width() - (subMenuOffset.left + jQuery(this).children('ul').width())
167- pageMargin; 168 if (distance < 0) { 169 jQuery(this).addClass('left_align'); 170 } 171 } 172 ; 173 }); 174 }) 175 */ 176 /*Price List js*/ 177/* 178 jQuery(document).ready(function () { 179 var listElemWrap = jQuery('.imd-price-list-element-wrap'); 180 var listIconWrap = jQuery('.imd-price-list-element-wrap .imd-price-list-icon-wrap i'); 181 var elemHvColor = jQuery(listElemWrap, this).data('hv-color'); 182 var elemColor = jQuery(listElemWrap, this).data('color'); 183 var iconClr = jQuery(listIconWrap).data('icn-clr'); 184 var iconHvClr = jQuery(listIconWrap).data('icn-hv-clr'); 185 var icnBkClr = jQuery(listIconWrap).data('icn-bk-clr'); 186 var icnBkHvClr = jQuery(listIconWrap).data('icn-bk-hv-clr'); 187 jQuery('.price_list_name:after').addClass('class_name'); 188 jQuery(listElemWrap, this).hover(function () { 189 /* Stuff to do when the mouse enters the element */ 190/* 191 jQuery(this).css('color', elemHvColor); 192 jQuery(this).find("i").css({ 193 color: iconHvClr, 194 background: icnBkHvClr, 195 }); 196 }, function () { 197 /* Stuff to do when the mouse leaves the element */ 198/* 199 jQuery(this).css('color', elemColor); 200 jQuery(this).find("i").css({ 201 color: iconClr, 202 background: icnBkClr 203 }); 204 }); 205 }); 206 /*js for menu*/ 207/* 208 jQuery(window).load(function () { 209 (function (e) { 210 var t = jQuery("body"); 211 var n = jQuery(window); 212 var r = jQuery(".imd-mobile-social-menu"); 213 var navMainMenu = jQuery("#primary-navigation"); 214 var navTopMenu = jQuery(".imedica-top-navigation"); 215 var headerMain = jQuery(".header-main"); 216 var i = jQuery(window).width(); 217 (function () { 218 var e = jQuery("#primary-navigation"); 219 if (!e) { 220 return; 221 } 222 var t = e.find(".menu-toggle"); 223 if (!t) { 224 return; 225 } 226 var n = e.find(".nav-menu"); 227 if (!n || !n.children().length) { 228 t.hide(); 229 return; 230 } 231 jQuery(".menu-toggle").on("click.fw_theme", function () { 232 r.removeClass("top-social-toggled-on"); 233 navTopMenu.removeClass("top-menu-toggled-on"); 234 e.toggleClass("toggled-on"); 235 if (headerMain.hasClass("auto-height")) { 236 headerMain.removeClass("auto-height"); 237 } else { 238 headerMain.addClass("auto-height"); 239 } 240 }); 241 jQuery(window).resize(function () { 242 if (jQuery(window).width() != i) { 243 headerMain.removeClass("auto-height"); 244 e.removeClass("toggled-on"); 245 } 246 }); 247 })(); 248 (function () { 249 var e = jQuery(".imedica-top-navigation"); 250 if (!e) { 251 return; 252 } 253 var t = e.find(".menu-toggle-top-menu"); 254 if (!t) { 255 return; 256 } 257 var n = e.find(".nav-menu"); 258 if (!n || !n.children().length) { 259 t.hide(); 260 return; 261 } 262 jQuery(".menu-toggle-top-menu").on("click.fw_theme", function () { 263 r.removeClass("top-social-toggled-on"); 264 navMainMenu.removeClass("toggled-on"); 265 e.toggleClass("top-menu-toggled-on"); 266 if (headerMain.hasClass("auto-height")) { 267 headerMain.removeClass("auto-height"); 268 } else { 269 headerMain.addClass("auto-height"); 270 } 271 }); 272 jQuery(window).resize(function () { 273 if (jQuery(window).width() != i) { 274 headerMain.removeClass("auto-height"); 275 e.removeClass("top-menu-toggled-on"); 276 } 277 }); 278 })(); 279 (function () { 280 var e = jQuery(".imd-mobile-social-menu"); 281 if (!e) { 282 return; 283 } 284 var t = e.find(".menu-toggle-imd-top-social"); 285 if (!t) { 286 return; 287 } 288 jQuery(".menu-toggle-imd-top-social").on("click.fw_theme", function () { 289 navTopMenu.removeClass("top-menu-toggled-on"); 290 navMainMenu.removeClass("toggled-on"); 291 e.toggleClass("top-social-toggled-on"); 292 if (headerMain.hasClass("auto-height")) { 293 headerMain.removeClass("auto-height"); 294 } else { 295 headerMain.addClass("auto-height"); 296 } 297 }); 298 jQuery(window).resize(function () { 299 if (jQuery(window).width() != i) { 300 headerMain.removeClass("auto-height"); 301 e.removeClass("top-social-toggled-on"); 302 i = jQuery(window).width(); 303 } 304 }); 305 })(); 306 n.on("hashchange.fw_theme", function () { 307 var e = document.getElementById(location.hash.substring(1)); 308 if (e) { 309 if (!/^(?:a|select|input|button|textarea)$/i.test(e.tagName)) { 310 e.tabIndex = -1; 311 } 312 e.focus(); 313 window.scrollBy(0, -80); 314 } 315 }); 316 jQuery(function () { 317 function e() { 318 return window.pageYOffset || document.documentElement.scrollTop; 319 } 320 321 function t() { 322 if (n.width() >= 781) { 323 var t = 80; 324 var r = e(); 325 if (r >= t) { 326 jQuery("header.site-header").addClass("navbar-fixed-top"); 327 } else { 328 jQuery("header.site-header").removeClass("navbar-fixed-top"); 329 } 330 } 331 } 332 333 jQuery(window).resize(function () { 334 t(); 335 }); 336 jQuery(window).scroll(function () { 337 t(); 338 }); 339 jQuery(".primary-navigation, .secondary-navigation").find("a").on("focus.fw_theme blur.fw_theme", function () { 340 jQuery(this).parents().toggleClass("focus"); 341 }); 342 }); 343 n.load(function () {
344 if (jQuery.isFunction(jQuery.fn.masonry)) { 345 jQuery("#footer-sidebar").masonry({ 346 itemSelector: ".widget", 347 columnWidth: function (e) { 348 return e / 4; 349 }, 350 gutterWidth: 0, 351 isResizable: true, 352 isRTL: jQuery("body").is(".rtl") 353 }); 354 } 355 if (t.is(".slider")) { 356 jQuery(".featured-content").featuredslider({ 357 selector: ".featured-content-inner > article", 358 controlsContainer: ".featured-content" 359 }); 360 } 361 }); 362 })(jQuery); 363 }); 364 /* Feture Box - Auto set height. */ 365/* 366 jQuery(window).load(function (e) { 367 set_feature_box_min_height(); 368 }); 369 jQuery(window).resize(function (e) { 370 set_feature_box_min_height(); 371 }); 372 jQuery('document').ready(function (e) { 373 set_feature_box_min_height(); 374 }); 375 function set_feature_box_min_height() { 376 jQuery('.col-futurebox').each(function (index, value) { 377 var WW = jQuery(window).width() || ''; 378 if (WW != '') { 379 if (WW >= 768) { 380 var h = jQuery(this).attr('data-min-height') || ''; 381 if (h != '') { 382 jQuery(this).css('min-height', h); 383 } 384 } else { 385 jQuery(this).css('min-height', 'initial'); 386 } 387 } 388 }); 389 } 390 391 jQuery('document').ready(function () { 392 jQuery('.col-futurebox').hover( 393 function () { 394 var hover = jQuery(this).find('.service-title').data('hover'); 395 jQuery(this).find('.service-title').css("color", hover); 396 var descrbhover = jQuery(this).find('.describe').data('hover'); 397 jQuery(this).find('.describe').css("color", descrbhover); 398 var c1 = jQuery(this).find('#btnlink').data('color'); 399 // console.log(c1); 400 jQuery(this).find('#btnlink').css("color", c1); 401 var backhover = jQuery(this).data('hover'); 402 jQuery(this).css("background-color", backhover); 403 jQuery(this).css("color", backhover); 404 var btnhover = jQuery(this).find('#btnlink').data('btncolor'); //console.log(btnhover); 405 jQuery(this).find('#btnlink').css("background-color", btnhover); 406 var borderhover = jQuery(this).data('borderhover'); 407 jQuery(this).css("border-top-color", borderhover); 408 var featuretabhover = jQuery(this).find('.featuretab').data('hover'); 409 jQuery(this).find('.featuretab').find('.featurerow').css("border-top-color", featuretabhover); 410 var linkborderbhover = jQuery(this).find('#btnlink').data('bcolor'); 411 jQuery(this).find('#btnlink').css("border-color", linkborderbhover); 412 }, 413 function () { 414 var color = jQuery(this).find('.service-title').data('color'); 415 jQuery(this).find('.service-title').css("color", color); 416 var backcolor = jQuery(this).find('.describe').data('color'); 417 jQuery(this).find('.describe').css("color", backcolor); 418 var btncolor = jQuery(this).find('#btnlink').data('color'); 419 jQuery(this).find('#btnlink').css("color", btncolor); 420 var backcoler = jQuery(this).data('color'); 421 jQuery(this).css("background-color", backcoler); 422 jQuery(this).css("color", backcoler); 423 var btnbccolor = jQuery(this).find('#btnlink').data('btncolor'); //console.log(btnbccolor); 424 jQuery(this).find('#btnlink').css("background-color", btnbccolor); 425 var bordercolor = jQuery(this).data('bordercolor'); 426 jQuery(this).css("border-top-color", bordercolor); 427 var featuretacolor = jQuery(this).find('.featuretab').data('color'); 428 jQuery(this).find('.featuretab').find('.featurerow').css({ 429 "border-top-color": featuretacolor 430 }); 431 var linkbordercolor = jQuery(this).find('#btnlink').data('bcolor'); 432 jQuery(this).find('#btnlink').css("border-color", linkbordercolor); 433 } 434 ); 435 /*-------- for mouseover on button----------------*/ 436/* 437 jQuery('.infobox_button').hover( 438 function () { 439 var b1 = jQuery(this).data('hover'); 440 jQuery(this).css("color", b1); 441 var b2 = jQuery(this).data('btnhovercolor'); //console.log(btnhover); 442 jQuery(this).css("background-color", b2); 443 var linkborderbhover = jQuery(this).data('bhover'); 444 jQuery(this).css("border-color", linkborderbhover); 445 }, 446 function () { 447 var bh1 = jQuery(this).data('color'); 448 jQuery(this).css("color", bh1); 449 var bh2 = jQuery(this).data('btncolor'); //console.log(btnbccolor); 450 jQuery(this).css("background-color", bh2); 451 var linkbordercolor = jQuery(this).data('bcolor'); 452 jQuery(this).css("border-color", linkbordercolor); 453 } 454 ); 455 }); 456 /*-- for infobox border hover---------*/ 457/* 458 jQuery('document').ready(function () { 459 jQuery('.futurebox .icon-box-3').each(function (index, value) { 460 var CW = jQuery(window).width() || ''; 461 if (CW != '') { 462 if (CW >= 768) { 463 var ch = jQuery(this).attr('data-min-height') || ''; 464 if (ch != '') { 465 jQuery(this).css('min-height', ch); 466 } 467 } else { 468 jQuery(this).css('min-height', 'initial'); 469 } 470 } 471 }); 472 // get before hover fold bg color 473 jQuery('.icon-box-3').hover( 474 function () { 475 var cbhocolor = jQuery(this).data('borderhover'); 476 jQuery(this).css("border-color", cbhocolor); 477 var tabborderhover = jQuery(this).find('.featuretab').data('hover'); 478 jQuery(this).find('.featurerow').css("border-color", tabborderhover); 479 // fold hover color 480 var boxHover = jQuery(this).data('hover'); 481 jQuery(this).find('.icon-box-back2').css({ 482 "border-right-color": boxHover 483 }); 484 }, 485 function () { 486 // fold color 487 var foldColor = jQuery(this).find('.icon-box-back2').data('fold-color'); 488 jQuery(this).find('.icon-box-back2').css({ 489 "border-right-color": foldColor 490 }); 491 var cbcolor = jQuery(this).data('border-default'); 492 // console.log(cbcolor); 493 jQuery(this).css('border-color', cbcolor); 494 // console.log(jQuery(this)); 495 // var jmcolor = jQuery(this).data('bordercolor'); 496 // jQuery(this).css("border-color", jmcolor); 497 var tabborder = jQuery(this).find('.featuretab').data('color'); 498 jQuery(this).find('.featurerow').css("border-color", tabborder); 499 } 500 ); 501 /* ---- for call to action -----------------*/ 502/* 503 jQuery('.imedica-btn ').hover( 504 function () { 505 var cbhocolor1 = jQuery(this).find('.imedica-icon').data('iconh
505overcolor'); 506 jQuery(this).find('.imedica-icon').css("color", cbhocolor1); 507 }, 508 function () { 509 var jmcolor1 = jQuery(this).find('.imedica-icon').data('iconcolor'); 510 jQuery(this).find('.imedica-icon').css("color", jmcolor1); 511 } 512 ); 513 /*--- for recent post-----------*/ 514/* 515 jQuery('.postgrid-atitle').hover( 516 function () { 517 var posttitlecolor = jQuery(this).data('titlehovercolor'); 518 jQuery(this).css("color", posttitlecolor); 519 jQuery(this).siblings('tour_icon').css('color', posttitlecolor); 520 }, 521 function () { 522 var posthovertitle = jQuery(this).data('titlecolor'); 523 jQuery(this).css("color", posthovertitle); 524 jQuery(this).siblings('tour_icon').css('color', posthovertitle); 525 } 526 ); 527 /*--- forPricing Table -----------*/ 528/* 529 jQuery('.imedicapricetabmain').hover( 530 function () { 531 var circlehovercolor = jQuery(this).find('.price-figure').data('circlehover'); 532 jQuery(this).find('.price-figure').css("background-color", circlehovercolor); 533 var pricehovercolor = jQuery(this).find('.price-figure').data('pricehover'); 534 jQuery(this).find('.price-figure').css("color", pricehovercolor); 535 jQuery(this).find('.price-link').css("color", pricehovercolor); 536 var semicirclehovercolor = jQuery(this).find('.price-semi-circle').data('borderhover'); 537 jQuery(this).find('.price-semi-circle').css("border-color", semicirclehovercolor); 538 var circlelinkhcolor = jQuery(this).find('.price-link').data('circlehover'); 539 jQuery(this).find('.price-link').css("background-color", circlelinkhcolor); 540 }, 541 function () { 542 var circlecolor = jQuery(this).find('.price-figure').data('circle'); 543 jQuery(this).find('.price-figure').css("background-color", circlecolor); 544 var semicircle = jQuery(this).find('.price-semi-circle').data('border'); 545 jQuery(this).find('.price-semi-circle ').css("border-color", semicircle); 546 var circlelinkcolor = jQuery(this).find('.price-link').data('circle'); 547 jQuery(this).find('.price-link').css("background-color", circlelinkcolor); 548 var pricecolor = jQuery(this).find('.price-figure').data('pricecolor'); 549 jQuery(this).find('.price-figure').css("color", pricecolor); 550 jQuery(this).find('.price-link').css("color", pricecolor); 551 } 552 ); 553 /*-------------------- price list --------------------*/ 554/* 555 jQuery('.imd-price-list-element-wrap').hover( 556 function () { 557 var bttlehover = jQuery(this).data('boldhover'); 558 if (bttlehover == 'on') { 559 jQuery(this).find('.imd-pricelist-item-name').addClass("pricelist-hover"); 560 } 561 }, 562 function () { 563 var bttlehover = jQuery(this).data('boldhover'); 564 if (bttlehover == 'on') { 565 jQuery(this).find('.imd-pricelist-item-name').removeClass("pricelist-hover"); 566 } 567 }); 568 }); 569 /*Galley VC element - iMedica*/ 570/* 571 jQuery(window).load(function () { 572 var galleryWidth = jQuery('.imedica_image_gallery').outerWidth(); 573 var noOfImages = Math.round(galleryWidth / 70); 574 var imgSize = galleryWidth / noOfImages; 575 jQuery('.imedica_image_gallery .bx-pager a').css('width', imgSize); 576 jQuery(window).resize(function () { 577 var galleryWidth = jQuery('.imedica_image_gallery').outerWidth(); 578 var noOfImages = Math.round(galleryWidth / 70); 579 var imgSize = galleryWidth / noOfImages; 580 imgSize = imgSize - 0.04; 581 jQuery('.imedica_image_gallery .bx-pager a').css('width', imgSize); 582 }); 583 }); 584 jQuery(window).load(function () { 585 jQuery('.ultimate-accordion').each(function (index, element) { 586 var t = jQuery(this); 587 var Icon_Default_Color = t.find('.accrdn-icon').data('default'); 588 var Icon_Active_Color = t.find('.accrdn-icon').data('active'); 589 if (!t.find('.ultimate-accordion-title').hasClass('ui-state-active')) { 590 t.find('span.ui-accordion-header-icon').css({ 591 'color': Icon_Default_Color 592 }); 593 } else { 594 t.find('span.ui-accordion-header-icon').css({ 595 'color': Icon_Active_Color 596 }); 597 } 598 }); 599 }); 600 jQuery(window).load(function () { 601 jQuery('.ultimate-accordion').each(function (index, element) { 602 var t = jQuery(this); 603 // @var title 604 var Box_Default_Bg = t.data('default'); 605 var Box_Active_Bg = t.data('active'); 606 var Box_Hover_Bg = t.data('hover'); 607 // @var icon 608 var Icon_Default_Color = t.find('.accrdn-icon').data('default'); 609 var Icon_Active_Color = t.find('.accrdn-icon').data('active'); 610 var Icon_Hover_Color = t.find('.accrdn-icon').data('hover'); 611 var Icon_Hover_BGColor = t.find('.accrdn-icon').data('bghover'); 612 // @var title 613 var Title_Default_Color = t.find('.ui-title').data('default'); 614 var Title_Active_Color = t.find('.ui-title').data('active'); 615 var Title_Hover_Color = t.find('.ui-title').data('hover'); 616 jQuery(this).hover(function () { 617 if (t.find('.ultimate-accordion-title').hasClass('ui-state-active')) { 618 t.find('.ultimate-accordion-title').css({ 619 'background-color': Box_Active_Bg 620 }); 621 t.find('.accrdn-icon').css({ 622 'background-color': Box_Active_Bg 623 }); 624 t.find('.accrdn-icon').css({ 625 'color': Icon_Active_Color 626 }); 627 t.find('.ui-accordion-header-icon').css({ 628 'color': Icon_Active_Color 629 }); 630 t.find('.ui-title').css({ 631 'color': Title_Active_Color 632 }); 633 } else { 634 t.find('.ultimate-accordion-title').css({ 635 'background-color': Box_Hover_Bg 636 }); 637 t.find('.accrdn-icon').css({ 638 'color': Icon_Hover_Color 639 }); 640 t.find('.ui-accordion-header-icon').css({ 641 'color': Icon_Hover_BGColor 642 }); 643 t.find('.accrdn-icon').css({ 644 'background': Icon_Hover_BGColor 645 }); 646 t.find('.ui-title').css({ 647 'color': Title_Hover_Color 648 }); 649 } 650 651 }, function () { 652 // !active tab 653 if (!t.find('.ultimate-accordion-title').hasClass('ui-state-active')) { 654 // default 655 t.find('.ultimate-accordion-title').css({ 656 'background-color': Box_Default_Bg 657 }); 658 t.find('.accrdn-icon').css({ 659 'color': Icon_Default_Color 660 }); 661 t.find('.ui-accordion-header-icon').css({ 662 'color': Icon_Default_Color 663 }); 664 t.find('.accrdn-icon').css({ 665 'background': Box_Default_Bg 666 }); 667 t.find('.ui-title').css({ 668 'color': Title_Default_Color 669 }); 670 } 671 }); 672 // click 673 jQuery(this).click(function () { 674 var o = jQuery(this); 675 o.find('.ultimate-accordion-title').css({ 676 'background-color': Box_Active_Bg 677 }); 678 o.find('.accrdn-icon').css({ 679 'background-color': Box_Active_Bg 680 }); 681 o.find('.accrdn-icon').css({ 682 'color': Icon_Active_Color 683 }); 684 o.find('.ui-accordion-header-icon').css({ 685 'color': Icon_Active_Color 686 }); 687 o.find('.ui-title').css({ 688 'color': Title_Active_Color 689 }); 690 o.siblings().each(function () { 691 var s = jQuery(this); 692 s.find('.ultimate-accordion-title').css({ 693 'background-color': Box_Default_Bg 694 }); 695 s.find('.accrdn-icon').css({ 696 'color': Icon_Default_Color 697 }); 698 s.find('.ui-accordion-header-icon').css({ 699 'color': Icon_Default_Color 700 }); 701 s.find('.accrdn-icon').css({ 702 'background': Box_Default_Bg 703 }); 704 s.find('.ui-title').css({ 705 'color': Title_Default_Color 706 }); 707 }); 708 }); 709 }); 710 }); 711 jQuery(window).load(function () { 712 jQuery('.ultimate-accordion').each(function (index, element) { 713 var t = jQuery(this); 714 // @var title 715 var Box_Default_Bg = t.data('default'); 716 var Box_Active_Bg = t.data('active'); 717 var Box_Hover_Bg = t.data('hover'); 718 // @var icon 719 var Icon_Default_Color = t.find('.accrdn-icon').data('default'); 720 var Icon_Active_Color = t.find('.accrdn-icon').data('active'); 721 var Icon_Hover_Color = t.find('.accrdn-icon').data('hover'); 722 // @var icon 723 var Title_Default_Color = t.find('.ui-title').data('default'); 724 var Title_Active_Color = t.find('.ui-title').data('active'); 725 var Title_Hover_Color = t.find('.ui-title').data('hover'); 726 // @init set active colors for active tab 727 if (t.find('.ultimate-accordion-title').hasClass('ui-state-active')) { 728 t.find('.ultimate-accordion-title').css({ 729 'background-color': Box_Active_Bg 730 }); 731 t.find('.accrdn-icon').css({ 732 'color': Icon_Active_Color 733 }); 734 t.find('.ui-title').css({ 735 'color': Title_Active_Color 736 }); 737 } else { 738 } 739 }); 740 }); 741 /*--------------- for Tours------------------*/ 742/* 743 jQuery(window).load(function () { 744 jQuery('.imd_tour li#imd_mainlink').hover( 745 function () { 746 var acve = jQuery(this).attr('class');
747 var bstyleno = acve.split(" "); 748 if (jQuery.inArray('ui-tabs-active', bstyleno) > -1) { 749 } else { 750 var triconhcolor = jQuery(this).find('.tour_icon').data('iconhovercolor'); 751 var bghover = jQuery(this).find('.tour_icon').data('background'); 752 jQuery(this).find('.tour_icon').css("color", triconhcolor); 753 jQuery(this).find('.tour_icon').css("background", bghover); 754 var linktitlehcolor = jQuery(this).find('.imd_link').data('titlehovercolor'); 755 jQuery(this).find('.imd_link').css("color", linktitlehcolor); 756 } 757 }, 758 function () { 759 var acve = jQuery(this).attr('class'); 760 var bstyleno = acve.split(" "); 761 if (jQuery.inArray('ui-tabs-active', bstyleno) > -1) { 762 } else { 763 var triconcolor = jQuery(this).find('.tour_icon').data('iconcolor'); 764 jQuery(this).find('.tour_icon').css("color", triconcolor); 765 jQuery(this).find('.tour_icon').css("background", 'none'); 766 var linktitlecolor = jQuery(this).find('.imd_link').data('color'); 767 jQuery(this).find('.imd_link').css("color", linktitlecolor); 768 } 769 }); 770 }); 771 jQuery(window).load(function () { 772 jQuery('.imd_tour li>a.ultimate_tour').on('click', function () { 773 var tourticon = jQuery(this).parent().find('.tour_icon').data('iconh
773overcolor'); 774 var iconbackground = jQuery(this).parent().find('.tour_icon').data('background'); 775 var titletour = jQuery(this).parent().find('.imd_link').data('titlehovercolor'); 776 var ticnnormal = jQuery(this).parent().find('.tour_icon').data('iconcolor'); 777 var linktitlecolor = jQuery(this).parent().find('.imd_link').data('color'); 778 jQuery(this).find('.tour_icon').css("color", tourticon); 779 jQuery(this).find('.tour_icon').css("background", iconbackground); 780 jQuery(this).find('.imd_link').css("color", titletour); 781 jQuery(this).parent().siblings().find('.tour_icon').css("color", ticnnormal); 782 jQuery(this).parent().siblings().find('.tour_icon').css("background", 'none'); 783 jQuery(this).parent().siblings().find('.imd_link').css("color", linktitlecolor); 784 }); 785 }); 786 jQuery(window).load(function () { 787 jQuery('ul.wpb_tabs_nav').find('li.ui-state-active').each(function (index, value) { 788 var ticon = jQuery(this).find('.tour_icon').data('iconh
788overcolor'); 789 var ibag = jQuery(this).find('.tour_icon').data('background'); 790 var ttitle = jQuery(this).find('.imd_link').data('titlehovercolor'); 791 jQuery(this).find('.tour_icon').css("color", ticon); 792 jQuery(this).find('.tour_icon').css("background", ibag); 793 jQuery(this).find('.imd_link').css("color", ttitle); 794 }); 795 }); 796 */ 797 // Large Search Header 1 798 /* 799 jQuery(window).load(function () { 800 jQuery('.search-large').addClass('search-close'); 801 jQuery('.menu-search-default-head a').on('click touchstart', function (event) { 802 event.preventDefault(); 803 event.stopPropagation(); 804 jQuery('.search-large').removeClass('search-close'); 805 jQuery('.search-large').toggleClass('open-search'); 806 jQuery('.search-large input.imd-search').focus(); 807 808 /* New search layout*/ 809/* 810 jQuery('.new_search_form').fadeToggle(200); 811 jQuery('.new_search_form').toggleClass('imd-bounceIt'); 812 jQuery('.new_search_form input.imd-search').focus(); 813 814 event.preventDefault(); 815 event.stopPropagation(); 816 }); 817 818 $("body").click 819 ( 820 function(e) 821 { 822 if( !jQuery(e.target).hasClass("new_search_form") && jQuery(e.target).parents(".new_search_form").length === 0 && jQuery(e.target).parents(".imedica-search").length === 0 ) 823 { 824 jQuery('.new_search_form').fadeOut(200); 825 jQuery('.new_search_form').removeClass('imd-bounceIt'); 826 } 827 } 828 ); 829 830 jQuery('a.search-close,.search-large.open-search').on('click', function (event) { 831 event.preventDefault(); 832 jQuery('.search-large').removeClass('open-search'); 833 jQuery('.search-large').addClass('search-close'); 834 }); 835 jQuery(document).keydown(function (e) { 836 if (e.keyCode == 27) { 837 jQuery('.search-large.open-search').removeClass('open-search'); 838 jQuery('.search-large.open-search').addClass('search-close'); 839 } 840 }); 841 }); 842 /*Transparent Header Functionality*/ 843 // jQuery(window).load(function () { 844 // var windowWidth = jQuery(window).width(); 845 // if (windowWidth >= 783) { 846 // var transHeight = jQuery('header.site-header-main').outerHeight(); 847 // var thmShowcase = jQuery('.transparent_header .theme-showcase'); 848 // var showCaseHt = thmShowcase.outerHeight() - transHeight; 849 // jQuery('.transparent_header .theme-showcase').css({ 850 // position: 'relative', 851 // top: -transHeight, 852 // height: showCaseHt 853 // }); 854 // ; 855 // } 856 // else if (windowWidth <= 783) { 857 // jQuery('.transparent_header .theme-showcase').removeAttr('css'); 858 // jQuery('body').removeClass('transparent_header'); 859 // } 860 // }); 861 // jQuery(window).resize(function (e) { 862 // var windowWidth = jQuery(window).width(); 863 // if (windowWidth <= 783) { 864 // jQuery('.transparent_header .theme-showcase').removeAttr('style'); 865 // jQuery('body').removeClass('transparent_header'); 866 // } 867 // }); 868 /* Info Box - Auto set height. */ 869/* 870 jQuery('document').ready(function (e) { 871 iMedicaInfoBox(); 872 }); 873 jQuery(window).load(function (e) { 874 iMedicaInfoBox(); 875 }); 876 jQuery(window).resize(function (e) { 877 iMedicaInfoBox(); 878 }); 879 function iMedicaInfoBox() { 880 var CW = jQuery(window).width() || ''; 881 jQuery('.futurebox .icon-box-3').each(function (index, value) { 882 if (CW != '') { 883 if (CW >= 768) { 884 var ch = jQuery(this).attr('data-min-height') || ''; 885 if (ch != '') { 886 jQuery(this).css('min-height', ch); 887 } 888 } else { 889 jQuery(this).css('min-height', 'initial'); 890 } 891 } 892 }); 893 } 894 895 896 function menuLineheight( $lineht ) { 897 jQuery.post( imd_ajax.ajax_url,{ 898 action:'lineheight_menu', 899 lineht: $lineht 900 }); 901 } 902 */ 903 /* jQuery('.menu-item-has-children a').on('mouseover', function() { 904 return false 905});*/ 906//Hervorhebung TAB-Taste 907//$('#mobile-navigation-btn').attr("aria-label"," Navigation öffnen und schlieÃen "); 908 jQuery(".site-content a, .site-content aera, .site-content button, .site-content input, .site-content select, .site-content textarea").keyup(function(){ 909 jQuery(this).addClass('umrahmung2'); 910 jQuery(".imd-footer a, .site-content .site-content aera, .site-content button, .site-content input, .site-content select, .site-content textarea").not(this).removeClass('umrahmung2'); 911 }); 912 913 jQuery(".imd-footer a").keyup(function(){ 914 jQuery(this).addClass('umrahmung'); 915 jQuery(".imd-footer a").not(this).removeClass('umrahmung'); 916 }); 917 918 jQuery(".menu-item a").keyup(function(){ 919 jQuery(this).addClass('umrahmung'); 920 jQuery(".menu-item a").not(this).removeClass('umrahmung'); 921 }); 922 jQuery(".site-logo-img").keyup(function(){ 923 jQuery(this).addClass('umrahmung'); 924 jQuery(".site-logo-img").not(this).removeClass('umrahmung'); 925 }); 926 jQuery(".menu-toggle").attr("aria-label","Ãffnen und SchlieÃen der Navigation");
927/*jQuery(".menu-item-has-children a").unbind('mouseenter mouseleave'); 928 jQuery('.menu-item-has-children a').off('hover');*/ 929 //jQuery('a').live('click', function(){}); 930jQuery('.menu-item-has-children a').unbind('mouseover', mouseOver).unbind('mouseout', mouseOut); 931})(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.