Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
1gallery
Advanced tools
Readme
For examples, see demo source code.
Require node.js.
In your project root, in cli :
npm install --save-dev 1gallery ejs
In your ejs parsed files when you want insert a 1gallery :
<%
const galleryOptions = 'banner zoomable autoplay-5s'
const exampleCards = [];
exampleCards.push(`<section class="card cover"><h1><center>A full size card/slide</center></h1></section>`);
exampleCards.push(`<img class="card" src="img/1forma-tic-fond-ecran.png"/>`);
%>
<%- include('../PATH_TO/node_modules/1gallery/1gallery.ejs',{cards:exampleCards,classes:galleryOptions}); %>
<link rel="stylesheet" href="../PATH_TO/node_modules/1gallery/1gallery.css"/>
<script src="../PATH_TO/node_modules/1gallery/1gallery.js"></script>
You can use css class to customize 1gallery behavior on gallery scope or card scope.
zoomable : add fullscreen mode and related icon.
autoplay-[1-999]s : automatically go to next slide every [0-999] seconds
banner : banner style gallery (height : 150px)
splash : splash style gallery (height : 100vh)
PS : you can use css to override any default 1gallery css.
object-fit: cover;
PS : you can use ratio and cover on the same card for some strange html slide use-case.
FAQs
a modern SEO friendly ejs web banner gallery for any kind of slides (photos, html...)
The npm package 1gallery receives a total of 13 weekly downloads. As such, 1gallery popularity was classified as not popular.
We found that 1gallery 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.