Last active
December 1, 2015 16:19
-
-
Save TrevorBasinger/bb9be1c89fd55de05863 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>TITTYSPRINKLES</title> | |
| <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <nav class="navbar navbar-default"> | |
| <div class="container-fluid"> | |
| <div class="navbar-header"> | |
| <a class="navbar-brand" href="#"> | |
| <span alt="Status Page" class="glyphicon glyphicon-signal"></span> TittySprinkles | |
| </a> | |
| </div> | |
| </div> | |
| </nav> | |
| <div class="row" > | |
| <!-- Column 1 --> | |
| <div class="col-xs-6" > | |
| <!-- OUR ELEMENT --> | |
| <div class="panel panel-default"> | |
| <div class= "panel-heading"> | |
| <h3 class= "panel-title"> Status </h3> | |
| </div> | |
| <div class="panel-body"> | |
| Percentage of units without telemetry <span class="badge" id="notelemetry">Loading...</span> | |
| </div> | |
| </div> | |
| <!-- END OUR ELEMENT --> | |
| </div> | |
| <!-- Column 2 --> | |
| <div class="col-xs-6"> | |
| <div class="panel panel-default"> | |
| <div class= "panel-heading"> | |
| <h3 class= "panel-title">Blah</h3> | |
| </div> | |
| <div class="panel-body"> | |
| Titty Sprinkles | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ramda/0.18.0/ramda.min.js"></script> | |
| <script src="https://code.jquery.com/jquery-2.1.4.min.js" type="text/javascript"></script> | |
| <script type="text/javascript"> | |
| function updateTelemetry () { | |
| //var apiURL = 'http://status.flogistix.com/v1/status/notelemetry'; | |
| var apiURL = 'http://10.50.2.208:3000/v1/status/notelemetry'; | |
| $.ajax ({ | |
| url: apiURL, | |
| method: 'GET', | |
| success: function (data, status, xhr) { | |
| console.log (data); | |
| var percent = data.item[0].text; | |
| var el = $('#notelemetry'); | |
| el.html (percent); | |
| }, | |
| error: function (err, status, xhr) { | |
| console.log (err); | |
| } | |
| }); | |
| } | |
| updateTelemetry (); // This is where we kick off this call | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment