diff --git a/src/main/resources/documentation/ontology/abstract.rqg b/src/main/resources/documentation/ontology/abstract.rqg new file mode 100644 index 0000000000000000000000000000000000000000..a5f102eddadf25edf138c39bb596d9e139a6ec1a --- /dev/null +++ b/src/main/resources/documentation/ontology/abstract.rqg @@ -0,0 +1,16 @@ +PREFIX fun: +PREFIX rdfs: +PREFIX dcterms: + +BASE + +TEMPLATE ( ?ontology ) { + COALESCE( ?html, fun:markdownToHTML(?md), (?abstract) ) +} +SOURCE AS ?html +SOURCE AS ?md +WHERE { + OPTIONAL { ?ontology dcterms:abstract ?abstract . } +} +LIMIT 1 + diff --git a/src/main/static/assembly.xml b/src/main/static/assembly.xml deleted file mode 100644 index 0cf772b6af3c25cd9fd727030277c8d3509115b9..0000000000000000000000000000000000000000 --- a/src/main/static/assembly.xml +++ /dev/null @@ -1,16 +0,0 @@ - - static - - zip - - false - - - - src/main/static - - assembly.xml - - - - \ No newline at end of file diff --git a/src/main/static/favicon.ico b/src/main/static/favicon.ico deleted file mode 100644 index 5c46eaabf2ee70aa7849e6e5ad136bded216f4b1..0000000000000000000000000000000000000000 Binary files a/src/main/static/favicon.ico and /dev/null differ diff --git a/src/main/static/files/ETSI-Logo_BW_S_Office1.png b/src/main/static/files/ETSI-Logo_BW_S_Office1.png deleted file mode 100644 index 5203bb17aa9d90c3a86c25f12654e18da3d7eedd..0000000000000000000000000000000000000000 Binary files a/src/main/static/files/ETSI-Logo_BW_S_Office1.png and /dev/null differ diff --git a/src/main/static/files/ETSI/etsi-arrows-crop.png b/src/main/static/files/ETSI/etsi-arrows-crop.png deleted file mode 100644 index 55069d35f5300b201f4d1bc25e55d1c81b91197e..0000000000000000000000000000000000000000 Binary files a/src/main/static/files/ETSI/etsi-arrows-crop.png and /dev/null differ diff --git a/src/main/static/files/ETSI/home/arrows-home-575.PNG b/src/main/static/files/ETSI/home/arrows-home-575.PNG deleted file mode 100644 index f59a76fe028ba681240d142ce07545de72c2731b..0000000000000000000000000000000000000000 Binary files a/src/main/static/files/ETSI/home/arrows-home-575.PNG and /dev/null differ diff --git a/src/main/static/files/ETSI/home/build-home-575.PNG b/src/main/static/files/ETSI/home/build-home-575.PNG deleted file mode 100644 index acfcb67e6ce2980070077da45977456c7ecec6a1..0000000000000000000000000000000000000000 Binary files a/src/main/static/files/ETSI/home/build-home-575.PNG and /dev/null differ diff --git a/src/main/static/files/ETSI/home/globe-home-575.PNG b/src/main/static/files/ETSI/home/globe-home-575.PNG deleted file mode 100644 index a1f7be44170e5ea8db4d443928fa0389119d7dda..0000000000000000000000000000000000000000 Binary files a/src/main/static/files/ETSI/home/globe-home-575.PNG and /dev/null differ diff --git a/src/main/static/files/ETSI/svn256.png b/src/main/static/files/ETSI/svn256.png deleted file mode 100644 index 823f70059a832a9bef6e483028dbe58f0310b61f..0000000000000000000000000000000000000000 Binary files a/src/main/static/files/ETSI/svn256.png and /dev/null differ diff --git a/src/main/static/g-css-classes.txt b/src/main/static/g-css-classes.txt deleted file mode 100644 index f86780323d113fd685bdd5d41868a75b09261a88..0000000000000000000000000000000000000000 --- a/src/main/static/g-css-classes.txt +++ /dev/null @@ -1,81 +0,0 @@ -g-active -g-array-item -g-array-item-details -g-array-item-image -g-array-item-read-more -g-array-item-text -g-block -g-bodyonly -g-container -g-container-flushed -g-content -g-content-array -g-contentcubes -g-contenttabs-content -g-contenttabs-content-wrapper-container -g-contenttabs-tab -g-contenttabs-tab-title -g-contenttabs-tab-wrapper-body -g-contenttabs-tab-wrapper-container -g-contenttabs-tab-wrapper-head -g-copyright -g-dropdown -g-dropdown-center -g-dropdown-column -g-dropdown-left -g-dropdown-right -g-error -g-flushed -g-go-back -g-grid -g-helium-style -g-horizontalmenu -g-img-circle -g-item-title -g-lead -g-level- -g-logo -g-logo-helium -g-main-nav -g-menu-block -g-menu-item -g-menu-item-container -g-menu-item-content -g-menu-item-subtitle -g-menu-item-type-module -g-menu-item-type-particle -g-menu-overlay -g-menu-overlay-open -g-menu-parent-indicator -g-nav-overlay -g-negative-margin-bottom -g-notexttransform -g-offcanvas-active -g-offcanvas-hide -g-offcanvas-left -g-offcanvas-open -g-offcanvas-right -g-offcanvas-toggle -g-offline -g-outer-box -g-owlcarousel -g-owlcarousel-item-button -g-owlcarousel-item-content -g-owlcarousel-item-content-container -g-owlcarousel-item-content-wrapper -g-owlcarousel-item-desc -g-owlcarousel-item-img -g-owlcarousel-item-title -g-owlcarousel-item-wrapper -g-parent -g-positive-margin-top -g-preset-thumbnails -g-selected -g-slide-out -g-social -g-standard -g-sublevel -g-title -g-toplevel -g-totop -g-uppercase diff --git a/src/main/static/images/logo-l.png b/src/main/static/images/logo-l.png deleted file mode 100644 index 7101a6b969a61c111c287ac28838bfb9abc6a982..0000000000000000000000000000000000000000 Binary files a/src/main/static/images/logo-l.png and /dev/null differ diff --git a/src/main/static/images/saref.png b/src/main/static/images/saref.png deleted file mode 100644 index 70289a4ffe36db9d0c4c6048cfc934b747754a57..0000000000000000000000000000000000000000 Binary files a/src/main/static/images/saref.png and /dev/null differ diff --git a/src/main/static/images/test.png b/src/main/static/images/test.png deleted file mode 100644 index 05497c2e7498a3e590b1a6711e299b6e07f7d30c..0000000000000000000000000000000000000000 Binary files a/src/main/static/images/test.png and /dev/null differ diff --git a/src/main/static/jqtree/jqtree-circle.png b/src/main/static/jqtree/jqtree-circle.png deleted file mode 100644 index ba0e1dd667fdfa4c543ba27b4481280dae917a6a..0000000000000000000000000000000000000000 Binary files a/src/main/static/jqtree/jqtree-circle.png and /dev/null differ diff --git a/src/main/static/jqtree/jqtree.css b/src/main/static/jqtree/jqtree.css deleted file mode 100644 index 1e97f6c223c36ad5ddb031297268f7e1985933bf..0000000000000000000000000000000000000000 --- a/src/main/static/jqtree/jqtree.css +++ /dev/null @@ -1,184 +0,0 @@ -ul.jqtree-tree { - list-style: none outside; - margin-left: 0; - margin-bottom: 0; - padding: 0; -} - - ul.jqtree-tree ul.jqtree_common { - list-style: none outside; - margin-left: 12px; - margin-right: 0; - margin-bottom: 0; - padding: 0; - display: block; - } - - ul.jqtree-tree li.jqtree-closed > ul.jqtree_common { - display: none; - } - - ul.jqtree-tree li.jqtree_common { - clear: both; - list-style-type: none; - } - - ul.jqtree-tree .jqtree-toggler { - border-bottom: none; - color: #333; - text-decoration: none; - vertical-align: middle; - } - - ul.jqtree-tree .jqtree-toggler:hover { - color: #000; - text-decoration: none; - } - - ul.jqtree-tree .jqtree-toggler.jqtree-closed { - background-position: 0 0; - } - - ul.jqtree-tree .jqtree-toggler.jqtree-toggler-left { - margin-right: 0.5em; - } - - ul.jqtree-tree .jqtree-toggler.jqtree-toggler-right { - margin-left: 0.5em; - } - - ul.jqtree-tree .jqtree-element { - cursor: pointer; - position: relative; - display: -webkit-box; - display: flex; - } - - ul.jqtree-tree .jqtree-title { - color: #1C4257; - vertical-align: middle; - margin-left: 1.5em; - } - - ul.jqtree-tree .jqtree-title.jqtree-title-folder { - margin-left: 0; - } - - ul.jqtree-tree li.jqtree-folder { - margin-bottom: 4px; - } - - ul.jqtree-tree li.jqtree-folder.jqtree-closed { - margin-bottom: 1px; - } - - ul.jqtree-tree li.jqtree-ghost { - position: relative; - z-index: 10; - margin-right: 10px; - } - - ul.jqtree-tree li.jqtree-ghost span { - display: block; - } - - ul.jqtree-tree li.jqtree-ghost span.jqtree-circle { - border: solid 2px #0000ff; - border-radius: 100px; - height: 8px; - width: 8px; - position: absolute; - top: -4px; - left: -6px; - box-sizing: border-box; - } - - ul.jqtree-tree li.jqtree-ghost span.jqtree-line { - background-color: #0000ff; - height: 2px; - padding: 0; - position: absolute; - top: -1px; - left: 2px; - width: 100%; - } - - ul.jqtree-tree li.jqtree-ghost.jqtree-inside { - margin-left: 48px; - } - - ul.jqtree-tree span.jqtree-border { - position: absolute; - display: block; - left: -2px; - top: 0; - border: solid 2px #0000ff; - border-radius: 6px; - margin: 0; - box-sizing: content-box; - } - - ul.jqtree-tree li.jqtree-selected > .jqtree-element, - ul.jqtree-tree li.jqtree-selected > .jqtree-element:hover { - background-color: #97BDD6; - background: -webkit-gradient(linear, left top, left bottom, from(#BEE0F5), to(#89AFCA)); - background: linear-gradient(#BEE0F5, #89AFCA); - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); - } - - ul.jqtree-tree .jqtree-moving > .jqtree-element .jqtree-title { - outline: dashed 1px #0000ff; - } - -ul.jqtree-tree.jqtree-rtl { - direction: rtl; -} - -ul.jqtree-tree.jqtree-rtl ul.jqtree_common { - margin-left: 0; - margin-right: 12px; - } - -ul.jqtree-tree.jqtree-rtl .jqtree-toggler { - margin-left: 0.5em; - margin-right: 0; - } - -ul.jqtree-tree.jqtree-rtl .jqtree-title { - margin-left: 0; - margin-right: 1.5em; - } - -ul.jqtree-tree.jqtree-rtl .jqtree-title.jqtree-title-folder { - margin-right: 0; - } - -ul.jqtree-tree.jqtree-rtl li.jqtree-ghost { - margin-right: 0; - margin-left: 10px; - } - -ul.jqtree-tree.jqtree-rtl li.jqtree-ghost span.jqtree-circle { - right: -6px; - } - -ul.jqtree-tree.jqtree-rtl li.jqtree-ghost span.jqtree-line { - right: 2px; - } - -ul.jqtree-tree.jqtree-rtl li.jqtree-ghost.jqtree-inside { - margin-left: 0; - margin-right: 48px; - } - -ul.jqtree-tree.jqtree-rtl span.jqtree-border { - right: -2px; - } - -span.jqtree-dragging { - color: #fff; - background: #000; - opacity: 0.6; - cursor: pointer; - padding: 2px 8px; -} diff --git a/src/main/static/jqtree/jquery-3.4.1.min.js b/src/main/static/jqtree/jquery-3.4.1.min.js deleted file mode 100644 index a1c07fd803b5fc9c54f44e31123ae4fa11e134b0..0000000000000000000000000000000000000000 --- a/src/main/static/jqtree/jquery-3.4.1.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0=0?this.parent.children[e]:null}return null},e.prototype.getNextSibling=function(){if(this.parent){var e=this.parent.getChildIndex(this)+1;return e/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},t.getBoolString=function(e){return e?"true":"false"}},function(e,t){e.exports=jQuery},function(e,t,o){"use strict";t.__esModule=!0;var n=function(){function e(e,t){this.$el=jQuery(e);var o=this.constructor.defaults;this.options=jQuery.extend({},o,t)}return e.register=function(t,o){var n=function(){return"simple_widget_"+o};function r(t,o){var n=jQuery.data(t,o);return n&&n instanceof e?n:null}function i(e,o){for(var i=n(),s=0,a=e.get();so.right||t>o.bottom)return null;for(var n=0,r=this.hitAreas.length;n>1,s=this.hitAreas[i];if(ts.bottom))return s;n=i+1}}return null},e.prototype.mustOpenFolderTimer=function(e){var t=e.node;return t.isFolder()&&!t.is_open&&e.position===s.Position.Inside},e.prototype.updateDropHint=function(){if(this.hoveredArea){this.removeDropHint();var e=this.treeWidget._getNodeElementForNode(this.hoveredArea.node);this.previousGhost=e.addDropHint(this.hoveredArea.position)}},e.prototype.startOpenFolderTimer=function(e){var t=this;this.stopOpenFolderTimer(),this.openFolderTimer=window.setTimeout(function(){t.treeWidget._openNode(e,t.treeWidget.options.slide,function(){t.refresh(),t.updateDropHint()})},this.treeWidget.options.openFolderDelay)},e.prototype.stopOpenFolderTimer=function(){this.openFolderTimer&&(clearTimeout(this.openFolderTimer),this.openFolderTimer=null)},e.prototype.moveItem=function(e){var t=this;if(this.currentItem&&this.hoveredArea&&this.hoveredArea.position!==s.Position.None&&this.canMoveToArea(this.hoveredArea)){var o=this.currentItem.node,n=this.hoveredArea.node,r=this.hoveredArea.position,i=o.parent;r===s.Position.Inside&&(this.hoveredArea.node.is_open=!0);var a=function(){t.treeWidget.tree.moveNode(o,n,r),t.treeWidget.element.empty(),t.treeWidget._refreshElements(null)};this.treeWidget._triggerEvent("tree.move",{move_info:{moved_node:o,target_node:n,position:s.getPositionName(r),previous_parent:i,do_move:a,original_event:e.originalEvent}}).isDefaultPrevented()||a()}},e.prototype.getTreeDimensions=function(){var e=this.treeWidget.element.offset();if(e){var t=this.treeWidget.element,o=t.width()||0,n=t.height()||0,r=e.left+this.treeWidget._getScrollLeft();return{left:r,top:e.top,right:r+o,bottom:e.top+n+16}}return{left:0,top:0,right:0,bottom:0}},e}();t.DragAndDropHandler=l;var d=function(e){function t(t,o,n){var r=e.call(this,t)||this;return r.currentNode=o,r.treeBottom=n,r}return r(t,e),t.prototype.generate=function(){return this.positions=[],this.lastTop=0,this.iterate(),this.generateHitAreas(this.positions)},t.prototype.generateHitAreas=function(e){for(var t=-1,o=[],n=[],r=0,i=e;r'+e+""),this.$element.css("position","absolute"),n.append(this.$element)}return e.prototype.move=function(e,t){this.$element.offset({left:e-this.offsetX,top:t-this.offsetY})},e.prototype.remove=function(){this.$element.remove()},e}()},function(e,t,o){"use strict";t.__esModule=!0;var n=o(1),r=function(){function e(e){this.treeWidget=e,this.openedIconElement=this.createButtonElement(e.options.openedIcon),this.closedIconElement=this.createButtonElement(e.options.closedIcon)}return e.prototype.render=function(e){e&&e.parent?this.renderFromNode(e):this.renderFromRoot()},e.prototype.renderFromRoot=function(){var e=this.treeWidget.element;e.empty(),this.createDomElements(e[0],this.treeWidget.tree.children,!0,1)},e.prototype.renderFromNode=function(e){var t=jQuery(e.element),o=this.createLi(e,e.getLevel());this.attachNodeData(e,o),t.after(o),t.remove(),e.children&&this.createDomElements(o,e.children,!1,e.getLevel()+1)},e.prototype.createDomElements=function(e,t,o,n){var r=this.createUl(o);e.appendChild(r);for(var i=0,s=t;i1)){var n=o.changedTouches[0];return t._handleMouseDown(t._getPositionInfo(n))}},t.touchMove=function(e){var o=e.originalEvent;if(!(o.touches.length>1)){var n=o.changedTouches[0];return t._handleMouseMove(e,t._getPositionInfo(n))}},t.touchEnd=function(e){var o=e.originalEvent;if(!(o.touches.length>1)){var n=o.changedTouches[0];return t._handleMouseUp(t._getPositionInfo(n))}},t}return r(t,e),t.prototype.setMouseDelay=function(e){this.mouseDelay=e},t.prototype._init=function(){this.$el.on("mousedown.mousewidget",this.mouseDown),this.$el.on("touchstart.mousewidget",this.touchStart),this.isMouseStarted=!1,this.mouseDelay=0,this.mouseDelayTimer=null,this.isMouseDelayMet=!0,this.mouseDownInfo=null},t.prototype._deinit=function(){this.$el.off("mousedown.mousewidget"),this.$el.off("touchstart.mousewidget");var e=jQuery(document);e.off("mousemove.mousewidget"),e.off("mouseup.mousewidget")},t.prototype._handleMouseDown=function(e){if(this.isMouseStarted&&this._handleMouseUp(e),this.mouseDownInfo=e,this._mouseCapture(e))return this._handleStartMouse(),!0},t.prototype._handleStartMouse=function(){var e=jQuery(document);e.on("mousemove.mousewidget",this.mouseMove),e.on("touchmove.mousewidget",this.touchMove),e.on("mouseup.mousewidget",this.mouseUp),e.on("touchend.mousewidget",this.touchEnd),this.mouseDelay&&this._startMouseDelayTimer()},t.prototype._startMouseDelayTimer=function(){var e=this;this.mouseDelayTimer&&clearTimeout(this.mouseDelayTimer),this.mouseDelayTimer=window.setTimeout(function(){e.isMouseDelayMet=!0},this.mouseDelay),this.isMouseDelayMet=!1},t.prototype._handleMouseMove=function(e,t){return this.isMouseStarted?(this._mouseDrag(t),e.preventDefault()):!(!this.mouseDelay||this.isMouseDelayMet)||(this.mouseDownInfo&&(this.isMouseStarted=!1!==this._mouseStart(this.mouseDownInfo)),this.isMouseStarted?this._mouseDrag(t):this._handleMouseUp(t),!this.isMouseStarted)},t.prototype._getPositionInfo=function(e){return{pageX:e.pageX,pageY:e.pageY,target:e.target,originalEvent:e}},t.prototype._handleMouseUp=function(e){var t=jQuery(document);t.off("mousemove.mousewidget"),t.off("touchmove.mousewidget"),t.off("mouseup.mousewidget"),t.off("touchend.mousewidget"),this.isMouseStarted&&(this.isMouseStarted=!1,this._mouseStop(e))},t}(o(3).default);t.default=i},function(e,t,o){"use strict";t.__esModule=!0;var n=o(1),r=function(){function e(e){this.treeWidget=e}return e.prototype.saveState=function(){var e=JSON.stringify(this.getState());this.treeWidget.options.onSetStateFromStorage?this.treeWidget.options.onSetStateFromStorage(e):this.supportsLocalStorage()&&localStorage.setItem(this.getKeyName(),e)},e.prototype.getStateFromStorage=function(){var e=this._loadFromStorage();return e?this._parseState(e):null},e.prototype.getState=function(){var e,t=this;return{open_nodes:(e=[],t.treeWidget.tree.iterate(function(t){return t.is_open&&t.id&&t.hasChildren()&&e.push(t.id),!0}),e),selected_node:t.treeWidget.getSelectedNodes().map(function(e){return e.id})}},e.prototype.setInitialState=function(e){if(e){var t=!1;return e.open_nodes&&(t=this._openInitialNodes(e.open_nodes)),e.selected_node&&(this._resetSelection(),this._selectInitialNodes(e.selected_node)),t}return!1},e.prototype.setInitialStateOnDemand=function(e,t){e?this._setInitialStateOnDemand(e.open_nodes,e.selected_node,t):t()},e.prototype.getNodeIdToBeSelected=function(){var e=this.getStateFromStorage();return e&&e.selected_node?e.selected_node[0]:null},e.prototype._parseState=function(e){var t=jQuery.parseJSON(e);return t&&t.selected_node&&n.isInt(t.selected_node)&&(t.selected_node=[t.selected_node]),t},e.prototype._loadFromStorage=function(){return this.treeWidget.options.onGetStateFromStorage?this.treeWidget.options.onGetStateFromStorage():this.supportsLocalStorage()?localStorage.getItem(this.getKeyName()):void 0},e.prototype._openInitialNodes=function(e){for(var t=!1,o=0,n=e;o=r},e.prototype.getScrollLeft=function(){return this.$scrollParent&&this.$scrollParent.scrollLeft()||0},e.prototype.initScrollParent=function(){var e=this,t=function(){e.scrollParentTop=0,e.$scrollParent=null};"fixed"===this.treeWidget.$el.css("position")&&t();var o=function(){var t=["overflow","overflow-y"],o=function(e){for(var o=0,n=t;o0,s=o.left+n.clientWidth,a=o.left,l=e.pageX>s-20,d=e.pageX0,i=e.pageX>n-20,s=e.pageX-o<20;i?t.scrollLeft(o+20):s&&r&&t.scrollLeft(Math.max(o-20,0))}},e}();t.default=n},function(e,t,o){"use strict";t.__esModule=!0;var n=function(){function e(e){this.treeWidget=e,this.clear()}return e.prototype.getSelectedNode=function(){var e=this.getSelectedNodes();return!!e.length&&e[0]},e.prototype.getSelectedNodes=function(){if(this.selectedSingleNode)return[this.selectedSingleNode];var e=[];for(var t in this.selectedNodes)if(this.selectedNodes.hasOwnProperty(t)){var o=this.treeWidget.getNodeById(t);o&&e.push(o)}return e},e.prototype.getSelectedNodesUnder=function(e){if(this.selectedSingleNode)return e.isParentOf(this.selectedSingleNode)?[this.selectedSingleNode]:[];var t=[];for(var o in this.selectedNodes)if(this.selectedNodes.hasOwnProperty(o)){var n=this.treeWidget.getNodeById(o);n&&e.isParentOf(n)&&t.push(n)}return t},e.prototype.isNodeSelected=function(e){return!!e&&(null!=e.id?!!this.selectedNodes[e.id]:!!this.selectedSingleNode&&this.selectedSingleNode.element===e.element)},e.prototype.clear=function(){this.selectedNodes={},this.selectedSingleNode=null},e.prototype.removeFromSelection=function(e,t){var o=this;void 0===t&&(t=!1),null==e.id?this.selectedSingleNode&&e.element===this.selectedSingleNode.element&&(this.selectedSingleNode=null):(delete this.selectedNodes[e.id],t&&e.iterate(function(){return delete o.selectedNodes[e.id],!0}))},e.prototype.addToSelection=function(e){null!=e.id?this.selectedNodes[e.id]=!0:this.selectedSingleNode=e},e}();t.default=n},function(e,t,o){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});t.__esModule=!0;var i=o(0),s=function(){function e(e,t){this.init(e,t)}return e.prototype.init=function(e,t){this.node=e,this.treeWidget=t,e.element||(e.element=this.treeWidget.element.get(0)),this.$element=jQuery(e.element)},e.prototype.addDropHint=function(e){return this.mustShowBorderDropHint(e)?new l(this.$element,this.treeWidget._getScrollLeft()):new d(this.node,this.$element,e)},e.prototype.select=function(e){var t=this.getLi();t.addClass("jqtree-selected"),t.attr("aria-selected","true");var o=this.getSpan();o.attr("tabindex",this.treeWidget.options.tabIndex),e&&o.focus()},e.prototype.deselect=function(){var e=this.getLi();e.removeClass("jqtree-selected"),e.attr("aria-selected","false");var t=this.getSpan();t.removeAttr("tabindex"),t.blur()},e.prototype.getUl=function(){return this.$element.children("ul:first")},e.prototype.getSpan=function(){return this.$element.children(".jqtree-element").find("span.jqtree-title")},e.prototype.getLi=function(){return this.$element},e.prototype.mustShowBorderDropHint=function(e){return e===i.Position.Inside},e}();t.NodeElement=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.open=function(e,t,o){var n=this;if(void 0===t&&(t=!0),void 0===o&&(o="fast"),!this.node.is_open){this.node.is_open=!0;var r=this.getButton();r.removeClass("jqtree-closed"),r.html("");var i=r.get(0);if(i){var s=this.treeWidget.renderer.openedIconElement.cloneNode(!0);i.appendChild(s)}var a=function(){n.getLi().removeClass("jqtree-closed"),n.getSpan().attr("aria-expanded","true"),e&&e(n.node),n.treeWidget._triggerEvent("tree.open",{node:n.node})};t?this.getUl().slideDown(o,a):(this.getUl().show(),a())}},t.prototype.close=function(e,t){var o=this;if(void 0===e&&(e=!0),void 0===t&&(t="fast"),this.node.is_open){this.node.is_open=!1;var n=this.getButton();n.addClass("jqtree-closed"),n.html("");var r=n.get(0);if(r){var i=this.treeWidget.renderer.closedIconElement.cloneNode(!0);r.appendChild(i)}var s=function(){o.getLi().addClass("jqtree-closed"),o.getSpan().attr("aria-expanded","false"),o.treeWidget._triggerEvent("tree.close",{node:o.node})};e?this.getUl().slideUp(t,s):(this.getUl().hide(),s())}},t.prototype.mustShowBorderDropHint=function(e){return!this.node.is_open&&e===i.Position.Inside},t.prototype.getButton=function(){return this.$element.children(".jqtree-element").find("a.jqtree-toggler")},t}(s);t.FolderElement=a;var l=function(){function e(e,t){var o=e.children(".jqtree-element"),n=e.width()||0,r=Math.max(n+t-4,0),i=o.outerHeight()||0,s=Math.max(i-4,0);this.$hint=jQuery(''),o.append(this.$hint),this.$hint.css({width:r,height:s})}return e.prototype.remove=function(){this.$hint.remove()},e}();t.BorderDropHint=l;var d=function(){function e(e,t,o){this.$element=t,this.node=e,this.$ghost=jQuery('
  • \n
  • '),o===i.Position.After?this.moveAfter():o===i.Position.Before?this.moveBefore():o===i.Position.Inside&&(e.isFolder()&&e.is_open?this.moveInsideOpenFolder():this.moveInside())}return e.prototype.remove=function(){this.$ghost.remove()},e.prototype.moveAfter=function(){this.$element.after(this.$ghost)},e.prototype.moveBefore=function(){this.$element.before(this.$ghost)},e.prototype.moveInsideOpenFolder=function(){jQuery(this.node.children[0].element).before(this.$ghost)},e.prototype.moveInside=function(){this.$element.after(this.$ghost),this.$ghost.addClass("jqtree-inside")},e}()},,function(e,t,o){e.exports=o(4)}]); \ No newline at end of file diff --git a/src/main/static/lode/extra.css b/src/main/static/lode/extra.css deleted file mode 100644 index 38e86dcf061d461a1cfbc3943ff1ab5c888154a5..0000000000000000000000000000000000000000 --- a/src/main/static/lode/extra.css +++ /dev/null @@ -1,124 +0,0 @@ -body { - text-align: justify; -} - -h1 { - line-height: 110%; -} - -.hlist { - border: 1px solid navy; - padding:5px; - background-color: #F4FFFF; -} - -.hlist li { - display: inline; - display: inline-table; - list-style-type: none; - padding-right: 20px; - -} - -.entity { - border: 1px solid navy; - margin:5px 0px 5px 0px; - padding: 5px; -} - -.type-c { - cursor:help; - color:orange; -} - -.type-op { - cursor:help; - color:navy; -} - -.type-dp { - cursor:help; - color:green; -} - -.type-ap { - cursor:help; - color:maroon; -} - -.type-ni { - cursor:help; - color:brown; -} - -.logic { - color:purple; - font-weight:bold; -} - -h3 { - margin-top: 3px; - padding-bottom: 5px; - border-bottom: 1px solid navy; -} - -h2 { - margin-top:40px; -} - -.dotted { - border-bottom: 1px dotted gray; -} - -dt { - margin-top:5px; -} - -.description { - border-top: 1px dashed gray; - border-bottom: 1px dashed gray; - background-color: rgb(242, 243, 244); - margin-top:5px; - padding-bottom:5px; -} - -.description dl { - background-color: rgb(242, 243, 244); -} - -.description ul { - padding-left: 12px; - margin-top: 0px; -} - -.backlink { - font-size:10pt; - text-align:right; - float:right; - color:black; - padding: 2px; - border: 1px dotted navy; - background-color: #F4FFFF; -} - -.imageblock { - text-align: center; -} - -.imageblock img { - border:1px solid gray; -} - -.endnote { - margin-top: 40px; - border-top: 1px solid gray; - padding-top: 10px; - text-align: center; - color:gray; - font-size:70%; -} - -.literal { - color:green; - font-style:italic; -} \ No newline at end of file diff --git a/src/main/static/lode/home.css b/src/main/static/lode/home.css deleted file mode 100644 index 5b84219b947f81c9c6331fe71707544265c3d08e..0000000000000000000000000000000000000000 --- a/src/main/static/lode/home.css +++ /dev/null @@ -1,233 +0,0 @@ -.hlist { - margin-top: 10pt; - border: 1px solid #e3dcf2; - padding:5px; -} - -.hlist li { - display: inline; - display: inline-table; - list-style-type: none; - padding-right: 20px; - -} - -.entity { - border: 1px solid #e3dcf2; - margin:5px 0px 5px 0px; - padding: 5px; -} - -.type-c { - cursor:help; - color:orange; -} - -.type-op { - cursor:help; - color:navy; -} - -.type-dp { - cursor:help; - color:green; -} - -.description { - background-color: rgb(242, 243, 244); - margin-top:5px; - padding-bottom:5px; -} - -.description dl { - background-color: rgb(242, 243, 244); -} - -.description ul { - padding-left: 12px; - margin-top: 0px; -} - -.backlink { - font-size:10pt; - text-align:right; - float:right; - color:black; - padding: 2px; - border: 1px solid #e3dcf2; - background-color: #F4FFFF; -} - -.logic { - color: #007dc3; - font-weight:bold; -} - - -/** Back to Top / ToC Toggle **************************************************/ - - @media print { - #toc-nav { - display: none; - } - } - @media not print { - #toc-nav { - position: fixed; - z-index: 2; - bottom: 0; left: 0; - margin: 0; - min-width: 1.33em; - font-size: 1.5em; - color: black; - } - #toc-nav > a { - display: block; - white-space: nowrap; - - height: 2em; - padding: .1em 0.3em; - margin: 0; - - box-shadow: 0 0 2px; - border: none; - border-top-right-radius: 1em; - border-bottom-right-radius: 1em; - background: white; - } - #toc-nav > #toc-jump { - padding-bottom: 2em; - margin-bottom: 0em; - } - - #toc-nav > a:hover, - #toc-nav > a:focus { - background: #f8f8f8; - } - #toc-nav > a:not(:hover):not(:focus) { - color: #707070; - } - - /* statusbar gets in the way on keyboard focus; remove once browsers fix */ - #toc-nav > a[href="#toc"]:not(:hover):focus:last-child { - padding-bottom: 1.5rem; - } - - #toc-nav:not(:hover) > a:not(:focus) > span + span { - /* Ideally this uses :focus-within on #toc-nav */ - display: none; - } - #toc-nav > a > span + span { - padding-right: 0.2em; - } - - #toc-toggle-inline { - vertical-align: 0.05em; - font-size: 80%; - color: gray; - color: hsla(203,20%,40%,.7); - border-style: none; - background: transparent; - position: relative; - } - #toc-toggle-inline:hover:not(:active), - #toc-toggle-inline:focus:not(:active) { - text-shadow: 1px 1px silver; - top: -1px; - left: -1px; - } - - #toc-nav :active { - color: #C00; - } - } - -/** ToC Sidebar ***************************************************************/ - - /* Floating sidebar */ - @media screen { - body.toc-sidebar #toc { - position: fixed; - top: 0; bottom: 0; - left: 0; - width: 23.5em; - max-width: 80%; - max-width: calc(100% - 2em - 26px); - overflow: auto; - padding: 0 1em; - padding-left: 42px; - padding-left: calc(1em + 26px); - background: inherit; - background-color: #f7f8f9; - z-index: 1; - box-shadow: -.1em 0 .25em rgba(0,0,0,.1) inset; - } - body.toc-sidebar #toc h2 { - margin-top: .8rem; - font-variant: small-caps; - font-variant: all-small-caps; - text-transform: lowercase; - font-weight: bold; - color: gray; - color: hsla(203,20%,40%,.7); - } - body.toc-sidebar #toc-jump:not(:focus) { - width: 0; - height: 0; - padding: 0; - position: absolute; - overflow: hidden; - } - } - /* Hide main scroller when only the ToC is visible anyway */ - @media screen and (max-width: 28em) { - body.toc-sidebar { - overflow: hidden; - } - } - - /* Sidebar with its own space */ - @media screen and (min-width: 78em) { - body:not(.toc-inline) #toc { - position: fixed; - top: 0; bottom: 0; - left: 0; - width: 23.5em; - overflow: auto; - padding: 0 1em; - padding-left: 42px; - padding-left: calc(1em + 26px); - background: inherit; - background-color: #f7f8f9; - z-index: 1; - box-shadow: -.1em 0 .25em rgba(0,0,0,.1) inset; - } - body:not(.toc-inline) #toc h2 { - margin-top: .8rem; - font-variant: small-caps; - font-variant: all-small-caps; - text-transform: lowercase; - font-weight: bold; - color: gray; - color: hsla(203,20%,40%,.7); - } - - body:not(.toc-inline) { - padding-left: 24em; - padding-left: calc(23.5em ); - } - /* See also Overflow section at the bottom */ - - body:not(.toc-inline) #toc-jump:not(:focus) { - width: 0; - height: 0; - padding: 0; - position: absolute; - overflow: hidden; - } - } - @media screen and (min-width: 90em) { - body:not(.toc-inline) { - margin: 0 0em; - } - } diff --git a/src/main/static/lode/owl.css b/src/main/static/lode/owl.css deleted file mode 100644 index 9e80a257a37f672ee0d6e3380311bbe04d76a958..0000000000000000000000000000000000000000 --- a/src/main/static/lode/owl.css +++ /dev/null @@ -1,248 +0,0 @@ -.RFC2119 { - text-transform: lowercase; - font-style: italic; -} -.nonterminal { - font-weight: bold; - font-family: sans-serif; - font-size: 95%; -} -#abstract br { - /* doesn't work right SOMETIMES - margin-bottom: 1em; */ -} -.name { - font-family: monospace; -} -.buttonpanel { - margin-top: 1ex; - margin-bottom: 1ex; - padding-left: 1ex; - padding-right: 1ex; - padding-top: 1ex; - padding-bottom: 0.6ex; - border: 1px dotted black; -} -.grammar { - margin-top: 1ex; - margin-bottom: 1ex; - padding-left: 1ex; - padding-right: 1ex; - padding-top: 1ex; - padding-bottom: 0.6ex; - border: 1px dashed #2f6fab; - font-family: monospace; -} -.image { - text-align: center; -} -.centered { - text-align: center; - padding-top: 4ex; - padding-bottom: 4ex; -} -.centered table { - margin: 0 auto; - text-align: left; -} -.caption { - font-weight: bold; -} -.indent { - margin-left: 20px; -} -.atrisknote { - padding: 5px; - margin-top: 10px; - margin-bottom: 10px; - border: solid 2px blue; - background-color: #FFA; -} -.atrisknotehead { - font-style: italic; -} - -/* Stying the examples. */ - -.anexample:before { - content: "Example:"; - font-family: sans-serif; - font-size: 1.6ex; - font-weight: bold; -} -.anexample { - margin-top: 1ex; - margin-bottom: 1ex; - padding-left: 1ex; - padding-right: 1ex; - padding-top: 1ex; - padding-bottom: 0.6ex; - border: 1px dashed #2f6fab; - background-color: #f9f9f9; -} -.anexample table { - background-color: #f9f9f9; -} - -/* Styling the parts in the functional-style syntax. */ - -div.fss { - margin-top: 10px; - margin-bottom: 10px; - margin-left: 20px; - margin-right: 20px; - font-family: monospace; -} -table.fss { - margin: 0px 0px 0px 0px; - padding: 0px 0px 0px 0px; - width: 100%; -} -table.fss caption.fss { - font-size: 1.5ex; - font-weight: bold; - text-align: left; - padding-left: 10px; -} -table.fss td:first-child { - font-family: monospace; - padding-left: 20px; - padding-right: 20px; - width: 60%; -} -table{ - background-color: #f4ffff; - border: 1px solid navy; - margin: 20px; - vertical-align: middle; -} -table td { - padding: 5px 15px; - text-align: left; -} - -/* Styling the parts in the RDF syntax. */ - -div.rdf{ - margin-top: 10px; - margin-bottom: 10px; - margin-left: 20px; - margin-right: 20px; - font-family: monospace; -} -table.rdf { - margin: 0px 0px 0px 0px; - padding: 0px 0px 0px 0px; - width: 100%; -} -table.rdf caption.rdf { - font-size: 1.5ex; - font-weight: bold; - text-align: left; - padding-left: 10px; -} -table.rdf td:first-child { - font-family: monospace; - padding-left: 20px; - padding-right: 20px; - width: 60%; -} - -/* Styling the XML syntax. */ - -div.xmlsyn { - margin-top: 10px; - margin-bottom: 10px; - margin-left: 20px; - margin-right: 20px; - font-family: monospace; -} -div.axioms { - margin-top: 10px; - margin-bottom: 10px; - margin-left: 20px; - margin-right: 20px; -} - -/* Other styles. */ - -table.complexity td { - text-align: center; -} -table.allname td { - font-family: monospace; -} -table.canonicalparsing { - margin-left: 20px; - border-style: none; -} -table.canonicalparsing td { - vertical-align: top; - padding: 2px 2px 2px 2px; -} -table.canonicalparsing td.two { - padding-left: 30px; -} - -/* The following are classes for templates used in the editing process. */ - -.review { - padding: 5px; - border: solid 1px black; - margin-left: 10%; - margin-top: 10px; - margin-bottom: 10px; - background-color: #FFA; - font-size: smaller; -} -.reviewauthor { - font-size: smaller; - font-style: italic; -} -.ednote { - padding: 5px; - border: solid 1px black; - margin-top: 10px; - margin-bottom: 10px; -} -.ednotehead { - font-weight: bold; -} - -/* override mediawiki's beautiful DL styling... */ -dl { - background: white; - width: 100%; - border: none; - margin-top: 0; - margin-bottom: 0; - padding-top: 0; - padding-bottom: 0; -} - -div { - margin-top: 0; - margin-bottom: 0; -} -#fulltitle { - font-size: 140%; - font-weight: bold; -} - -.xml { - color: red -} - -.rdbms{ -color: red -} - -/* just copying from wiki, so it stays through TR. Currently - affects Primer, at least */ -pre { - background-color:#F9F9F9; - border:1px dashed #2F6FAB; - color:black; - line-height:1.1em; - padding:1em; -} \ No newline at end of file diff --git a/src/main/static/lode/primer.css b/src/main/static/lode/primer.css deleted file mode 100644 index fc28be7169638d433e9e0576fc93c1991dd50328..0000000000000000000000000000000000000000 --- a/src/main/static/lode/primer.css +++ /dev/null @@ -1,103 +0,0 @@ -/* define a class "noprint" for sections which don't get printed */ -.noprint { display: none; } - -/* our syntax menu for switching */ -div.syntaxmenu { - border: 1px dotted black; - padding:0.5em; - margin: 1em; -} - -.container { - margin-right: auto; - margin-left: auto; - padding-left: 15px; - padding-right: 15px; -} - -@media print { - div.syntaxmenu { display:none; } -} - -/* use tab-like headers for syntax examples */ -div.exampleheader { - font-size: 90%; - float: left; - background: #F9F9F9; - color: #2F6FAB; - border: 1px dashed #2F6FAB; - border-bottom: 0px; - padding-top: 2px; -} - -div.exampleheader span.exampleheader { - background: #F9F9F9; - padding-top: 0px; - padding-right: 10px; - padding-left: 10px; - padding-bottom: 3px; - padding-top: 0px; -} - -/* Also copy MediaWiki style here, so it will not look different when exported */ -div.fssyntax pre, div.rdfxml pre, div.owlxml pre, div.turtle pre, div.manchester pre { - background-color: #F9F9F9; - border: 1px dashed #2F6FAB; - color: black; - line-height: 1.1em; - padding: 1em; - clear: both; - margin-left: 0em; -} -/* Expansion to add the status*/ -.status { - position: fixed; - left: 0em; - top: 0em; - text-align: right; - vertical-align: middle; - /* Square version of the inside span. Slightly larger */ - width: 26em; - height: 26em; - z-index: -1; - opacity: 0.8; - - /** From http://stackoverflow.com/questions/1080792/how-to-draw-vertical-text-with-css-cross-browser */ - - -webkit-transform: rotate(-90deg); - -moz-transform: rotate(-90deg); - -ms-transform: rotate(-90deg); - -o-transform: rotate(-90deg); - transform: rotate(-90deg); - /* also accepts left, right, top, bottom coordinates; not - * required, but a good idea for styling */ - -webkit-transform-origin: 50% 50%; - -moz-transform-origin: 50% 50%; - -ms-transform-origin: 50% 50%; - -o-transform-origin: 50% 50%; - transform-origin: 50% 50%; - - /* Should be unset in IE9+ I think. */ - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); -} - -/* The actual status box */ - .status div { - display: block; - background: rgb(0, 90, 156); - color: white; - width: 24em; - padding-top: 0.3em; - padding-left: 0em; - padding-right: 5em; - padding-bottom: 0.3em; - /* Enable for debugging - border: red thin solid; - */ -} - -/* And text inside, don't confuse fonts as it breaks em above */ -.status div span { - font-family: "Tauri"; - font-size: larger; -} \ No newline at end of file diff --git a/src/main/static/lode/rec.css b/src/main/static/lode/rec.css deleted file mode 100644 index aaecd48cb731e782529ba02487f7e37a941ad725..0000000000000000000000000000000000000000 --- a/src/main/static/lode/rec.css +++ /dev/null @@ -1,45 +0,0 @@ -body { - counter-reset: section; -} - -h2 { - counter-reset: subsection -} - -h2:before { - counter-increment: section; - content: counter(section) ". "; -} - -h3:before { - counter-increment: subsection; - content: counter(section) "."counter(subsection) ". "; -} - - -@media aural { - - h1, - h2, - h3 { - stress: 20; - richness: 90 - } - - .hide { - speak: none - } - - p.copyright { - volume: x-soft; - speech-rate: x-fast - } - - dt { - pause-before: 20% - } - - pre { - speak-punctuation: code - } -} \ No newline at end of file diff --git a/src/main/static/lode/scripts.js b/src/main/static/lode/scripts.js deleted file mode 100644 index 86a1ad8b510abfeda9d7a7a30cd9cdfaeb4653a4..0000000000000000000000000000000000000000 --- a/src/main/static/lode/scripts.js +++ /dev/null @@ -1,151 +0,0 @@ -/****************************************************************************** - * JS Extension for the W3C Spec Style Sheet * - * * - * This code handles: * - * - some fixup to improve the table of contents * - * - the obsolete warning on outdated specs * - ******************************************************************************/ -(function() { - "use strict"; - var ESCAPEKEY = 27; - var collapseSidebarText = ' ' - + 'Collapse Sidebar'; - var expandSidebarText = ' ' - + 'Pop Out Sidebar'; - var tocJumpText = ' ' - + 'Jump to Hierarchy of Terms'; - - var sidebarMedia = window.matchMedia('screen and (min-width: 78em)'); - var autoToggle = function(e){ toggleSidebar(e.matches) }; - if(sidebarMedia.addListener) { - sidebarMedia.addListener(autoToggle); - } - - function toggleSidebar(on, skipScroll) { - if (on == undefined) { - on = !document.body.classList.contains('toc-sidebar'); - } - - if (!skipScroll) { - /* Don't scroll to compensate for the ToC if we're above it already. */ - var headY = 0; - var head = document.querySelector('.head'); - if (head) { - // terrible approx of "top of ToC" - headY += head.offsetTop + head.offsetHeight; - } - skipScroll = window.scrollY < headY; - } - - var toggle = document.getElementById('toc-toggle'); - var tocNav = document.getElementById('toc'); - if (on) { - var tocHeight = tocNav.offsetHeight; - document.body.classList.add('toc-sidebar'); - document.body.classList.remove('toc-inline'); - toggle.innerHTML = collapseSidebarText; - if (!skipScroll) { - window.scrollBy(0, 0 - tocHeight); - } - tocNav.focus(); - sidebarMedia.addListener(autoToggle); // auto-collapse when out of room - } - else { - document.body.classList.add('toc-inline'); - document.body.classList.remove('toc-sidebar'); - toggle.innerHTML = expandSidebarText; - if (!skipScroll) { - window.scrollBy(0, tocNav.offsetHeight); - } - if (toggle.matches(':hover')) { - /* Unfocus button when not using keyboard navigation, - because I don't know where else to send the focus. */ - toggle.blur(); - } - } - } - - function createSidebarToggle() { - /* Create the sidebar toggle in JS; it shouldn't exist when JS is off. */ - var toggle = document.createElement('a'); - /* This should probably be a button, but appearance isn't standards-track.*/ - toggle.id = 'toc-toggle'; - toggle.class = 'toc-toggle'; - toggle.href = '#toc'; - toggle.innerHTML = collapseSidebarText; - - sidebarMedia.addListener(autoToggle); - var toggler = function(e) { - e.preventDefault(); - sidebarMedia.removeListener(autoToggle); // persist explicit off states - toggleSidebar(); - return false; - } - toggle.addEventListener('click', toggler, false); - - - /* Get