Caution

This is the documentation for the current development branch of the CometVisu. It is possible that some of the described features are not yet available in the current release.

Also there might be lots of errors in this documentation as some parts of the content have been translated by an online translation service.

Web

Description

The web widget is used to display an external website. Optionally, this page can be automatically reloaded at regular intervals.

<cv-web src="http://www.google.de" refresh="120" style="width: 100%; min-height: 600px;" />

With the optional refresh attribute, you can specify the interval in seconds at which the page is reloaded. Size specifications can be set via the style attribute using CSS.

If there are problems with loading the page, the page can be loaded via a proxy in the backend by setting the proxy attribute to true. For this purpose, the URL must be added to the “proxy.whitelist” section of the hidden configuration. For this, a new entry must be created in the section, the key can be chosen arbitrarily and as a value either the complete URL or a regular expression is entered which is valid for this URL.

Example with exact URL:

"proxy.whitelist": {
    "server": "https://www.google.de"
}

Example with regular expression (starts and ends with “/”) which allows all URLs containing “google”:

"proxy.whitelist": {
    "server": "/^.+google\/.*$/"
}

Allowed attributes

Element

Attribute

Name

Content

Description

cv-web

src

string

URL of the page to be shown.

refresh

decimal

Time interval in seconds this widget is being refreshed.

visible-on

mobile or desktop

Controls this element’s visibility by screen size.

class

string

Add this value to the CSS class so that it can be formatted by a user provided style sheet.

style

string

Custom CSS style rules for this widget.