mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-05 11:45:52 +00:00
Revert "ox-html.el: Use classList and put in the public domain"
This reverts commit 4710541365
.
This commit is contained in:
parent
c43041cf1a
commit
29d21ea628
@ -233,23 +233,25 @@ property on the headline itself.")
|
||||
|
||||
(defconst org-html-scripts
|
||||
"<script type=\"text/javascript\">
|
||||
// @license magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a&dn=public-domain.txt Public Domain
|
||||
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
function CodeHighlightOn(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.classList.add(\"code-highlighted\");
|
||||
target.classList.add(\"code-highlighted\");
|
||||
elem.cacheClassElem = elem.className;
|
||||
elem.cacheClassTarget = target.className;
|
||||
target.className = \"code-highlighted\";
|
||||
elem.className = \"code-highlighted\";
|
||||
}
|
||||
}
|
||||
function CodeHighlightOff(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.classList.remove(\"code-highlighted\");
|
||||
target.classList.remove(\"code-highlighted\");
|
||||
}
|
||||
if(elem.cacheClassElem)
|
||||
elem.className = elem.cacheClassElem;
|
||||
if(elem.cacheClassTarget)
|
||||
target.className = elem.cacheClassTarget;
|
||||
}
|
||||
/*]]>*///-->
|
||||
// @license-end
|
||||
|
Loading…
Reference in New Issue
Block a user