1(function() { 2 $(function() { 3 var collapseMyMenu, expandMyMenu, hideMenuTexts, showMenuTexts; 4 expandMyMenu = function() { 5 return $("nav.sidebar").removeClass("sidebar-menu-collapsed").addClass("sidebar-menu-expanded"); 6 }; 7 collapseMyMenu = function() { 8 return $("nav.sidebar").removeClass("sidebar-menu-expanded").addClass("sidebar-menu-collapsed"); 9 }; 10 showMenuTexts = function() { 11 return $("nav.sidebar ul a span.expanded-element").show(); 12 }; 13 hideMenuTexts = function() { 14 return $("nav.sidebar ul a span.expanded-element").hide(); 15 }; 16 return $("#justify-icon").click(function(e) { 17 if ($(this).parent("nav.sidebar").hasClass("sidebar-menu-collapsed")) { 18 expandMyMenu(); 19 showMenuTexts(); 20 $(this).css({ 21 color: "#2A3036" 22 }); 23 } else if ($(this).parent("nav.sidebar").hasClass("sidebar-menu-expanded")) { 24 collapseMyMenu(); 25 hideMenuTexts(); 26 $(this).css({ 27 color: "#FFF" 28 }); 29 } 30 return false; 31 }); 32 }); 33 34}).call(this); 35$(function() { 36 $('a[href*="#"]:not([href="#"])').click(function() { 37 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 38 var target = $(this.hash); 39 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 40 if (target.length) { 41 $('html,body').animate({ 42 scrollTop: target.offset().top - $(".mini-bar").outerHeight() 43 }, 1000); 44 } 45 } 46 }); 47 48 if (location.pathname.split("/")[1]) { 49 $('.main-header .menu li a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active'); 50 } 51}); 52 53$(".search-toggle").click(function() { 54 $(".global-search input").focus(); 55}); 56 57$("#dyslexia-mode").click(function(e) { 58 e.preventDefault(); 59 return $('#article').toggleClass('dyslexia-friendly'); 60}); 61 62 63function kanbanInit() { 64 var $kanbanSelector = $(".kanban"); 65 var $boxSelector = $kanbanSelector.find(".box"); 66 var boxCount = $boxSelector.length; 67 68 var boxWidth = $boxSelector.outerWidth(true); 69 var innerWidth = boxWidth * boxCount; 70 71 $kanbanSelector.find(".inner").width(innerWidth); 72 73 $kanbanSelector.perfectScrollbar(); 74 $kanbanSelector.find(".box .content").perfectScrollbar(); 75}$( document ).ready(function() { 76 77 "use strict"; 78 79 var element = $(".scroll-link"); 80 81 element 82 .each(function(i,item) { 83 var html = $("a[data-scroll='#" + $(this).attr("id") + "']").parent().clone(); 84 html.children('a:first').remove(); 85 86 $(item).attr('data-tip-text', html.text()); 87 $(item).attr('data-tooltip', ''); 88 $(item).attr('aria-haspopup', 'true'); 89 $(item).attr('class', 'has-tip scroll-link'); 90 $(item).attr('data-fade-out-duration', 1000); 91 // TODO: we need to make sure tooltips stay open while user's mouse is inside 92 93 }); 94 95 $(document).foundation() 96 97}); 98$(document).ready(function () { 99 100 if (!$("#toc")) { 101 return; 102 } 103 104 var newLine, link, title, linkid, toc, iter, js; 105 106 iter = 0; 107 toc = ''; 108 109 $("#main_article h2, #main_article h3").each(function () { 110 link = $(this); 111 112 var clonedLink = link.clone(); 113 clonedLink.find('a').each(function () { 114 if (!$(this).text().trim()) { 115 $(this).remove(); 116 } else { 117 $(this).contents().unwrap(); 118 } 119 }); 120 121 title = clonedLink.html(); 122 123 if (!link.attr("id")) { 124 link.attr('id', 'heading' + iter.toString()); 125 } 126 127 linkid = "#" + link.attr("id"); 128 129 js = "$('html, body').animate({scrollTop: $( $.attr(this, 'href') ).offset().top - 35}, 500);return false;"; 130 131 newLine = "<li class=\"sidebar-item\"><a href='" + linkid + "' onclick=\"" + js + "\">" + title + "</a></li>"; 132 133 toc += newLine; 134 iter++; 135 }); 136 137 if (iter === 0) { 138 $("#toc-section").remove(); 139 } else { 140 $("#toc").append(toc); 141 } 142}); 143function resizeText(multiplier) { 144 if (document.body.style.fontSize == "") { 145 document.body.style.fontSize = "1.0em"; 146 } 147 document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier * 0.2) + "em"; 148}!function(e){e(["jquery"],function(e){return function(){function t(e,t,n){return f({type:O.error,iconClass:g().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=g()),v=e("#"+t.containerId),v.length?v:(n&&(v=c(t)),v)}function i(e,t,n){return f({type:O.info,iconClass:g().iconClasses.info,message:e,optionsOverride:n,title:t})}function o(e){w=e}function s(e,t,n){return f({type:O.success,iconClass:g().iconClasses.success,message:e,optionsOverride:n,title:t})}function a(e,t,n){return f({type:O.warning,iconClass:g().iconClasses.warning,message:e,optionsOverride:n,title:t})}function r(e){var t=g();v||n(t),l(e,t)||u(t)}function d(t){var i=g();return v||n(i),t&&0===e(":focus",t).length?void h(t):void(v.children().length&&v.remove())}function u(t){for(var n=v.children(),i=n.length-1;i>=0;i--)l(e(n[i]),t)}function l(t,n){return t&&0===e(":focus",t).length?(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),!0):!1}function c(t){return v=e("<div/>").attr("id",t.containerId).addClass(t.positionClass).attr("aria-live","polite").attr("role","alert"),v.appendTo(e(t.target)),v}
148function p(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:'<button type="button">×</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function m(e){w&&w(e)}function f(t){function i(t){return!e(":focus",l).length||t?(clearTimeout(O.intervalId),l[r.hideMethod]({duration:r.hideDuration,easing:r.hideEasing,complete:function(){h(l),r.onHidden&&"hidden"!==b.state&&r.onHidden(),b.state="hidden",b.endTime=new Date,m(b)}})):void 0}function o(){(r.timeOut>0||r.extendedTimeOut>0)&&(u=setTimeout(i,r.extendedTimeOut),O.maxHideTime=parseFloat(r.extendedTimeOut),O.hideEta=(new Date).getTime()+O.maxHideTime)}function s(){clearTimeout(u),O.hideEta=0,l.stop(!0,!0)[r.showMethod]({duration:r.showDuration,easing:r.showEasing})}function a(){var e=(O.hideEta-(new Date).getTime())/O.maxHideTime*100;f.width(e+"%")}var r=g(),d=t.iconClass||r.iconClass;if("undefined"!=typeof t.optionsOverride&&(r=e.extend(r,t.optionsOverride),d=t.optionsOverride.iconClass||d),r.preventDuplicates){if(t.message===C)return;C=t.message}T++,v=n(r,!0);var u=null,l=e("<div/>"),c=e("<div/>"),p=e("<div/>"),f=e("<div/>"),w=e(r.closeHtml),O={intervalId:null,hideEta:null,maxHideTime:null},b={toastId:T,state:"visible",startTime:new Date,options:r,map:t};return t.iconClass&&l.addClass(r.toastClass).addClass(d),t.title&&(c.append(t.title).addClass(r.titleClass),l.append(c)),t.message&&(p.append(t.message).addClass(r.messageClass),l.append(p)),r.closeButton&&(w.addClass("toast-close-button").attr("role","button"),l.prepend(w)),r.progressBar&&(f.addClass("toast-progress"),l.prepend(f)),l.hide(),r.newestOnTop?v.prepend(l):v.append(l),l[r.showMethod]({duration:r.showDuration,easing:r.showEasing,complete:r.onShown}),r.timeOut>0&&(u=setTimeout(i,r.timeOut),O.maxHideTime=parseFloat(r.timeOut),O.hideEta=(new Date).getTime()+O.maxHideTime,r.progressBar&&(O.intervalId=setInterval(a,10))),l.hover(s,o),!r.onclick&&r.tapToDismiss&&l.click(i),r.closeButton&&w&&w.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),i(!0)}),r.onclick&&l.click(function(){r.onclick(),i()}),m(b),r.debug&&console&&console.log(b),l}function g(){return e.extend({},p(),b.options)}function h(e){v||(v=n()),e.is(":visible")||(e.remove(),e=null,0===v.children().length&&(v.remove(),C=void 0))}var v,w,C,T=0,O={error:"error",info:"info",success:"success",warning:"warning"},b={clear:r,remove:d,error:t,getContainer:n,info:i,options:{},subscribe:o,success:s,version:"2.1.0",warning:a};return b}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}); 149//# sourceMappingURL=toastr.js.map
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.