Catalog npm
PACKAGE EXPLORERView in registry

32ae08ef

npm

Snippets written in JavaScript. Majorly for our website.

Versions collected131
Direct dependencies0From release 0.1.20
Last observed20 Oct, 19:25 UTC

README

Current package documentation

32ae08ef

NPM jsDelivr

Depreciated: We have moved to isplib, and this package is no longer maintained.
The package itself is under CC0 license, but please note that some of the works cited therein have non-commercial restrictions.
Use it at your own risk. If necessary, you should consult a lawyer.

loadBackground

Abstract

Awesome background images for web pages.

Usage

It is recommended that you replace latest with a fixed version name to prevent your pages being interfered by breaking changes.

You can load the file (minified by default) from jsDelivr

<script async src="https://cdn.jsdelivr.net/npm/32ae08ef@latest/loadBackground.js"></script>

or UNPKG

<script async src="https://unpkg.com/32ae08ef@latest/loadBackground.js"></script>

There are even more choices in China, but the speed and reliability cannot be guaranteed, and they may deliver outdated files.

知乎

<script async src="https://unpkg.zhimg.com/32ae08ef@latest/loadBackground.js"></script>

饿了么

<script async src="https://npm.elemecdn.com/32ae08ef@latest/loadBackground.js"></script>

New Feature

Now You can assign to window._imgPlace to customize where to load the background image, which will be displayed behind document.body by default.

const imgPlace = document.getElementById('example');
window._imgPlace = imgPlace;

const divName = 'example';
window._imgPlace = imgPlace;

Compatibility

This file is expected to work well with the latest version of Chrome / Firefox. If not, please contact us.

Technical Details

We are using dynamic import() to load subscriptscript.

See also: import - JavaScript | MDN

As the CacheStorage API is only available with a security context, we provide a file withoutCache.js for users without secure connection.

See also: CacheStorage - Web APIs | MDN

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 131

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.6-alpha-fix-49 Jul 20200
0.1.6-alpha-fix-39 Jul 20200
0.1.6-alpha-fix-29 Jul 20200
0.1.6-alpha-fix-19 Jul 20200
0.1.6-alpha-fix-09 Jul 20200
0.1.6-alpha9 Jul 20200
0.1.59 Jul 20200
0.1.5-beta9 Jul 20200
0.1.5-alpha-fix-39 Jul 20200
0.1.5-alpha-fix-29 Jul 20200
0.1.5-alpha-fix-19 Jul 20200
0.1.5-alpha-fix-09 Jul 20200
0.1.5-alpha9 Jul 20200
0.1.48 Jul 20200
0.1.38 Jul 20200
0.1.3-beta-fix-18 Jul 20200
0.1.3-beta-fix-08 Jul 20200
0.1.3-beta8 Jul 20200
0.1.3-alpha-fix-28 Jul 20200
0.1.3-alpha-fix-18 Jul 20200

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:24 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1189f9f5a132cf7a261e0d7244d492b6b5678bd09a7b72e459c74de580f25aa7