Catalog npm
Back to packageRELEASE DETAILS

0.1.6-alpha

npm

32ae08ef

Snippets written in JavaScript. Majorly for our website.

Published9 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-phefmphpPimb6cY4ka+rFrtGRIGxZ3aowZZVVBTJpZ2+Vzft1+UoBwoM0RxZdrNEXdSuPKUFdd8FzVTbhJG3Pw==",
  "shasum": "fb9785e01d2ecda53e91ae513f462d5abd54fdb3",
  "tarball": "https://registry.npmjs.org/32ae08ef/-/32ae08ef-0.1.6-alpha.tgz",
  "fileCount": 7,
  "unpackedSize": 13209,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBsOwCRA9TVsSAnZWagAAP/gP/iVxisAW21x/4myzRFkv\n54YWup16BcNAh1BzyZeZCn4xiAIgrtYGcEl8pmWWNmmuTyPqEnhuLmiPtUx0\n8DBxeCDZPnF1CfAg57qogHi0uI6181vuFnvKhzifk2TLWg9olEMQrRh4t+M/\nsm29xvjHKFasAQ6vxuB4h0nuHQP5fbdSbExn3xrurBSPNQRof6BAB3I27ycW\nbuKalOmEUJciDvm8VeZjNYtOMIIS9pkQrwjiaowMk05v9COVGIdfrkz6LNgt\nxE5XQ1c5qjsd8XY6stvDTA5Ndiebf47vfOp+vKFFzxs5zr371sGKTqaEY9sC\njshrm50VYWpHD/Y7wxH7VPAJEViaSY/xTfqT3783WWz7TVMK/A4sEaLUanh3\nR9vhYY5yOGuIf6kmxJ6QIiAC5wSx6dz+0rHYE84DL6hK35+riWn9l0p0kNuL\nwG9wDAjyHxMMJZujFbKZHcfy2sdlkxrcmuiKyW54TMoi3ksgsG0uRuDw6mIK\npFzsTBKSGnQg2vWz7j/UNStUz/JmAqgKDvMM0yQusJnv8l62xgZ4XIF7cm7L\nCiZf306yZkhS6eXDPIzJJTvNknbf7BcFF7kWAAFrVW7n7n/HvwIOUZg9MwsW\nGp/5R5FOxo8OobLUilVumDAvGhg+8pjrmjGYOKvb6ECeNDTAeNDw/w4bFT43\nZZPd\r\n=2l43\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDhGVzW3I1+wSg/sLL2XRikdAw2i+kk5nEcMIrk5286EwIgVNfDJXJR4pjueY/GEJXx/3A0oD9Sb2jTWbIWQUKOPhU="
    }
  ]
}

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_version:cb906e44957c093e734f7a54e44cd7beb7aedc71ee433884ec6f28c23124a903

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 →