Catalog npm
Back to packageRELEASE DETAILS

0.1.3-alpha-fix-1

npm

32ae08ef

Snippets written in JavaScript. Majorly for our website.

Published8 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-5RgvIMGbi9u1LgwAN1/MhvbkNSFDp5bCt0rVlVqrHPMPebcmDoVkaanjNMjSwlgOOwaMyli/AMI68TFSzp+pbw==",
  "shasum": "0deca946ca9bcbf24237966fa6dcafe43eaab763",
  "tarball": "https://registry.npmjs.org/32ae08ef/-/32ae08ef-0.1.3-alpha-fix-1.tgz",
  "fileCount": 19,
  "unpackedSize": 26020,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBdN6CRA9TVsSAnZWagAA30EP/2MWXxsj9s8sBowhEkf4\nOA9tr9OQ+TRYfpGiUX1PtRC+Ukj55uM6N1YNlorE9oQ+Nc6Qen89buIK7aJY\nM2HM/Pt34hnIghpNL4GdcvcMGWJbD/Cuy4eyzxTeTYIgyagzVbPLQc8fQuvt\nodt3taodHOPpacxW3beG5WInKMq1qZfUtRkbLkMS16TXB6lACFiMNdm0AeGI\nwivTbfZu1fGYaoHZk6w/UP5Kbh7hgkKEzMf+wFVSCag/sNa5tVhPl5Ywat8l\nqca6aN072qQp44R/CSqVmjB3asFhesIDes7TWB82NBgb23e/nXwrUqWOZ0s/\npOMTaaY2lvuXmeXWS3IvvN8aKlFNn1WHDQslN9527jimQOn4+aeufKJejZjN\nQnaxQmtW6l1mKKaJZnFVgXiW0B3+qqm0dJNtj4KTJB+3olWfQli9riwuaugy\nqMfh74MrQfvna8xrJ5HWgwBZmg254eKRJKYDRGUVLwmoXO6v8l2fMmYPAzH3\nplfqc9o7UUGqBvcVP/Ke1lD4ULHBvbiX/ypujIt8jsExfmeQjtoFhjqFqGVB\n9VTc4XBp17hHbVX1XnbCdMamLectfJMXBi5fZ6z3gbaYMSdWuPvocxjNZFR2\nnNjYtikDpFTEt1AO1h//Bdy8pMBVG6L1FqiZnlH8z6Zc4rpJxWaXAKulKY3A\nXuF2\r\n=kn8z\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIGeHPlc92PpNd3nZZIqAuvLW8ziG994Ib0qK7XaKLhNXAiAuBW9Fzbm1LyYaTS6ot7wUyfVXxz74mPavAJaszTKjwg=="
    }
  ]
}

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:0054ebf258e21ff2dd109769c1df21735fbddda5dcb0710d22071c5413c0d97e

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 →