Coder Social home page Coder Social logo

samthegitguy / tinyj Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 466 KB

Warning - this is not built or in any way endorsed by the Jquery team. A short succinct version of jquery, probably not everything you'd like, but sufficient for small implementations.

Home Page: https://samthegitguy.github.io/tinyJ

License: Other

HTML 6.88% JavaScript 93.12%
jquery dom ajax unofficial unofficial-library

tinyj's Introduction

tinyJ

Warning - This is not in any way endorsed, created, coded, built or otherwise made by the Jquery Team. If you are looking for the official jquery product please go to the official jquery website.

TinyJ - a short, succinct DOM interactions library inspired by Jquery.

It doesn't have all the features that Jquery has and certainly no plugins, but minified and zipped it comes down to (TODO: update minified data) and it has the core features that JQuery has. You'll also find that a lot of the syntax is quite similar.

Usage

In plain HTML

<script src="https://unpkg.com/tinyJ/bin/tinyJ.min.js"></script>
<script>
    $('#paragraph').html('Hello World!')
</script>

If you're reading this from the npm page you probably want to use TinyJ for React (coming soon)

$ npm install tinyJ
import react from 'react'
import $ from 'tinyJ'
ReactDOM.render(
    <p id="example">
    Hello...
    </p>
)
$('#example').html('...world!')

As of 0.1.1 only byId selection is available:

  • idname

You can also use $.ajax in the same way you would use it in Jquery. Note that many features will be missing(for obvious reasons). See the jquery documentation for more information

See the changelog for more information.

Development

Hooray! You want to help?

Here's a few guidelines: We have some git hooks installed, however for a cleaner experience in this dimension, we recommend you install VScode, which has the necessary extensions outlined below:-

  1. vivaxy.vscode-conventional-commits . . .

tinyj's People

Contributors

samthegitguy avatar

Watchers

 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.