Giter VIP home page Giter VIP logo

noh's Introduction

NOH.js

Prehistoric NO HTML library

It allows to create the html documents dynamically in pure JavaScript (with almost no html code at all) It contains a kind of a wrappers to DOM hierarchy. We have a function for every html element like: {@code table, tr, td, div, span} etc..; but also we have functions that constructs many specialized and more complex elements that have some dynamic behaviour implemented (like menu, blind, oneof, bar, logger, and more). User can easely use those basic and more advanced elements as a blocks to construct more complex elements.

Please check the files: noh_example.js (and noh_example.html) for full (but simple) working example. Main documentation with introduction and examples is available here: NOH library documentation Additional API documentation generated with JSDoc3 will be available here: NOH API documentation

NOH library depends on jQuery. TODO: Limit jQuery usage for NOH to be able to work with SVG or other elements (not only html) jQuery SVG problems

The simplest example:

Instead of HTML code like:

<div id="someid">
    <h2>EXAMPLE</h2>
    <p>
        <h4>Some header</h4>
        Some content
    </p>
    <p>
        <h4>Other header</h4>
        Other content
    </p>
</div>

We write JS code like:

noh.div({id:"someid"},
    noh.h2("EXAMPLE"),
    noh.p(noh.h4("Some header"),"Some content"),
    noh.p(noh.h4("Other header"),"Other content")
);

noh's People

Contributors

mareklangiewicz avatar

Watchers

 avatar James Cloos avatar

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.