<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>My Device App</title>
- <link href="http://taujs.org/1.2.9/mobile/theme/default/tau.min.css" rel="stylesheet" />
+ <script>
+ function error(this_) {
+ location.replace(`client/error.html?src=${this_.src}`);
+ }
+ </script>
+ <link href="http://taujs.org/1.2.9/mobile/theme/default/tau.min.css" rel="stylesheet" onerror="error(this)" />
<link rel="stylesheet" href="client/css/style.css" />
<link rel="manifest" href="client/manifest.webmanifest">
<link rel="shortcut icon" href="client/images/Icon.png">
- <script src="https://unpkg.com/mustache@latest"></script>
- <script src="http://taujs.org/1.2.9/mobile/js/tau.min.js"></script>
+ <script src="https://unpkg.com/mustache@latest" onerror="error(this)"></script>
+ <script src="http://taujs.org/1.2.9/mobile/js/tau.min.js" onerror="error(this)"></script>
<script src="client/js/clipping-storage.js" type="module"></script>
<script src="client/js/app.js" type="module"></script>
<script src="client/js/myApps.js" type="module"></script>
- <script>
- if (typeof tau === 'undefined') {
- location.replace('client/error.html');
- }
- </script>
</head>
<body>
<h2 style="margin-left:10px">
Error
</h2>
- <div>
- <h4 class="error-msg">
- Service is not available due to network issue
- </h4>
+ <div class="error-msg">
+ <h4>Service is not available</h4>
+ <h4>due to network issue of</h4>
+ <h4 id="error-msg"></h4>
</div>
</div>
+ <script>
+ const urlParams = new URLSearchParams(window.location.search);
+ const urlParamObj = Object.fromEntries(urlParams);
+ const msgElement = document.querySelector('#error-msg');
+ msgElement.innerText = urlParamObj.src;
+ </script>
</body>
</html>