
Product
Introducing Custom Pull Request Alert Comment Headers
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
A blade-sharp javascript library that provides serval simple jQuery like operations
A blade-sharp javascript library that provides serval simple jQuery like operations
node.$
: Wrap the node with Blyde, return a $node
node.$id
: The special id for this node if wrapped by Blyde already (DO NOT MODIFY!!)
Blyde(function)
: Execute the function when document is ready
Blyde.version
: Version of Blyde
Blyde.fn(plugin)
: Register a plugin for Blyde (See Wiki for Plugin usage *Not Completed*)
Blyde.useVelocity(Velocity)
: Add Velocity manually if Velocity is not attached to window
$(function)
: Same as Blyde()
$.version
: Same as Blyde.version
$.fn(plugin)
: Same as Blyde.fn()
$.q('selector')
: Wrapper for document.querySelector()
and return a $node
$.qa('selector')
: Wrapper for document.querySelectorAll()
and return a $nodeList
$.on(type, listener[, useCapture])
: Wrapper for window.addEventListener()
$.listen(type, node, fn)
: Create a delegate for a node on window
$.at(type, fn)
: Create a delegate for window on window
$.drop(type, node, fn)
: Remove a delegate for a node on window
$.off(type, fn[, useCapture])
: Remove enentListeners for this element with window.removeEventListener()
& window.drop()
$.$getSymbol()
: Get a Symbol
with a random string
$node.$el
: The original node of this element
$node.q('selector')
: Wrapper for node.querySelector()
and return a $node
$node.qa('selector')
: Wrapper for node.querySelectorAll()
and return a $nodeList
$node.addClass('classe names')
: Add classes to this element, use space
for multiple class names
$node.removeClass('class names')
: Remove classes from this element, use space
for multiple class names
$node.toggleClass('class names')
: Toggle classes for this element, use space
for multiple class names
$node.replaceWith(node)
: Replace this element with a new element
$node.swap(node)
: Swap this element with another
$node.before(node)
: Insert this element before an element
$node.after(node)
: Insert this element after an element
$node.append(nodes)
: Append elements to this element
$node.prepend(nodes)
: Prepend elements to this element
$node.appendTo(node)
: Append this element to an element
$node.prependTo(node)
: Prepend this element to an element
$node.empty()
: Delete all childnodes from this element
$node.remove()
: Delete this element from document and return this element itself (Not a $node
!!)
$node.safeRemove()
: Remove this element from document while all event listeners are still maintained
$node.on(type, fn[, useCapture])
: Wrapper for Node.addEventListener()
$node.listen(type, node, fn)
: Create a delegate for a node on this element
$node.at(type, fn)
: Create a delegate for this element on window
$node.drop(type, node, fn)
: Remove a delegate for a node on this element
$node.off(type, fn[, useCapture])
: Remove enentListeners for this element with Node.removeEventListener()
& $.drop()
$nodeList.addClass('classe names')
: Add classes to all elements in this nodelist, use space
for multiple class names
$nodeList.removeClass('class names')
: Remove classes from all elements in this nodelist, use space
for multiple class names
$nodeList.toggleClass('class names')
: Toggle classes for all elements in this nodelist, use space
for multiple class names
$nodeList.appendTo(node)
: Append all elements in this nodelist to this element
$nodeList.prependTo(node)
: Prepend all elements in this nodelist to this element
$nodeList.empty()
: Delete all childnodes from elements in this nodelist
$nodeList.remove()
: Delete all elements in this nodelist from document
$nodeList.safeRemove()
: Remove all elements in this nodelist from document while all event listeners are still maintained
$nodeList.on(type, fn[, useCapture])
: Add event listener to all elements in this nodelist
$nodeList.at(type, fn)
: Create delegate to all elements in this nodelist on window
$nodeList.off(type, fn[, useCapture])
: Remove event listener for all elements in this nodelist
To use animation, simply add Velocity.js into your HTML before document is ready:
<script src="js/velocity.min.js"></script>
or
import Blyde from 'blyde'
import Velocity from 'velocity-animate'
Blyde.useVelocity(Velocity)
Then you can use:
$node.velocity(arguments)
: Animate this element$nodeList.velocity(arguments)
: Animate all elements in this nodelistDetial usage please read the instruction of Velocity.js
The usage of Velocity.js with Blyde should be similar to that with jQuery.
Currently only supports IE10+, if you would like to use Blyde in IE9+, simply add classlist-polyfill into your project.
$ git clone https://github.com/ClassicOldSong/Blyde.git
$ cd Blyde
$ npm install
$ npm run build
Then you can get the fresh-built blyde.min.js
at the dist
folder
Note: All debugging messages are disabled in the production version
FAQs
A blade-sharp javascript library that provides serval simple jQuery like operations
We found that blyde demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.