Moved scripts from .html files to seperate js .files #191

Merged
bema merged 13 commits from bema/ref/spearate_js_from_html into master 2023-05-16 09:59:07 +02:00
3 changed files with 0 additions and 29 deletions
Showing only changes of commit 52c1620552 - Show all commits

View File

@@ -1,20 +1,5 @@
const tools = new Map();
/**
* This functions imports other js file. I hate this solution, but other didn't work.
*
* @function
* @name importScript
* @kind function
* @param {any} url
* @returns {void}
*/
function importScript(url) {
var script = document.createElement("script");
script.src = url;
document.head.appendChild(script);
}
/**
* Get address of Mock Services
*

View File

@@ -3,19 +3,6 @@ const mergeHTMLPlugin = (function () {
var originalStream;
/**
* @param {string} value
* @returns {string}
*/
function escapeHTML(value) {
return value
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#x27;');
}
/* plugin itself */
/** @type {HLJSPlugin} */

View File

@@ -102,7 +102,6 @@ for (i = 0; i < triggerList.length; i++) {
}
function init() {
//importScript("../assets/scripts/tools/scripts.js");
// Make sure that only plain text is pasted
configurePastingInElement("xmlArea");