1$(document).ready(function() { 2 3 $("#participant-menu.participantShared").load("../participant/shared/participant-menu.html", function () { 4 doAfterLoad(); 5 }); 6 $("#participant-header.participantShared").load("../participant/shared/participant-header.html", function () { 7 doAfterLoad(); 8 pageTitle(); 9 }); 10 $("#participant-footer").load("../participant/shared/participant-footer.html", function () { 11 doAfterLoad(); 12 }); 13 14 /* 15 $("#userTable").DataTable({ 16 "dom": "<'row'<'col-sm-3'l><'col-sm-3'f><'col-sm-6'p>>" + 17 "<'row'<'col-sm-12'tr>>" + 18 "<'row'<'col-sm-5'i><'col-sm-7'p>>", 19 "bPaginate": false, 20 "bInfo": false, 21 "bFilter": false, 22 "responsive": true, 23 "ordering": false, 24 "info": false, 25 });*/ 26 27 $(function () { 28 $('[data-toggle="popover"]').popover({ 29 placement: 'top', 30 trigger: 'hover' 31 }); 32 }); 33 34 $(function () { 35 $("[data-toggle='tooltip']").tooltip({ 36 trigger: 'hover' 37 }); 38 $("[rel='tooltip']").tooltip({ 39 trigger: 'hover' 40 }); 41 }); 42 43 $(function () { 44 var pgurl = window.location.href.substr(window.location.href 45 .lastIndexOf("/") + 1); 46 $("#admin-menu ul li a").each(function () { 47 if ($(this).attr("href") == pgurl || $(this).attr("href") == '') 48 $(this).addClass("active"); 49 }) 50 }); 51 52}); 53 54$(window).on('load', function () { 55 56 $(".pre-loader").fadeOut("fast"); 57 doAfterLoad(); 58 59}); 60 61function doAfterLoad() { 62 63 $("#admin-header #mobile-menu-btn").unbind('click').bind('click', function (e) { 64 e.preventDefault; 65 $("#admin-menu nav").show(); 66 }); 67 68 /* 69 70 $(".mobile-admin-menu-close").unbind('click').bind('click', function (e) { 71 e.preventDefault; 72 $("#admin-menu nav").hide(); 73 }); 74 75 */ 76 $("#participant-header #mobile-menu-btn").unbind('click').bind('click', function (e) { 77 e.preventDefault; 78 $("#participant-menu nav").show(); 79 }); 80 81 $(".mobile-menu-close").unbind('click').bind('click', function (e) { 82 e.preventDefault; 83 $("#participant-menu nav").hide(); 84 }); 85 86}
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.