------------------------------------------------------------
commit 3e3c57a07e7ffd31dd9b8e24a82b0af1112232b9
Author: ffff:72.234.190.31 <ffff:72.234.190.31@hub.scroll.pub> Date: Sat Nov 16 00:34:51 2024 +0000 Updated index.scroll diff --git a/index.scroll b/index.scroll index 73f05dc..d7737da 100644 --- a/index.scroll +++ b/index.scroll @@ -1,9 +1,8 @@ buildHtml -sort 832 2 3 43 234 324 312 - +sort 832 2 3 43 234 324 312 sortParser description Sort a list of numbers in ascending order. ------------------------------------------------------------
commit eb5141c516ca630560090f7279fb87f43b4abfea
Author: ffff:72.234.190.31 <ffff:72.234.190.31@hub.scroll.pub> Date: Sat Nov 16 00:34:34 2024 +0000 Updated index.scroll diff --git a/index.scroll b/index.scroll index 4442ed6..73f05dc 100644 --- a/index.scroll +++ b/index.scroll @@ -1,4 +1,28 @@ buildHtml -theme roboto -Hello World my name is \ No newline at end of file +sort 832 2 3 43 234 324 312 + + + + +sortParser + description Sort a list of numbers in ascending order. + extends abstractScrollParser + catchAllAtomType numberAtom + cueFromId + example + sort 3 453 4 24 4 34 + javascript + buildHtml() { + const numbers = this.getAtomsFrom(1).map(num => parseFloat(num)) + const sorted = numbers.sort((a, b) => a - b) + return `${sorted.join(" ")}` + } + buildTxt() { + const numbers = this.getAtomsFrom(1).map(num => parseFloat(num)) + const sorted = numbers.sort((a, b) => a - b) + return sorted.join(" ") + } + + +font Verdana \ No newline at end of file ------------------------------------------------------------
commit 93e43037b7794c5d3de89eaf6afe3e3d561d8df3
Author: root <root@hub.scroll.pub> Date: Sun Nov 10 20:12:15 2024 +0000 initial blank_template template diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bd1a52d --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +.DS_Store +*.html +*.txt +*.xml +*.css +*.js +*.csv +requests.scroll \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..4442ed6 --- /dev/null +++ b/index.scroll @@ -0,0 +1,4 @@ +buildHtml +theme roboto + +Hello World my name is \ No newline at end of file