![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
hyperlightbox
Advanced tools
a lightbox with hyperscript.
just a box that can appear over the other content.
var lightbox = require('hyperlightbox')
var lb = lightbox()
//make sure it's in the DOM.
document.body.appendChild(lb)
//pass it an element to show.
lb.show(h('h1', 'hello world'))
//later, close it. this will remove the element shown, also.
lb.close()
you'll need to apply css to make in appear over the other content. there are two ways I've found that work well.
with the full screen approach, we can attach the lightbox to the DOM anywhere.
.lightbox {
position: fixed;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
}
to make the lightbox not take up the full screen, but only to go over some local context, we can put it inside a position: relative div.
h('div.content',
h('div.relative', lb), //add light box in with content.
h('h1', 'blah blah blah...')
)
and then apply position relative to the container.
.relative {
position: relative;
height: 0px;
}
by also setting height to zero, the lightbox will show over the other content. (the height sets the size of the container div, which the lightbox itself overflows)
MIT
FAQs
a lightbox with hyperscript.
The npm package hyperlightbox receives a total of 7 weekly downloads. As such, hyperlightbox popularity was classified as not popular.
We found that hyperlightbox 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.