Code Monkey home page Code Monkey logo

beth.js's Introduction

beth.js

This JQuery based tool implements "angular-like" utilities for your front-end.

What's the point of this?

If you always used jQuery to manipulate the DOM and can do anything with it, but knows how bad it can get, this is for you.

No bullshit. Just do your stuff the simple way, eliminating direct DOM manipulation.

Less sometimes is more!

Prerequisites

  • jQuery

Getting Started

Download the beth.js or beth.min.js file and include in your page anywhere after jQuery is loaded.

To display a value that is dinamically updated on your page just put an expression on your HTML page inside double brackets like so:

{{ expression }}

BethJS also interacts directly with your inputs and other DOM elements. The following directives are available: (See in the example for usage, they're all simple and straightforward)

beth-bind
beth-change
beth-class
beth-click
beth-default
beth-disable
beth-each
beth-hide
beth-show
beth-if
beth-include
beth-include-async
beth-inside
beth-html-inside

How do I programatically detect Beth was initalized sucessfully?

if (Beth._initialized) {
	console.log("Beth is running...");
}

You can also override the default Beth update interval by setting a new integer value: (in milliseconds)

Beth._refreshInterval = 70;

beth.js's People

Contributors

rumd3x avatar

Stargazers

‍juandisay avatar Khalil Charfi avatar jinho park avatar Alailson avatar Kevin Oliveira avatar Bruno Lobo avatar Gabriel Luz avatar

Watchers

James Cloos avatar  avatar

Forkers

brunolobo

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.