Socket
Book a DemoInstallSign in
Socket

statuspage-widget

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statuspage-widget

This is an unofficial widget for use with the StatusPage.io service. It queries StatusPage.io for the status of your page and display a configurable tab on your website.

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
10
150%
Maintainers
1
Weekly downloads
 
Created
Source

StatusPage.io Widget (Unofficial)

This is an unofficial widget for use with the StatusPage.io service. It queries StatusPage.io for the status of your service and displays a configurable widget on your website.

Screenshot

Usage

This package is available on both NPM and Bower under the name "statuspage-widget".

To place the widget on your website you must include StatusPage.io's official JavaScript file along with this widget's JavaScript file, then instantiate a new StatusPageWidget object with your StatusPage.io ID.

<script src="https://statuspage-production.s3.amazonaws.com/se-v2.js"></script>
<script src="dist/widget.js"></script>
<script> var widget = new StatusPageWidget('ghostinspector'); </script>

A default stylesheet for the widget is included and can be used:

<link href="dist/style.css" rel="stylesheet">

Options

This widget includes the following options:

alwaysShow - Always show the widget, even when status is operational. (Default: false)

linkNewWindow - Clicking the widget should launch your StatusPage.io page in a new tab. (Default: true)

updateInterval - Check StatusPage.io for latest status and update the widget. This is specified in seconds. A value of 0 will turn off checking and the status will only be updated on new page loads. (Default: 0)

Options can be passed to the widget using an object as the second parameter of the StatusPageWidget constructor:

var widget = new StatusPageWidget('ghostinspector', { alwaysShow: true, updateInterval: 300 });

Keywords

status-page-io

FAQs

Package last updated on 04 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.