Skip to content
← Back to Community
LinearJS - a JS library to make HTML shorter
Profile icon
matthyno

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:

  1. fonts
    fonts.js adds the ability to customize your fonts, via |ff FontNameHere prp|. Use ff| to end the font element, and thus end the usage of the font.
Voters
Profile icon
RixTheTyrunt
Profile icon
matthyno
Comments
hotnewtop
Profile icon
RixTheTyrunt

I made LEAFSAYSwiki!

Profile icon
RixTheTyrunt

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!

Profile icon
matthyno

@RixTheTyrunt thanks! I could also make poweredShown == false into !poweredShown tho right?

Profile icon
RixTheTyrunt

I perfer ... == false more than !..., but yes, I guess...

Profile icon
RixTheTyrunt

Because I prefer "good game" more than "gg", LOL.