Giter Site home page Giter Site logo

titania's Introduction

Titania is a lightweight, yet powerful JavaScript library.

Frequently Asked Questions

What can Titania do?

Titania provides an environment for developing concise & effective JavaScript. Besides simplifying DOM manipulation, Titania also provides tools for parsing, calculations & HTTP requests.

Why should I use Titania over other libraries?

Titania includes various useful tools & routines for convenience. Other libraries do not include said features & are often provably slower than Titania. Additionally, Titania aims to limit the deprecation of features to ensure the stability of those who include the latest version in their projects.

I'm sold! How do I use/learn Titania?

You can download Titania, at any time, from this repository. Alternatively, you can include the following script tag in your project:
<script src="http://harveycoombs.com/titania/releases/latest/titania.js" type="text/javascript" crossorigin="anonymous"></script>

Examples

Adding classes to DOM elements

//Native JavaScript
var box = document.querySelector("#box");
box.classList.add("classX", "classY", "classZ");

//Titania JavaScript
var box = DOM.select("#box");
box.apply("classX classY classZ");

Attaching & detaching Event listeners

//Native JavaScript
var item = document.querySelector("div.item");

item.addEventListener("click", function () {
  console.log("I was clicked!");
});

//Titania JavaScript
var item = DOM.select("div.item");

item.listen("click", function () {
  console.log("I was clicked!");
});

More tips, tricks & examples can be found within Titania's Documentation.

titania's People

Contributors

harveycoombs avatar

Watchers

 avatar

titania's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.