Catalog npm
Back to packageRELEASE DETAILS

0.1.18-alpha-fix-0

npm

32ae08ef

Snippets written in JavaScript. Majorly for our website.

Published14 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-ltjdQTO3NsylLOGoHmdLQsWvEgcnsOVPsH94QgyCBpOK1XYWWDEPxGRuEQyXy5pOOsqLViY69QHbAY+BZeQ4hA==",
  "shasum": "9206553debe2ec4e55dd4d73d9001d6d358721ee",
  "tarball": "https://registry.npmjs.org/32ae08ef/-/32ae08ef-0.1.18-alpha-fix-0.tgz",
  "fileCount": 9,
  "unpackedSize": 15833,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDZ6YCRA9TVsSAnZWagAARcEP/j3INaJ+048PQ28CGiAf\n47uHRlZE049sO0lfnVcVXU9Zdyl1QGe6fML4/MXU3m8BOBMWjuzRW5ZG2quQ\nylezarAVQGX4232oWMNTUB3sK/J4ezMZHGQcq8ubbighW8+4fPvwybUBPF6C\nlHLSGDs2z+2JmjpQsj+VF/D6y0H6REMuYX8imxlgXJt/enbWjg1TYH+ZL92k\nLeu1RPHsLsQJW1wk1XPH4Y9Q7rZJItrP6JUMvqLVF4jkWQhm0v63/oO8d0Sl\nBJBmr0Bv4W4y6Zqetn7dkXcvCfUtyyY4II7TmXcAnZnBpmsRYn9VipbCFii1\nyyt9PePT+tno6dSc8rO27o6Ihcjeb66A8AYIetuXHc5AyisW2cNaq8cWFnLf\n8EC6ASD6/0BpU5VgZcgslGgugaInpQiLXkVCcfYRBjBXJcjqgWL7iO0RoCjy\neOk+PFiQQHW/sDlDgzTm3P8FuOh5zhmZbdyMDIxd3IZV1FBTIgFxltmFR8kK\nl2dN7iKmFQPBuh2/1UzsoNGMQp1z7bUSwAvOcIv8tkmOMi+jIUzPCddepP/B\nJtTk5oB/Kxt3vF7wEVO373v4Xfvy3RoesdlTaDT19Nzr4VDHz8oZo8J8WzwF\nVSyc6ZQ329y/AcmW65VBsqiKg2s7v1dOX8FGSm60nF4dU0GIMSxf1J9ebWQX\nbp8z\r\n=qQfm\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQDO9JLvd4L21gozYqll51oZWQ5o1pjGqx+be7jKxT0j5wIhAN+6uWo2a5TGt2Wuv6AY+5hFOMBAHpPF+ZXTvGO6Oq0+"
    }
  ]
}

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:52a8a582a8eca83d7a14bf579eb0d55b2a357502382c41582d5a3f3ad9eab115

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 →