0cc4362a23
Gitea Branch PR & Ansible Deployment / Check and Create PR (push) Successful in 19s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rikku) (push) Successful in 2m51s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (benedikta) (push) Successful in 4m8s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rinoa) (push) Successful in 4m43s
Gitea Branch PR & Ansible Deployment / PR Merge (push) Successful in 16s
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (benedikta) (push) Successful in 3m29s
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (rikku) (push) Successful in 3m1s
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (rinoa) (push) Successful in 5m29s
18 lines
561 B
JavaScript
Executable File
18 lines
561 B
JavaScript
Executable File
/* Copyright (C) 2020 David Svantesson
|
|
* MIT License
|
|
*
|
|
*/
|
|
|
|
function parsePlantumlCodeBlocks(plantumlServer = "http://www.plantuml.com/plantuml", htmlClass = "language-plantuml") {
|
|
var codeBlocks = document.getElementsByClassName(htmlClass);
|
|
|
|
for (var block_i = 0; block_i < codeBlocks.length; block_i++) {
|
|
block_string = codeBlocks[block_i].innerText
|
|
//UTF8
|
|
block_string = unescape(encodeURIComponent(block_string));
|
|
codeBlocks[block_i].innerHTML = "<img src=\"" + plantumlServer + "/img/" + encode64(zip_deflate(block_string, 9)) + "\">";
|
|
}
|
|
|
|
}
|
|
|