Catalog npm
Back to packageRELEASE DETAILS

0.1.6-alpha-fix-8

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-acTGcuMso+fzLNt7moAzVBO8fCFBerU1PuG5w/8oFE90ku2KnjzCxGoQiVifaahbqPV05CKH31cMeT687c20eA==",
  "shasum": "d5e90c9b6d657dc1a0ee3594eabb901efe886954",
  "tarball": "https://registry.npmjs.org/32ae08ef/-/32ae08ef-0.1.6-alpha-fix-8.tgz",
  "fileCount": 7,
  "unpackedSize": 13234,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBs5bCRA9TVsSAnZWagAAQh4P/jeFFd3n+elPRLryHxDt\naPdrh8+ifTZw+IHCOsU/5kJTeaPA8mj3zzKb9s8ohDYDNR2raUrGvCme/YhY\nNB/IzuJatSA0nMeULqVGu7u99VtK0le+5NJ2MnyhbmNP5hNjzomEJqsaG/jN\nei5mOBWaklt0j9HOlrnJsH8jcUENYuSfPdyJKi3PId4WkuaGP0cYoOYUumXz\nLthrbUIgLFkaXfl0hjm9rvQGE0ycr8WN4pEWo9tQMsV4RjEqIS6U1m+KELqy\nDrztA9J7RVXnruVZhy72togxjEvvijBnjmI6T4ATUxqMnIHqLEuo1F6g+Ign\nCbkM3CD5hM2pFj3UuLAAcUsdQoicZRhFxntTscauEvNScvzqj0IsE2GgET8Y\nGO71JCohL2yFEacMoQr3iWWi1zrmMyeavVHaefWLUcMly44L6nPn8Db7jHaV\nIHp++sdck5j79OQMlkz8no0J6YKXJ9d+MwIY4T3f9Q9EoA7MUC8lytZzMwVn\nVv1wH5ZTzXHru02XqXoTzAi1hQV8wDDfUOdctBH5HvdEeY6ntVx5owmlFo3Y\nzFxCy6OH7VxS19m/pp7zvrlLG0wWJqHEZkJKe/Xx+NvFoybufEiJcq7+hwGJ\nHZ1iXQqnfzW8F5/BBTXEBaYUGMQxYoPEG/4/QwJ0j8F8Gv4CDo82WQNWI5B/\nCaTl\r\n=Alr5\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDiH9kKUCr6is/Qjgy2bzt/6UCbWLXwavuI9JcoTNZZwAIgGez7EKD6VQ4Bw58kLU/tdVKL2J6mn7pg1v9V881pj6E="
    }
  ]
}

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:8910ae042b0ec5f8b375aa795d5fe25ea3c3b60b6b2162ab35b352e797d18101

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 →