Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
clappr-heading-plugin
Advanced tools
A plugin for clappr which allows a clickable heading to be included inside the player.
A plugin for clappr which allows a clickable heading to be included inside the player. The heading will be visible when the media is stopped, and whilst playing when the control bar is visible.
Add both Clappr and the heading plugin scripts to your HTML:
<head>
<script type="text/javascript" src="http://cdn.clappr.io/latest/clappr.min.js"></script>
<script type="text/javascript" src="dist/clappr-heading-plugin.js"></script>
</head>
You can also find the project on npm: https://www.npmjs.com/package/clappr-heading-plugin
Then just add ClapprHeadingPlugin
into the list of plugins of your player instance, and the options for the plugin go in the headingPlugin
property as shown below.
var player = new Clappr.Player({
source: "http://your.video/here.mp4",
plugins: {
core: [ClapprHeadingPlugin]
},
headingPlugin: {
text: "Something really interesting",
hyperlink: "http://google.com", // optional, can also be a callback
openInNewWindow: true // optional
}
});
The text
option is the text you want in the heading, hyperlink
is optional and is the page the user should be taken to if they click the heading. If hyperlink
is provided then it will default to opening the hyperlink in the same window, but if you set openInNewWindow
to true
, the browser will navigate to the hyperlink in a new window instead. The media that is playing is automatically paused when the link is clicked.
hyperlink
can also be a callback, and wwhen this is the case the value which is returned is used as the hyperlink.
To run the demo start a web server with the root directory being the root of this repo, and then browse to the "index.html" file in the "demo" folder.
I am also hosting a demo at http://tjenkinson.me/clappr-heading-plugin/
Install dependencies:
npm install
Build:
npm run build
Minified version:
npm run release
FAQs
A plugin for clappr which allows a clickable heading to be included inside the player.
The npm package clappr-heading-plugin receives a total of 0 weekly downloads. As such, clappr-heading-plugin popularity was classified as not popular.
We found that clappr-heading-plugin 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.