0.1.20 • Published 4 years ago

32ae08ef v0.1.20

Weekly downloads
1
License
CC0
Repository
-
Last release
4 years ago

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

0.1.20

4 years ago

0.1.19-fix-0

4 years ago

0.1.18

4 years ago

0.1.19

4 years ago

0.1.18-alpha

4 years ago

0.1.18-beta

4 years ago

0.1.17

4 years ago

0.1.17-beta

4 years ago

0.1.17-alpha

4 years ago

0.1.16

4 years ago

0.1.16-beta

4 years ago

0.1.16-alpha

4 years ago

0.1.15-alpha

4 years ago

0.1.13-beta

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.14-beta

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.11-beta

4 years ago

0.1.11-alpha

4 years ago

0.1.13-alpha

4 years ago

0.1.10

4 years ago

0.1.10-beta

4 years ago

0.1.10-alpha

4 years ago

0.1.8-alpha

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.6-beta-fix-0

4 years ago

0.1.6-beta

4 years ago

0.1.5-alpha

4 years ago

0.1.5-beta

4 years ago

0.1.5

4 years ago

0.1.6-alpha

4 years ago

0.1.3-beta

4 years ago

0.1.3-alpha

4 years ago

0.1.2

4 years ago

0.1.3-beta-fix-0

4 years ago

0.1.3-beta-fix-1

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.12

4 years ago

0.0.12-beta

4 years ago

0.0.12-alpha

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.11-alpha

4 years ago

0.0.10-alpha

4 years ago

0.0.10-beta

4 years ago

0.0.9-beta-fix-1

4 years ago

0.0.9

4 years ago

0.0.9-beta-fix-0

4 years ago

0.0.9-beta

4 years ago

0.0.9-alpha

4 years ago

0.0.8

4 years ago

0.0.8-beta

4 years ago

0.0.8-alpha

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago