Catalog npm
Back to packageRELEASE DETAILS

0.1.14-beta

npm

32ae08ef

Snippets written in JavaScript. Majorly for our website.

Published12 Jul 2020
Direct dependencies0
Transitive dependenciesNot calculated

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.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-Bt6ttBJ1QXFoqDPdEVKKd7vfjvTLQrBTnpSLGjXLMIkk81tTkVUq8KfvzZi9q0kJzpTXqrLbp2RwLStDKesqSg==",
  "shasum": "6068182f1d51874ada343a2ec5cecb87a58849f3",
  "tarball": "https://registry.npmjs.org/32ae08ef/-/32ae08ef-0.1.14-beta.tgz",
  "fileCount": 22,
  "unpackedSize": 25688,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCyCuCRA9TVsSAnZWagAArmMP/1LU3A0fmw7i/DpMHHx4\n7GsgLcL0xemz7R7PizJCsvDzTCV9vsapYGU0lLAw6n4Yotgl92tU6u6l3vvh\nbzJxUilDPfHdiXr9JbvH4VrC8R2SZIeU/vEJ0N0pZ9LhxTwQ6SCJipcFAfRb\n9/Us5tINzPYlrJ8X5/vN1kT5hY6if0YqgbNEm1qHlkec9wsjvfABbiprRyOQ\nobiTakNTr26edeDf5bZ3kUV1KB0wsQf6AO5/9E7gxi9C/ZZIr1Fw5KNafW7o\nSbUCwlW/nKCdnSG1nqrhFtS4TLK4qXYhYRQ1FLLvgIGitN61ag0UTrrEk0HI\nigOwBhD8PnWwWwZ/8fSZLUL9BuuuYdIqOK/AI78Z6l+G+d7rxo3IPizRtIZ0\ndFjOmb5aHx8hV8iFR+dE7F8HjQuEC50lSUWjk112z8+9clWUZPdA51M9jMaW\n1r0wyz8a3V++ILfrdV9Jw59J/2QtHQmR8BQrRLsNFN1/3s1BUt1USr+cMYSm\niOR+ViJmr1KJgUsKt8BIRqAG43Z437DkmHPmIEDErBHLxyM9SjewJW0jmNsv\nx3iuwwyQfOYQRv7rVON1bUPG/fseSWrDzevVdxBGdFYpmUjMCaTRS5RwK+0j\nnRKBVblMumR5OkbSisdTP7SnPjI4YpTQknv+zKFTm+6fPd52ASVIUWKkRfHi\niSmg\r\n=9KaD\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIEsaG8WTqSMYTVB7ZbOyyKzK3S+r4SL8SbepegGTmQlQAiAiiA7ZpsRJh2QH5qdT0u7kpXMjreYmlA4vilDEF9nWXg=="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:25 UTC

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

Record identity

package_version:178fccce74d483981e6710e82260fcf2b8b48e657b8ca1b73993da84df0c4c44

Other collected versions

0.1.2015 Jul0.1.19-fix-014 Jul0.1.1914 Jul0.1.1814 Jul0.1.18-beta-fix-114 Jul0.1.18-beta-fix-014 JulView all collected versions →