1"use strict"; 2(function ($, window, document, undefined) { 3 4 5 var pluginName = "metisMenu", 6 defaults = { 7 toggle: true, 8 doubleTapToGo: false 9 }; 10 11 function Plugin(element, options) { 12 this.element = element; 13 this.settings = $.extend({}, defaults, options); 14 this._defaults = defaults; 15 this._name = pluginName; 16 this.init(); 17 } 18 19 Plugin.prototype = { 20 init: function () { 21 var $this = $(this.element), 22 $toggle = this.settings.toggle, 23 obj = this 24 if (this.isIE() <= 9) { 25 $this.find("li.active").has("ul").children("ul").collapse("show"); 26 $this.find("li").not(".active").has("ul").children("ul").collapse("hide"); 27 } else { 28 $this.find("li.active").has("ul").children("ul").addClass("collapse show"); 29 $this.find("li").not(".active").has("ul").children("ul").addClass("collapse"); 30 } 31 //add the "doubleTapToGo" class to active items if needed 32 if (obj.settings.doubleTapToGo) { 33 $this.find("li.active").has("ul").children("a").addClass("doubleTapToGo"); 34 } 35 $this.find("li").has("ul").children("a").on("click", function (e) { 36 e.preventDefault(); 37 //Do we need to enable the double tap 38 if (obj.settings.doubleTapToGo) { 39 //if we hit a second time on the link and the href is valid, navigate to that url 40 if (obj.doubleTapToGo($(this)) && $(this).attr("href") !== "#" && $(this).attr("href") !== "") { 41 e.stopPropagation(); 42 document.location = $(this).attr("href"); 43 return; 44 } 45 } 46 $(this).parent("li").toggleClass("active").children("ul").collapse({ 47 toggle: true, 48 animate: false 49 }); 50 $this.find("li.active").has("ul").children("ul").addClass("collapse show"); 51 if ($toggle) { 52 $(this).parent("li").siblings().removeClass("active").children("ul.show").collapse("hide"); 53 $this.find("li.active").has("ul").children("ul").addClass("collapse show"); 54 $this.find("li").not(".active").has("ul").children("ul").removeClass("show"); 55 } 56 }); 57 }, 58 isIE: function () { //https://gist.github.com/padolsey/527683 59 var undef, 60 v = 3, 61 div = document.createElement("div"), 62 all = div.getElementsByTagName("i"); 63 while ( 64 div.innerHTML = "<!--[if gt IE " + (++v) + "]><i></i><![endif]-->", 65 all[0] 66 ) { 67 return v > 4 ? v : undef; 68 } 69 }, 70 //Enable the link on the second click. 71 doubleTapToGo: function (elem) { 72 var $this = $(this.element); 73 //if the class "doubleTapToGo" exists, remove it and return 74 if (elem.hasClass("doubleTapToGo")) { 75 elem.removeClass("doubleTapToGo"); 76 return true; 77 } 78 //does not exists, add a new class and return false 79 if (elem.parent().children("ul").length) { 80 //first remove all other class 81 $this.find(".doubleTapToGo").removeClass("doubleTapToGo"); 82 //add the class on the current element 83 elem.addClass("doubleTapToGo"); 84 return false; 85 } 86 } 87 }; 88 $.fn[pluginName] = function (options) { 89 this.each(function () { 90 if (!$.data(this, "plugin_" + pluginName)) { 91 $.data(this, "plugin_" + pluginName, new Plugin(this, options)); 92 } 93 }); 94 return this; 95 }; 96 $("#main li").hover(function () { 97 $(this).find("i.fa").css("transform", "rotateY(150deg)") 98 }) 99})(jQuery, window, document); 100// ==========menu hover=============== 101 102$('#messages').hover(function () { 103 $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(200); 104}, function () { 105 $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(200); 106}); 107function menu_default() { 108 if ($("body").hasClass("sidebar-left-hidden")) { 109 if($("#content").height() < 950){ 110 $(".sidebar-left-hidden #left").addClass("sm_content"); 111 } 112 $("#menu>
112li").has("ul").children("a").off("click").on("click", function(e) { 113 e.preventDefault(); 114 }); 115 } else { 116 $("#left").removeClass("sm_content"); 117 $("#menu li").has("ul").children("a").off("click"); 118 $("#menu").find("li").has("ul").children("a").on("click", function (e) { 119 e.preventDefault(); 120 $(this).parent("li").toggleClass("active").children("ul").collapse({ 121 toggle: true, 122 animate: false 123 }); 124 $("#menu").find("li.active").has("ul").children("ul").addClass("collapse show"); 125 $(this).parent("li").siblings().removeClass("active").children("ul.show").collapse("hide"); 126 $("#menu").find("li").not(".active").has("ul").children("ul").removeClass("show"); 127 }); 128 } 129} 130$("#menu li:nth-child(2)").find("ul").removeClass("sidebarbottom"); 131// ====================== 132// skins js 133function loadjscssfile(filename, filetype) { 134 if (filetype == "css") { 135 var fileref = document.createElement("link"); 136 fileref.rel = "stylesheet"; 137 fileref.type = "text/css"; 138 fileref.href = 'css/skins/' + filename; 139 $("#skin_change").attr("href", "css/skins/"+filename+"") 140 } 141} 142 143// End of skins js 144// ======================================core js======================================= 145(function (window) { 146 var 147 // Is Modernizr defined on the global scope 148 Modernizr = typeof Modernizr !== "undefined" ? Modernizr : false, 149 // whether or not is a touch device 150 isTouchDevice = Modernizr ? Modernizr.touch : !!('ontouch' in window || 'onmsgesturechange' in window), 151 // Are we expecting a touch or a click? 152 buttonPressedEvent = (isTouchDevice) ? 'touch' : 'click', 153 Admire = function () { 154 this.init(); 155 }; 156 // Initialization method 157 Admire.prototype.init = function () { 158 this.isTouchDevice = isTouchDevice; 159 this.buttonPressedEvent = buttonPressedEvent; 160 }; 161 Admire.prototype.getViewportHeight = function () { 162 var docElement = document.documentElement, 163 client = docElement.clientHeight, 164 inner = window.innerHeight; 165 if (client < inner) 166 return inner; 167 else 168 return client; 169 }; 170 Admire.prototype.getViewportWidth = function () { 171 var docElement = document.documentElement, 172 client = docElement.clientWidth, 173 inner = window.innerWidth; 174 if (client < inner) 175 return inner; 176 else 177 return client; 178 }; 179 // Creates a Admire object. 180 window.Admire = new Admire(); 181})(this); 182// =====================resize plugin=================== 183// jQuery resize event - v1.1 - 3/14/2010 184(function ($, h, c) { 185 var a = $([]), e = $.resize = $.extend($.resize, {}), i, k = "setTimeout", j = "resize", d = j + "-special-event", b = "delay", f = "throttleWindow"; 186 e[b] = 250; 187 e[f] = true; 188 $.event.special[j] = { 189 setup: function () { 190 if (!e[f] && this[k]) { 191 return false; 192 } 193 var l = $(this); 194 a = a.add(l); 195 $.data(this, d, {w: l.width(), h: l.height()}); 196 if (a.length === 1) { 197 g(); 198 } 199 }, teardown: function () { 200 if (!e[f] && this[k]) { 201 return false 202 } 203 var l = $(this); 204 a = a.not(l); 205 l.removeData(d); 206 if (!a.length) { 207 clearTimeout(i); 208 } 209 }, add: function (l) { 210 if (!e[f] && this[k]) { 211 return false 212 } 213 var n; 214 215 function m(s, o, p) { 216 var q = $(this), r = $.data(this, d); 217 r.w = o !== c ? o : q.width(); 218 r.h = p !== c ? p : q.height(); 219 n.apply(this, arguments) 220 } 221 222 if ($.isFunction(l)) { 223 n = l; 224 return m 225 } else { 226 n = l.handler; 227 l.handler = m 228 } 229 } 230 }; 231 function g() { 232 i = h[k](function () { 233 a.each(function () { 234 var n = $(this), m = n.width(), l = n.height(), o = $.data(this, d); 235 if (m !== o.w || l !== o.h) { 236 n.trigger(j, [o.w = m, o.h = l]) 237 } 238 }); 239 g() 240 }, e[b]) 241 } 242})(jQuery, this); 243// =====================resize plugin end=============== 244(function ($) {
245 var $navBar = $('nav.navbar'), 246 $body = $('body'), 247 $menu = $('#menu'); 248 249 function addPaddingTop(el, val) { 250 el.css('padding-top', val); 251 } 252 253 function removePaddingTop(el) { 254 el.css('padding-top', 'inherit'); 255 } 256 257 function getHeight(el) { 258 return el.outerHeight(); 259 } 260 261 function init() { 262 var isFixedNav = $navBar.hasClass('navbar-fixed-top'); 263 var bodyPadTop = isFixedNav ? $navBar.outerHeight(true) : 0; 264 $body.css('padding-top', bodyPadTop); 265 if ($body.hasClass('menu-affix')) { 266 $menu 267 .css({ 268 height: function () { 269 return $(window).height(); 270 }, 271 top: bodyPadTop - 1, 272 bottom: 0 273 }); 274 } 275 } 276 277 Admire.navBar = function () { 278 var resizeTimer; 279 init(); 280 $(window).resize(function () { 281 clearTimeout(resizeTimer); 282 resizeTimer = setTimeout(init(), 250); 283 }); 284 }; 285 return Admire; 286})(jQuery); 287(function ($, Admire) { 288 var $body = $('body'), 289 $leftToggle = $('.toggle-left'), 290 $rightToggle = $('.toggle-right'); 291 var leftopened = 0; 292 var demo = $("<div />").css({ 293 position: "fixed", 294 top: "200px", 295 right: "-1px", 296 transition: 'all 0.3s ease-in-out', 297 background: "#00cc99", 298 "border-radius": "5px 0px 0px 5px", 299 padding: "5px", 300 "font-size": "16px", 301 cursor: "pointer", 302 color: "#ddd" 303 })/*.html(" <i class='fa fa-fw fa-cog skin-icon'></i>").addClass("no-print"); 304 $body.append(demo)*/; 305 $(".no-print").on("mouseenter mouseleave", function(){ 306 $(".skin-icon").toggleClass("fa-spin"); 307 return false; 308 }); 309 Admire.admireAnimatePanel = function () { 310 if ($('#left').length) { 311 $leftToggle.on(Admire.buttonPressedEvent, function (e) { 312 // $(".toggle-left").on('click', function(e) { 313 if ($(window).width() < 768) { 314 $body.toggleClass('sidebar-left-opened'); 315 // $body.removeClass("sidebar-right-opened"); 316 } else { 317 $body.toggleClass("sidebar-left-hidden"); 318 $body.removeClass("sidebar-right-opened"); 319 } 320 menu_default(); 321 }); 322 } else { 323 $leftToggle.addClass('hidden'); 324 } 325 demo.on('click', function (e) { 326 $body.toggleClass("sidebar-right-opened"); 327 }); 328 }; 329 return Admire; 330})(jQuery, Admire || {}); 331$(window).on("load",function () { 332 $('.preloader img').fadeOut(); 333 $('.preloader').fadeOut(1000); 334}); 335$(document).ready(function () { 336 337 $('[data-toggle="tooltip"]').tooltip(); 338 $('#menu').metisMenu(); 339 Admire.navBar(); 340 Admire.admireAnimatePanel(); 341 // function _fix() { 342 // //Get window height and the wrapper height 343 // var height = $(window).height() - $("#top").height(); 344 // var wrapper = $(".wrapper"); 345 // wrapper.css("min-height", height + "px"); 346 // var content = wrapper.height(); 347 // //If the wrapper height is greater than the window 348 // if (content > height) { 349 // //then set sidebar height to the wrapper 350 // $("html, body").css("min-height", content + 0 + "px"); 351 // $("#left").css("min-height", content + 2 + "px"); 352 // } 353 // else { 354 // //Otherwise, set the sidebar to the height of the window 355 // $("html, body").css("min-height", height + 0 + "px"); 356 // $("#left").css("min-height", height + 2 + "px"); 357 // } 358 // } 359 360 function fix_sidebar() { 361 if (!$("body").hasClass("fixed")) { 362 return; 363 } 364 if ($(window).width() > 767) { 365 $('.left_content').jScrollPane({ 366 autoReinitialise: true, 367 autoReinitialiseDelay: 100 368 }); 369 } 370 else { 371 $('.left_content').jScrollPane({ 372 autoReinitialise: true, 373 autoReinitialiseDelay: 100 374 }); 375 } 376 } 377 378 //Fire upon load admire 379// setTimeout(_fix, 100); 380 //Fix the fixed layout sidebar scroll bug 381 fix_sidebar(); 382 //Fire when wrapper is resized 383 $(".wrapper").on("resize",function () { 384 // _fix(); 385 fix_sidebar(); 386 }); 387 388 $('#messages,#notifications').css("height",220); 389 $('#messages,#notifications').jScrollPane({ 390 autoReinitialise: true, 391 autoReinitialiseDelay: 100 392 }); 393 394 $("#request_btn, #notifications_section, #messages_section").on("click", function () { 395 var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; 396 $('#request_list, #notifications_dropdown, #messages_dropdown').addClass('animated fadeIn').one(animationEnd, function () { 397 $("#request_list, #notifications_dropdown, #messages_dropdown").removeClass('animated fadeIn'); 398 }); 399 }); 400 401 $("#menu>.dropdown_menu").hover(function () { 402 // var sideoffset = $("#menu").offset(); 403 // var submenuoffset = $(this).children("ul").offset(); 404 // if (sideoffset.top + $("#menu").height() < submenuoffset.top + $(this).children("ul").height()) { 405 // $(this).children("ul").addClass("sidebarbottom"); 406 // } 407 408 }); 409 $("#menu>.dropdown_menu").on('click', function(event) { 410 if(!$(this).children("ul").hasClass('show')){ 411 $(this).children("ul").addClass('show'); 412 } 413 }); 414 415// ============================fading effect======= 416 417// ==========================Different cards===================== 418// Card close 419 $('.card-header .fa-close').on('click', function () { 420 $(this).closest('.card').parent().hide('slow'); 421 }); 422// Card toggle 423 $(".card-header .fa-chevron-up").on("click",function () { 424 $(this).closest('.card').find('.card-body').slideToggle(); 425 $(this).toggleClass("fa-chevron-up").toggleClass("fa-chevron-down"); 426 }); 427 428// Card edit 429 (function($){ 430 $.fn.setCursorToTextEnd = function() { 431 var $initialVal = this.val(); 432 this.val($initialVal); 433 }; 434 })(jQuery); 435 $(".card-header .fa-pencil").on('click',function(e){ 436 var edit=$(this).closest('.card').find('.card-header .card-title').text(); 437 var editable = $(this).closest('.card').find('.card-header'); 438 var editBox = "<div class='card_editbox'><input type='text' class='form-control text_for_save' maxlength='20' value='" + edit + "'></div>"; 439 if(!$(this).hasClass("fa-check")){ 440 editable.after(editBox); 441 $(this).closest('.card').find("input").focus().setCursorToTextEnd(); 442 }else{ 443 $(this).closest(".card").find(".card_editbox").remove(); 444 } 445 $(this).toggleClass('fa-check').toggleClass('fa-pencil'); 446 }); 447 $(".card").on("input",".text_for_save",function(){ 448 $(this).closest('.card').find('.card-header .card-title').text($(this).val()); 449 }); 450 451// Card colors 452 $(".card-header .fa-tint").on('click',function () { 453 var colorpick=$(this).closest('.card').find('.card-header'); 454 var headerColor='<div class="header_colors">' + 455 '<div class="inline_table"><div class="bg-primary" data-color="bg-primary"></div></div>' + 456 '<div class="inline_table"><div class="bg-success" data-color="bg-success"></div></div>' + 457 '<div class="inline_table"><div class="bg-warning" data-color="bg-warning"></div></div>' + 458 '<div class="inline_table"><div class="bg-danger" data-color="bg-danger"></div></div>' + 459 '<div class="inline_table"><div class="bg-info" data-color="bg-info"></div></div>' + 460 '<div class="inline_table"><div class="bg-mint" data-color="bg-mint"></div></div>' + 461 '<div class="inline_table"><div class="bg-white" data-color="bg-white"></div></div></div>' 462 if($(this).hasClass("fa-tint")){ 463 colorpick.after(headerColor); 464 }else{ 465 $(this).closest(".card").find('.header_colors').hide('slow'); 466 } 467 $(".header_colors").each(function () { 468 $(this).find('.inline_table div').on('click',function () { 469 $(this).closest('.card').find('.card-header').removeClass().addClass("card-header "+$(this).attr("data-color")); 470 }); 471 }); 472 $(this).toggleClass("fa-tint").toggleClass("fa-file-image-o"); 473 }); 474 475// Full screen 476 $(".card-header .fa-arrows-alt").on('click',function () { 477 $(this).closest('.card').toggleClass('fullscreen'); 478 }); 479 480 // Card Refreshing 481 $(".card_refresh").on("click",function(){ 482 var card = $(this).parents(".card"); 483 card_refresh(card); 484 setTimeout(function(){ 485 card_refresh(card); 486 },2000); 487 }); 488 489 function card_refresh(card){ 490 if(!card.hasClass("card-refreshing")){ 491 card.append('<div class="card_refresh_section"><img src="img/loader.gif"/></div>'); 492 card.find(".card_refresh_section").width(card.width()).height(card.height()); 493 card.addClass("card-refreshing"); 494 495 }else{ 496 card.find(".card_refresh_section").remove(); 497 card.removeClass("card-refreshing"); 498 } 499 } 500 // =============================== Right side bar ======================= 501 502 function scroll_fixtop() { 503 var rightHeightTop=$(window).height() - top.height(); 504 $(".request_scrollable").css("height", rightHeightTop); 505 } 506 function scroll_fixtop2() { 507 var rightHeightTop2=$(window).height() ; 508 $(".request_scrollable").css("height", rightHeightTop2); 509 510 } 511 512 function fixed_menu_scroll(){ 513 if($("body").hasClass("fixedNav_position")){ 514 var leftHeight=$(window).height()-$("#top").height(); 515 $('.left_scrolled').css("height",leftHeight); 516 $('.left_scrolled').jScrollPane({ 517 autoReinitialise: true, 518 autoReinitialiseDelay: 100 519 }); 520 }else{ 521 var leftHeight=$(window).height(); 522 $('.left_scrolled').css("height",leftHeight); 523 $('.left_scrolled').jScrollPane({ 524 autoReinitialise: true, 525 autoReinitialiseDelay: 100 526 }); 527 var content_height=$("#content").height(); 528 var window_height=$(window).height(); 529 if(window_height>content_height){ 530 var leftHeight=$(window).height()-$("#top").height(); 531 $('.left_scrolled').css("height",leftHeight); 532 $('.left_scrolled').jScrollPane({ 533 autoReinitialise: true, 534 autoReinitialiseDelay: 100 535 }); 536 } 537 } 538 539 } 540 function fixed_menu_scroll2() { 541 542 var element = $('.menu_scroll').jScrollPane(); 543 var api = element.data('jsp'); 544 api.destroy(); 545 $(".menu_scroll").removeAttr("style"); 546 547 if(left_height_unfixed > $("#content").height()) 548 { 549 $("#left").css("min-height", left_height_unfixed); 550 551 } 552 } 553 var top = $("#top"); 554 var left = $("#left"); 555 var body = $("body"); 556 var input=$("input"); 557 var fixedNav=$('#setting_fixed_nav').find(input); 558 var fixedMenu=$('#setting_fixed_menunav').find(input); 559 var breadcrumb=$('#setting_breadcrumb').find(input); 560 fixedNav.lc_switch(); 561 fixedMenu.lc_switch(); 562 breadcrumb.lc_switch();
563 function top_resize() { 564 var topHeight=top.height(); 565 $("#request_list").css("padding-top", topHeight); 566 } 567 top_resize(); 568 $("#top").on("resize",function () { 569 top_resize(); 570 }); 571 function right_fix(){ 572 var rightHeight=$(window).height(); 573 $(".request_scrollable").css("height", rightHeight) 574 } 575 function scroll_fix() { 576 var rightHeight=$(window).height() - top.height()-30; 577 $('.request_scrollable').jScrollPane({ 578 autoReinitialise: true, 579 autoReinitialiseDelay: 100 580 }); 581 } 582 right_fix(); 583 scroll_fix(); 584 $(window).on("resize",function () { 585 right_fix(); 586 scroll_fix(); 587 }); 588 $("#request_btn").on("click", function () { 589 body.toggleClass("right_menu_section"); 590 }); 591 if($(window).width()>767) { 592 breadcrumb.on('lcs-statuschange', function () { 593 $(".head").toggleClass("breadcrumb_hide"); 594 if($("#setting_fixed_menunav .lcs_switch").hasClass("lcs_off")){ 595 $(".menu_scroll").removeClass("left_scrolled"); 596 } 597 }); 598 fixedNav.on('lcs-statuschange', function () { 599 $("#top").toggleClass("fixed"); 600 $(".wrapper").toggleClass("fixedNav_top"); 601 body.toggleClass("fixedNav_position"); 602 if($("#top").hasClass("fixed")){ 603 $(".menu_scroll").removeClass("left_scrolled"); 604 scroll_fixtop(); 605 $(window).on("resize",function () { 606 scroll_fixtop(); 607 }); 608 } 609 else{ 610 scroll_fixtop2(); 611 $(window).on("resize",function () { 612 scroll_fixtop2(); 613 }); 614 } 615 }); 616 var left_height_unfixed = $("#left").height(); 617 fixedMenu.on('lcs-statuschange', function () { 618 $("#left").toggleClass("fixed"); 619 body.toggleClass("fixedMenu_left"); 620 $("#left.fixed").find(".menu_scroll").addClass("left_scrolled"); 621 if (body.hasClass("fixedMenu_left")) { 622 fixed_menu_scroll(); 623 $(window).on("resize",function() { 624 fixed_menu_scroll(); 625 }); 626 fixedNav.on('lcs-statuschange', function () { 627 if($("body").hasClass("fixedNav_position")){ 628 var leftHeight11=$(window).height()-$("#top").height(); 629 $('.menu_scroll').css("height",leftHeight11); 630 }else{ 631 var leftHeight11=$(window).height(); 632 $('.menu_scroll').css("height",leftHeight11); 633 } 634 }); 635 } 636 else { 637 fixedNav.on('lcs-statuschange', function () { 638 // $('.menu_scroll').css("height", ""); 639 $('.menu_scroll').removeAttr('style'); 640 }); 641 fixed_menu_scroll2(); 642 $(window).on("resize",function() { 643 fixed_menu_scroll2(); 644 }); 645 } 646 }); 647 } 648 649 $(window).on("scroll", function () { 650 var window_height= $(window).height(); 651 $("#content").css("min-height", window_height); 652 if($("#top").hasClass("fixed")){ 653 scroll_fixtop() 654 }else{ 655 request_scrollable_default(); 656 } 657 if ($(this).scrollTop() > 50) { 658 $('#request_list,.fixedMenu_left #left').addClass('rightsidebar-without-nav'); 659 } else { 660 $('#request_list,.fixedMenu_left #left').removeClass('rightsidebar-without-nav'); 661 } 662 663 if ($(this).scrollTop() > 50 && $(this).scrollTop() < 100) { 664 $('#request_list,.fixedMenu_left #left').addClass('rightsidebar-without-nav-small'); 665 } else { 666 $('#request_list,.fixedMenu_left #left').removeClass('rightsidebar-without-nav-small'); 667 } 668 669 }); 670 // fixed header 671 var top = $("#top"); 672 function request_scrollable_default(){ 673 var rightHeightTop2=$(window).height(); 674 $(".request_scrollable").css("height", rightHeightTop2+20); 675 } 676 function scroll_fixtop() { 677 var rightHeightTop=$(window).height() - top.height(); 678 $(".request_scrollable").css("height", rightHeightTop+20) 679 } 680 scroll_fixtop(); 681 $(window).on("resize",function () { 682 scroll_fixtop(); 683 request_scrollable_default(); 684 }); 685 // Fixed menu 686 function fixed_menu_scroll() { 687 if($("body").hasClass("fixedNav_position")){ 688 var leftHeight=$(window).height()-$("#top").height(); 689 $('.left_scrolled').css("height",leftHeight); 690 $('.left_scrolled').jScrollPane({ 691 autoReinitialise: true, 692 autoReinitialiseDelay: 100 693 }); 694 }else{ 695 var leftHeight=$(window).height(); 696 $('.left_scrolled').css("height",leftHeight); 697 $('.left_scrolled').jScrollPane({ 698 autoReinitialise: true, 699 autoReinitialiseDelay: 100 700 }); 701 } 702 } 703 fixed_menu_scroll(); 704 $(window).on("resize", function () { 705 fixed_menu_scroll(); 706 }); 707 708 if($("body").hasClass("fixedMenu_left")) { 709 $('#setting_fixed_nav').find('input').on('lcs-statuschange', function () { 710 if ($("body").hasClass("fixedNav_position")) { 711 if ($("#top").hasClass("fixed")) { 712 var leftHeight_fixednav = $(window).height() - $("#top").height(); 713 $('.menu_scroll').css("height", leftHeight_fixednav); 714 $('.menu_scroll').css("min-height", leftHeight_fixednav); 715 } 716 }else{ 717 var leftHeight_withoutfixednav = $(window).height(); 718 $('.menu_scroll').css("height", leftHeight_withoutfixednav); 719 } 720 }); 721 722 } 723});
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.