Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zheng-bote/rz-onlinecheck

A Web Component to check on-/offline mode
https://github.com/zheng-bote/rz-onlinecheck

web-component

Last synced: 22 days ago
JSON representation

A Web Component to check on-/offline mode

Awesome Lists containing this project

README

        

# rz-onlinecheck

a Web Component to check on-/offline

shows online (green circle) or offline (red circle)

## Authors

- [@Zheng-Bote](https://www.github.com/Zheng-Bote)

## Version

v0.1.1

## License

[MIT](https://choosealicense.com/licenses/mit/)

## API Reference

#### Parameters

```

```

```

```

| Parameter | Type | Description |
| :---------- | :------- | :----------------------------------------------------------- |
| `with_text` | `string` | **Optional**. "yes" "no" default: "yes" ("Online" "Offline") |

## Installation

used folder structure

```bash
.
├── assets
│   ├── css
│   │   └── index.css
│   └── js
│   └── rz-online.js
├── favicon.ico
├── index.html

```

## Usage/Examples

```html




Web Component








Web Component » data-onlinechecker «



A Web Component to check on-/offline


shows online (green circle) or offline (red circle)



default










‹rz-onlinecheck›‹/rz-onlinecheck›

‹rz-onlinecheck with_text="yes"›‹/rz-onlinecheck›




no text










‹rz-onlinecheck with_text="no"›‹/rz-onlinecheck›






```

## Screenshots

**online**

**offline**

## Used By

This web component is used by the following web sites:

- [hase-zheng.net: Micro-Frontends and Microservices](https://www.hase-zheng.net)
- [Robert Zheng Landing Page](https://www.robert.hase-zheng.net)

### the end

:vulcan_salute:

(back to top)