sassdoc-theme-alix
Advanced tools
Comparing version 0.3.26 to 0.3.27
@@ -1,1 +0,1 @@ | ||
function getFileName(){var e="https://rawgit.com/ffoodd/a11y.css/master/css/",t="a11y-",n=document.getElementById("language").value||"en",a=document.getElementById("minimum-level").value||"advice",o=".css";return"advice"!==a&&(a="_"+a),e+t+n+a+o}function getBookmarkletContent(){return["javascript:","(function(){",'a11ycss=document.createElement("LINK");','a11ycss.href="'+getFileName()+'";','a11ycss.rel="stylesheet";','a11ycss.media="(min-width: 800px)";',"document.body.appendChild(a11ycss);","})();"].join("")}function activeAnchor(e){var e=e||document.getElementById("toc"),t=e.getElementsByTagName("a");for(i=0;i<t.length;i++)document.location.href.indexOf(t[i].href)>=0&&t[i].classList.add("active-test")}function handleTocClick(e){var t=e.target,n=document.querySelector(".active-test");n&&n.removeAttribute("class"),"a"===t.tagName.toLowerCase()&&t.classList.add("active-test")}function handleFormSubmit(e){e.preventDefault();var t=document.getElementById("bookmarklet--link");t.setAttribute("href",getBookmarkletContent()),t.classList.add("done")}function handleFormChange(){var e=document.getElementById("bookmarklet--link");e.classList.remove("done")}document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("bookmarklet");e&&(e.addEventListener("submit",handleFormSubmit),e.addEventListener("change",handleFormChange));var t=document.getElementById("toc");t&&(t.addEventListener("click",handleTocClick),activeAnchor(t))}); | ||
function getFileName(){var e="https://rawgit.com/ffoodd/a11y.css/master/css/",t="a11y-",n=document.getElementById("language").value||"en",a=document.getElementById("minimum-level").value||"advice",o=".css";return a="advice"!==a?"_"+a:"",e+t+n+a+o}function getBookmarkletContent(){return["javascript:","(function(){",'a11ycss=document.createElement("LINK");','a11ycss.href="'+getFileName()+'";','a11ycss.rel="stylesheet";','a11ycss.media="(min-width: 800px)";',"document.body.appendChild(a11ycss);","})();"].join("")}function activeAnchor(e){var e=e||document.getElementById("toc"),t=e.getElementsByTagName("a");for(i=0;i<t.length;i++)document.location.href.indexOf(t[i].href)>=0&&t[i].classList.add("active-test")}function handleTocClick(e){var t=e.target,n=document.querySelector(".active-test");n&&n.removeAttribute("class"),"a"===t.tagName.toLowerCase()&&t.classList.add("active-test")}function handleFormSubmit(e){e.preventDefault();var t=document.getElementById("bookmarklet--link");t.setAttribute("href",getBookmarkletContent()),t.classList.add("done")}function handleFormChange(){var e=document.getElementById("bookmarklet--link");e.classList.remove("done")}document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("bookmarklet");e&&(e.addEventListener("submit",handleFormSubmit),e.addEventListener("change",handleFormChange));var t=document.getElementById("toc");t&&(t.addEventListener("click",handleTocClick),activeAnchor(t))}); |
@@ -10,2 +10,4 @@ function getFileName () { | ||
level = '_' + level; | ||
} else { | ||
level = ''; | ||
} | ||
@@ -12,0 +14,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "SassDoc theme for a11y.css", | ||
"version": "0.3.26", | ||
"version": "0.3.27", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "sassdoc-theme" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165135
334