From e249817c9425529cc2e15a650351e2aa9514da1d Mon Sep 17 00:00:00 2001 From: octt Date: Tue, 11 Feb 2025 23:15:29 +0100 Subject: [PATCH] Agg. pagina Percent-Encoding --- Scripts/Dependencies.Runtime.sh | 10 +++++++--- content/it/miscellanea/Percent-Encoding.md | 14 ++++++++++++++ static/res/Percent-Encoding.css | 6 ++++++ static/res/Percent-Encoding.js | 19 +++++++++++++++++++ static/res/site-search.js | 5 +++-- static/res/sitoctt-utils.js | 14 ++++++++++++++ .../ananke/layouts/partials/site-scripts.html | 3 ++- 7 files changed, 65 insertions(+), 6 deletions(-) create mode 100644 content/it/miscellanea/Percent-Encoding.md create mode 100644 static/res/Percent-Encoding.css create mode 100644 static/res/Percent-Encoding.js create mode 100644 static/res/sitoctt-utils.js diff --git a/Scripts/Dependencies.Runtime.sh b/Scripts/Dependencies.Runtime.sh index 7ee02f8..d80dfea 100755 --- a/Scripts/Dependencies.Runtime.sh +++ b/Scripts/Dependencies.Runtime.sh @@ -5,8 +5,12 @@ cd "${swd}/.." mkdir -p ./static/res/lib cd ./static/res/lib -wget --continue "https://spaccinc.gitlab.io/SpaccDotWeb/SpaccDotWeb.Alt.min.js" -wget --continue "https://uicdn.toast.com/editor/latest/toastui-editor-all.min.js" -wget --continue "https://uicdn.toast.com/editor/latest/toastui-editor.min.css" +downloadfile(){ + wget -O "./$2" "https://$1/$2" +} + +downloadfile spaccinc.gitlab.io/SpaccDotWeb SpaccDotWeb.Alt.min.js +downloadfile uicdn.toast.com/editor/latest toastui-editor-all.min.js +downloadfile uicdn.toast.com/editor/latest toastui-editor.min.css cd "${owd}" diff --git a/content/it/miscellanea/Percent-Encoding.md b/content/it/miscellanea/Percent-Encoding.md new file mode 100644 index 0000000..b21a587 --- /dev/null +++ b/content/it/miscellanea/Percent-Encoding.md @@ -0,0 +1,14 @@ ++++ +Title = "Codifica URL" ++++ +
+ + + + +

+ +

+ + +
diff --git a/static/res/Percent-Encoding.css b/static/res/Percent-Encoding.css new file mode 100644 index 0000000..5c03def --- /dev/null +++ b/static/res/Percent-Encoding.css @@ -0,0 +1,6 @@ +.Percent-Encoding > div { + /* display: grid; + grid-template-columns: auto auto; */ +} +.Percent-Encoding textarea { width: 100%; min-height: 10em; } + diff --git a/static/res/Percent-Encoding.js b/static/res/Percent-Encoding.js new file mode 100644 index 0000000..4b8e2df --- /dev/null +++ b/static/res/Percent-Encoding.js @@ -0,0 +1,19 @@ +(function(stepsEl){ + +function convertText (sourceEl, destinationEl, handler) { + var text = sourceEl.value; + for (var i=0; i -window.sitoctt = {}; +window.sitoctt = { utils: {} }; window.Void = (function Void(){}); {{- with resources.Get "SiteProps.toml" -}} {{- with . | transform.Unmarshal -}} @@ -8,6 +8,7 @@ window.Void = (function Void(){}); {{- end -}} window.sitoctt.localStorage = (function localStorage(key, value){ return SpaccDotWeb.LocalStorage('org.eu.octt.sitoctt', key, value); }); +