1/******************************************************************* 2 __ __ _ _____ _ _ 3 | \/ | ___ _ __ ___ | |__ ___ _ __ ___ | ___|(_) _ __ ___ | |_ 4 | |\/| | / _ \| '_ ` _ \ | '_ \ / _ \| '__|/ __|| |_ | || '__|/ __|| __| 5 | | | || __/| | | | | || |_) || __/| | \__ \| _| | || | \__ \| |_ 6 |_| |_| \___||_| |_| |_||_.__/ \___||_| |___/|_| |_||_| |___/ \__| 7 8 Custom.js file for bootstrap codeouts. 9 10 Author: MembersFirst 11 Date: 12/12/2016 12 13********************************************************************/ 14 15 16$(document).ready(function() { 17 /*************************** 18 SITEWIDE FUNCTIONS 19 ****************************/ 20 21 if ($(".mrm-admin-bar").length) { 22 $("html").addClass('loggedIn'); 23 } 24 25 //remove fancybox if not used on site 26 $(".iframe").fancybox({ 27 'width': '100%', 28 'height': '100%', 29 'autoScale': true, 30 'transitionIn': 'none', 31 'transitionOut': 'none', 32 'type': 'iframe' 33 }); 34 35 36 if ($('html').hasClass('club_scripts_view_view_directions')){ 37 $('#navigation > ul.nav.navbar-nav.navbar-left > li.active').removeClass('active'); 38 $('#navigation > ul.nav.navbar-nav.navbar-right > li:nth-child(4)').addClass('active'); 39 } 40 41 /*************************** 42 PUBLIC INTERIOR FUNCTIONS 43 ****************************/ 44 if ($("#website").hasClass("public")) { 45 //Hide public callouts column if none exsist 46 if ($('.public-specialinserts').height() < 5) {$('.public-specialinserts').hide();} 47 } 48 49 /*************************** 50 PRIVATE INTERIOR FUNCTIONS 51 ****************************/ 52 if ($("#website").hasClass("private")) { 53 if ($('#private_right').height() < 5) { 54 $('#private_right').hide(); 55 $('#private_left').removeClass('col-md-7'); 56 } 57 $(function() { 58 itemsPerPage = 4; 59 paginatorStyle = 3; 60 // 1 - for << | < | 1 | 2 | 3 | > | >> 61 // 2 - for << | < | 1/8 | > | >> 62 // 3 - for < | 1 | 2 | 3 | > 63 // 4 - for < | > 64 65 previousPageSymbol = '<i class="fa fa-angle-left" aria-hidden="true"></i> Prev'; 66 nextPageSymbol = 'Next <i class="fa fa-angle-right" aria-hidden="true"></i>'; 67 // firstPageSymbol = '<<'; 68 // lastPageSymbol = '>>'; 69 // separator = ' '; 70 71 paginatorPosition = 'bottom'; 72 // Accepted values are 'top','bottom','both' 73 // enableGoToPage = false; // shows a drop down of all pages for go/jump to any page user want to go, if turned true. Useful incase there are large no. of pages 74 // textGoToPage = 'Go to'; // text for above option. You can change it to 'Jump to Page' or anything you like. The above option needs to turned on for this. 75 // enablePageOfOption = false; //it shows on which are you currently, i.e. Page 3 of 6 Page(s), if turned true 76 // textSelectNoItems = 'Items Per Page'; // text for above option. You can change it to 'Change No. of tag/page' or anything you like. The above option needs to turned on for this. 77 // enableSelectNoItems = false; // if you want to change items per page on the fly. 78 79 $('.side-calendar-list').pagination(); 80 }); 81 82 $('.mrm-bootstrap-container .navbar .dropdown').on('show.bs.dropdown', function() { 83 $(this).find('.dropdown-menu').first().stop(true, true).slideDown(300); 84 $(this).find(".dropdown-toggle i").toggleClass('fa-angle-down fa-angle-up'); 85 }); 86 $('.mrm-bootstrap-container .navbar').on('hide.bs.dropdown', function() { 87 $(this).find('.dropdown-menu').first().stop(true, true).slideUp(300); 88 $(this).find(".dropdown-toggle i").toggleClass('fa-angle-down fa-angle-up'); 89 }); 90 try { 91 if (membersfirst.userFirstName) { 92 $('.welcomeFN').text(membersfirst.userFirstName); 93 } 94 if (membersfirst.userLastName) { 95 $('.welcomeLN').text(membersfirst.userLastName); 96 } 97 if (membersfirst.userImageFilename) { 98 $('.current-user-pic a').attr('style', 'background:url(/common/thumbnail.asp?filename=' + membersfirst.userImageFilename + '&CROP=1&size=70) no-repeat center center;'); 99 } 100 } catch (err) { 101 } 102 103 } 104 /*************************** 105 HOMEPAGE FUNCTIONS 106 ****************************/ 107 if ($("#website").hasClass("homepage")) { 108 109 110 111 $('.timeline .timeline-slides').slick({ 112 appendDots: '#numbers',
113 arrows: false, 114 dots: true, 115 slide: '.timeline-slide', 116 speed: 500, 117 fade: true, 118 dotsClass: 'nav nav-pills nav-justified', 119 cssEase: 'linear', 120 121 customPaging: function(slider, i) { 122 var thumb = $(slider.$slides[i]).attr('data-title'); 123 return '<a class="dot">' + thumb + '</a>'; 124 }, 125 responsive: [{ 126 breakpoint: 991, 127 settings: { 128 dots: false, 129 prevArrow: $('.timeline .arrows .fa-angle-left'), 130 nextArrow: $('.timeline .arrows .fa-angle-right') 131 } 132 }, ] 133 }); 134 135 } 136 /*************************** 137 PUBLIC FACING FUNCTIONS 138 ****************************/ 139 if (!$("#website").hasClass("private")) { 140 //login modal 141 $('.bt-member-login').click(function(e) { 142 e.preventDefault(); 143 if ($("html").hasClass("hasStoredCookie")) { 144 window.location = "/club/scripts/mylocker/mylocker.asp?NS=MYLOCKER"; 145 } else { 146 $('body').addClass('modal-open') 147 $('.memberLogin').fadeIn('fast').attr('aria-hidden', 'false'); 148 $('.closeLogin').fadeIn('fast').attr('aria-hidden', 'false'); 149 } 150 }); 151 $('.closeLogin,.closeButton').click(function() { 152 $('body').removeClass('modal-open') 153 $('.memberLogin').fadeOut('fast').attr('aria-hidden', 'true'); 154 $('.closeLogin').fadeOut('fast').attr('aria-hidden', 'true'); 155 }); 156 } 157 /*************************** 158 ALL INTERIOR FUNCTIONS 159 ****************************/ 160 if (!$("#website").hasClass("homepage")) { 161 162 $('#sidebar-menu .panel-heading').click(function() { 163 $(this).find("i").toggleClass('fa-angle-up fa-angle-down'); 164 }); 165 166 $(".main").before($(".global-announcements.full")); 167 $(".global-announcements.full .row").wrap("<div class='container'>"); 168 169 var announcementMargin = ($('.global-announcements.full').height() - 38) / 2; 170 $('#announcementsHeading').css('margin-top', announcementMargin); 171 172 $( window ).resize(function() { 173 $('#announcementsHeading').css('margin-top', announcementMargin); 174 }); 175 176 //adds active class to sidebar items when subnav exists 177 $("#sidebar-nav > ul > li > ul").prev().parent().addClass('active'); 178 } 179});
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.