Skip to content

boyninja1555/floorquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Floorquery

Overview

A modern jQuery drop-in replacement based on a floorjs script. The project Floorquery is based on is not deprecated and can be found here inside the FloorJS project which is still maintained today.

Installation

NPM

Run this command in a terminal/console:

npm i floorquery@latest

CDN (supported for our fellow CDN-loving web devs)

Include this script tag above any other JavaScripts using Floorquery:

<script src="https://cdn.jsdelivr.net/npm/floorquery@latest/dist/floorquery.umd.js"></script>

General Usage

Floorquery is focused on DOM manipulation. You select a list of elements like this:

$q("#racecar")  // Element(s) with a "racecar" ID

If there are multiple elements returned, all functions with the capability will be affected. For example:

$q(".superlinks").class(".supersuperlinks")  // Toggles the .supersuperlinks class on every element with the .superlinks class
$("a").attr("href")  // Only the href= attribute of the first hyperlink found

Contribution

If you're fine writing in vanilla JavaScript and manual type declaration files, you can help us! Read and follow the license and you're good.

About

Modern jQuery drop-in replacement based on a floorjs script

Resources

License

Stars

Watchers

Forks

Contributors