A small javascript library, that helps you shrink your code, and lets you relax.
λ("p") // Returns first p element, like querySelector
Built-in alerts obsolete? We got alerts
λ.alert("x","y",4000) // displays alert element for 4000ms
Want a easy global variable? λ.v / v's got your trick! . You can use them to create global variables effortlessly and modify inside functions and such.
λ.v.text/*or v.text*/ = "Hello World"
Want some cool chaining? λ() has got chaining! hello friend <- watch this change as you click on the below code... oh and duplicate... oh and change...
λ(".hello-friend",1).replace("hello","Greetings,").add("!").dupe().ex[0].c.set(" Wow, I got duplicated and my html was set by λ.js!!")
λ.sethtml(".sethtml-test", "I'm happy!")
λ.addhtml(".addhtml-test", "How are you")
λ.elm("p")
λ.elm(λ("p"))
duplicate this!
λ.dupe(".dupetest") // Clones the first p element
λ.getxhr("https://jsonplaceholder.typicode.com/todos/1", (e,r) => λ.alert("XHR Result", r))
λ.repeat(() => λ(".repeat-test",1).add("||-----I will be copied 3 times 1s/ea----||"), 3, 1000)
λ.css(".css-test").bg("black","col").col("white").other("font-family","'Beau Rivage'").λ().add(" World")
Isn't that so cool? You can do so much, so much faster with λ.js! You can even use it on YOUR webpage (I did, and I'm using it to create this documentation page!)