Файловый менеджер - Редактировать - /home/harasnat/www/labour/wp-content/plugins/mammoth-docx-converter/tabs.js
Назад
(function() { Array.prototype.forEach.call(document.getElementsByClassName("mammoth-tabs"), function(tabsElement) { var headings = Array.prototype.map.call(tabsElement.getElementsByClassName("tab"), function(tabElement) { var titleElement = tabElement.children[0]; var title = titleElement.textContent; tabElement.removeChild(titleElement); var element = document.createElement("li"); element.textContent = title; element.addEventListener("click", select, false); function select() { headings.forEach(function(heading) { heading.deselect(); }); element.className = "selected"; tabElement.style.display = "block"; } function deselect() { element.className = ""; tabElement.style.display = "none"; } return { element: element, select: select, deselect: deselect }; }); var headingsElement = document.createElement("ul"); headingsElement.className = "tabs-nav"; headings.forEach(function(heading) { headingsElement.appendChild(heading.element); }); tabsElement.insertBefore(headingsElement, tabsElement.firstChild); headings[0].select(); }); })();
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка