-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Теперь импорт чата в HTML файл & сделано скачиваниеmod/page/view.php
- Loading branch information
1 parent
770610e
commit 9881e3a
Showing
5 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
window.onload = () => { | ||
let badge = document.createElement("span"); | ||
badge.innerHTML = `<a class="badge badge-info rounded mb-1"><i class="fa fa-download"></i> Скачать в HTML</a> ` | ||
badge.addEventListener("click", () => { | ||
downloadFileFromText(`${document.querySelector(".page-header-headings > h1").textContent}.html`, document.querySelector(".no-overflow").innerHTML) | ||
}); | ||
badge.style.cursor = "pointer"; | ||
badge.title = `Нажав на кнопку вы сможете скачать контент с этой страницы в виде HTML файла` | ||
document.querySelector(".automatic-completion-conditions").append(badge); | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters