Skip to content
Go to file
Cannot retrieve contributors at this time
45 lines (36 sloc) 1.35 KB
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="" />
<link href='' rel='stylesheet' type='text/css'>
.alerta-div {width:100%; padding:20px;}
.alerta-table {width:100%; border:1px solid lightgrey; text-align:center;}
<div class="mobile-alerts">Loading...</div>
<script src=""></script>
<script src=""></script>
<!-- Use http://localhost:8080/api/embed.js if you run docker image with alerta. -->
<script src="http://localhost:8080/embed.js"></script>
$(window).on('load', function () {
// Use http://localhost:8080/api as endpoint, if you run docker image with alerta.
// $.alerta.defaults.endpoint = 'http://localhost:8080';
// $.alerta.defaults.key = 'demo-key';
// or
$.alerta.defaults = {
endpoint: 'http://localhost:8080', // oEmbed endpoint becomes http://localhost:8080/oembed
key: 'demo-key'
function renew() {
$('.mobile-alerts').alerta('http://localhost:8080/alerts/count?service=Mobile&status=open', {title:'Mobile Service'});
setTimeout(renew, 30000);
You can’t perform that action at this time.