BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
wp-content
/
plugins
/
wp-optimize
/
js
/
sortable
📤 Upload
📝 New File
📁 New Folder
Close
Editing: sortable.a11y.min.js
var enhanceSortableAccessibility=function(g){function h(c){"Enter"===c.key&&c.target.click()}g.forEach(function(c){var k=c.classList.contains("asc")?"ascending":"";c.querySelectorAll("th").forEach(function(a){if(!a.hasAttribute("tabindex")){var e=function(){var d=k,b;void 0===d&&(d="");var l=a.textContent||"element",f=null!==(b=a.getAttribute("aria-sort"))&&void 0!==b?b:"";b="descending";if("descending"===f||d&&"ascending"!==f)b="ascending";d="Click to sort table by ".concat(l," in ").concat(b," order"); a.setAttribute("aria-label",d)};a.setAttribute("tabindex","0");e();a.addEventListener("click",function(){setTimeout(e,50)});a.addEventListener("focus",e);a.addEventListener("keydown",h)}})})};document.addEventListener("DOMContentLoaded",function(){enhanceSortableAccessibility(document.querySelectorAll(".sortable"))});
Save
Cancel