Catalog npm
Back to packageRELEASE DETAILS

0.0.9-beta-fix-1

npm

32ae08ef

Snippets written in JavaScript. Majorly for our website.

Published7 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
{
  "shasum": "7a490fc823fe93b01165e2ae78a3355b5773540e",
  "tarball": "https://registry.npmjs.org/32ae08ef/-/32ae08ef-0.0.9-beta-fix-1.tgz",
  "integrity": "sha512-//Xu0cvaz4uQUCGwyXz96/m+2gkd7Y5gMIkucKVwbn3O8tdrF+cWfO5xoyd9K3KlcEpil/77R0E7f1MjoU0r9A==",
  "fileCount": 16,
  "unpackedSize": 16985,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA/M0CRA9TVsSAnZWagAAcqUP/1KT2DtPozOD6Rygtbqs\nnKU8ONGc9lUcymN7pZapiZw+6gxnnCIb7YuZxdpnSjQrhPy+W/VCDxarY+hj\nMLVEdyFpwONuuEzro+77rSj+icWS377+rY+5mzBmxX7AljaL5Ed1epqfci25\nXO1Abf9uGQCahPhZxF8u6iHGdX7wA/QDULmbpwOQNVe3IloyeiFmeguOd60m\nyF7fYv8h2Uf/qBiPaQf9Rn5Q4T7FCG1TSRjXpLyprCdRBUSULnbm964Ih6Kf\nCY8KUo3XoUFIzDs22nA32Bn+1ft9nqaG3xnUoHTtDLHYyc/LdtOmQliok80t\nEttG4rAmLn1mtBhzEHNu1oGZOZ8F96BMQS68zSPs15r3XA2ghNvVoqyHnaPI\nRU/vG/sGWYwk7ZeoeYVXejoNk3bk5Vf+G0L2iyR4REz4crW4WqkW+V3UsiYK\nCwOHZw6qQO678+aFLTnSkNxDPmjfJH1J9FuPJnc4sSrImuDRuoMoN75uXn8v\nQ5qXErBW2CEdnuxkiaNEhprbX7Zi/HTP3oPMb8xWH5wY658zJI0qIkJN7ZaV\n40XrXSYhqfn04s1J1U5Z5a1uxkNfPStJNMPvO1ZoyqKpGvUlCw+j/NLOUHjB\nUmdNe6yMcULOBxhQTJKV2CpRRlf3CSWhRlRJbvX77fJwK2wXzshZYIIFzbaT\niOOJ\r\n=yosP\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIDA14as1b5EDHwdWztgk4x/z3U7+BKVG3wKL1bSo4uy1AiBAwgu3FFUBd6MvdysJLNne8ag8lW33K9mNBHk6cUTlrA=="
    }
  ]
}

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:ae3cfff6954b671a706941e97f048a6f96dc2c5ba7d0f9b02a86064dde87f918

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 →