Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
100 lines (92 sloc) 2.94 KB

<!doctype html>

<style> .spinner { clear: both; margin: 0 auto; } </style>

Please Wait

<script src="/__static__/components/jquery/dist/jquery.min.js?v=6fc159d00dc3cea4153c038739683f93" type="text/javascript"></script> <script src="/__static__/components/bootstrap/dist/js/bootstrap.min.js?v=c5b5b2fa19bd66ff23211d9f844e0131" type="text/javascript"></script> <script src="/__static__/components/iframe-resizer/js/iframeResizer.contentWindow.js?v=d5a94813e680b02fadf7f73aa2749c3a" type="text/javascript"></script> <script src="/__static__/scripts/shinyapps.js?v=afc23eeb75b4a756875ad671a3cde285" type="text/javascript"></script> <script src="/__static__/scripts/shinyapps.frame.content.js?v=7697d548c0b46faaf2151e2189aa41e6" type="text/javascript"></script> <script> $(document).ready(function () { var count = 0; var app_url = 'https://magicbeansinc.shinyapps.io/DESC_DESchool2015/'; var url = app_url + '__health-check__/'; var started_at = new Date().getTime(); function checkApp() { count += 1; $.ajax({url: url, cache: false}) .done(function(data, textStatus, xhr) { if (xhr.status == 200) { // log time elapsed var finished_at = new Date().getTime(); var elapsed = finished_at - started_at; if ( window.console && window.console.log ) { console.log("Application loaded in " + elapsed + "ms" + ' (' + count + ')') } // reload window.location.reload(true) } else { // wait and try again var snooze = Math.min(3000, (250 * count)); setTimeout(function () { checkApp() }, snooze) } }) } checkApp(); }); </script>