Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@cnbritain/merlin-frontend-article-js
Advanced tools
ArticleManager, Article
Kind: global class
Object
HTMLElement
Boolean
ArticleManager
Param | Type | Description |
---|---|---|
el | HTMLElement | The article element |
options | Object | Article options |
options.analytics | Object | Analytics configuration for the article |
options.infinite | Boolean | Whether the article came from infinite scroll |
options.manager | ArticleManager | The article manager that added the article |
options.type | Number | The article type based on ARTICLE_TYPES enum |
options.simplereach | Object | Simplereach configuration for promotions |
Object
The bounds of the article element
Kind: instance property of Article
Access: public
HTMLElement
The article element
Kind: instance property of Article
Access: public
Boolean
Is the article from infinite scroll?
Kind: instance property of Article
Access: public
ArticleManager
The article manager that added the article
Kind: instance property of Article
Access: public
Initialiases the ads
Kind: instance method of Article
Access: public
Calculates any new size changes
Kind: instance method of Article
Access: public
When an article is the current focus on the screen
Kind: event emitted by Article
When an article is the loses current focus on the screen
Kind: event emitted by Article
Kind: global class
Number
Array
List of articles that have been loaded
Kind: instance property of ArticleManager
Access: public
Article
Adds an article to the list
Kind: instance method of ArticleManager
Emits: add
Access: public
Param | Type | Description |
---|---|---|
el | HTMLElement | The article element |
options | Object | Options for the Article |
options.infinite | Boolean | Has the article come from infinite scroll? |
options.type | Number | The article type. Based on ARTICLE_TYPES |
options.analytics | Object | Analytics config for the article |
options.simplereach | Object | SimpleReach config for promotions |
Disables the infinite scroll
Kind: instance method of ArticleManager
Access: public
Enables the infinite scroll
Kind: instance method of ArticleManager
Access: public
Recalculates some measurements
Kind: instance method of ArticleManager
Access: public
Adds an article to the list
Kind: event emitted by ArticleManager
Properties
Name | Description |
---|---|
article | The added article |
Number
Article types enum
Kind: static property of ArticleManager
Kind: global class
Object
Array.<HTMLElement>
Array.<HTMLElement>
GalleryImageNavigation
Param | Type | Description |
---|---|---|
el | HTMLElement | Article Element 'a-main' |
options | Object | Gallery options |
Object
The bounds of the gallery container
Kind: instance property of Gallery
Access: public
Array.<HTMLElement>
Items in the gallery - images and ads
Kind: instance property of Gallery
Access: public
Array.<HTMLElement>
Images in the gallery
Kind: instance property of Gallery
Access: public
GalleryImageNavigation
The gallery navigation arrows
Kind: instance property of Gallery
Access: public
Resize calculates new bounds
Kind: instance method of Gallery
Access: public
Gallery image has gained focus
Kind: event emitted by Gallery
Gallery image has blurred
Kind: event emitted by Gallery
Install dependencies:
npm install
Build the things:
npm run sass
npm run js
npm run docs
Hint your JS
npm run jshint
Python the pythons:
npm run demo-install
Start the demo server:
python demo.py
FAQs
ArticleManager, Article
The npm package @cnbritain/merlin-frontend-article-js receives a total of 85 weekly downloads. As such, @cnbritain/merlin-frontend-article-js popularity was classified as not popular.
We found that @cnbritain/merlin-frontend-article-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.