LinearJS - a JS library to make HTML shorter
LinearJS was originally intended to be a wiki language like MediaWiki, but then I realized it had so much more potential than a simple wiki language.
After that decision, I renamed it from Linearwiki to LinearJS.
It's now a project I love to code - and there is a little example in the repl below.
Download it yourself via getting 1 file; linearjs.js.
PLUGINS:
If you want plugins, simply use the fonts.js file as an example, and src.js as a test site example.
RECOMMENDED PLUGINS:
- fonts
fonts.js
adds the ability to customize your fonts, via|ff FontNameHere prp|
. Useff|
to end the font element, and thus end the usage of the font.
Wondering how to make that print once?
if (poweredShown == false) { console.log("%cINFO: Powered by Linearwiki!", "background: cyan; color: black; font-weight: bold;") poweredShown = true }
And then in the start, just define poweredShown
as false
!
@RixTheTyrunt thanks! I could also make poweredShown == false
into !poweredShown
tho right?
I perfer ... == false
more than !...
, but yes, I guess...
Because I prefer "good game" more than "gg", LOL.
I made LEAFSAYSwiki!