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.
modalsquared
Advanced tools
Readme
ModalSquared.js is a super small library for showing and hiding modals. It was specificly designed to show and hide bootstrap modals so i didnt have to use jquery and bootstrap's javascript but you can use it for anything. It's also less than 1kb!
npm install modalsquared
<script src="node_modules/modalsquared/ModalSquared.js"></script>
and <link href="node_modules/modalsquared/ModalSquared.css" rel="stylesheet" type="text/css">
to the head tag.<!DOCTYPE html>
<html lang="en">
<head>
<script src="node_modules/modalsquared/ModalSquared.js"></script>
<link href="node_modules/modalsquared/ModalSquared.css" rel="stylesheet" type="text/css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="content">
<button onclick="ShowModal('myModal')" >open modal</button>
<h1>Content goes here</h1>
<h2>Hello, World!</h2>
</div>
<div id="myModal" class="modal"><h1>My modal 1</h1><button data-modal-close >×</button></div>
</body>
</html>
ModalShow shows a modal. it takes the id of the modal you want to show.
ModalHide hides a modal. it takes the id of the modal you want to hide. Or use data-modal-hide on the button that you want to close the modal. data-modal-hide does not take any values.
v1.1.1
FAQs
ModalSquared.js is a super small less than a 1kb library for showing and hiding modals.
The npm package modalsquared receives a total of 1 weekly downloads. As such, modalsquared popularity was classified as not popular.
We found that modalsquared 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.