2019-10-30 17:33:58 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2019-11-06 17:25:02 +00:00
|
|
|
<link rel="stylesheet" href="css/spectre.min.css">
|
|
|
|
<link rel="stylesheet" href="css/spectre-exp.min.css">
|
|
|
|
<link rel="stylesheet" href="css/spectre-icons.min.css">
|
2020-04-04 10:18:33 +00:00
|
|
|
<link rel="stylesheet" href="css/pwa.css">
|
2020-04-04 10:21:14 +00:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
|
2020-04-04 10:23:53 +00:00
|
|
|
<link rel="manifest" href="site.webmanifest">
|
2020-04-04 10:21:14 +00:00
|
|
|
<link rel="mask-icon" href="img/safari-pinned-tab.svg" color="#5755d9">
|
2020-04-03 15:37:54 +00:00
|
|
|
<meta name="apple-mobile-web-app-title" content="BangleApps">
|
|
|
|
<meta name="application-name" content="BangleApps">
|
|
|
|
<meta name="msapplication-TileColor" content="#5755d9">
|
|
|
|
<meta name="theme-color" content="#5755d9">
|
2020-02-28 11:44:25 +00:00
|
|
|
<title>Bangle.js App Loader</title>
|
2019-10-30 20:12:44 +00:00
|
|
|
<style>
|
|
|
|
.navbar { background-color: #5755d9; padding: 0.5em 1em 0.5em 1em; }
|
2019-11-03 11:13:21 +00:00
|
|
|
.navbar .navbar-brand {
|
|
|
|
color: #fff;
|
2019-10-30 20:12:44 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2019-11-03 11:13:21 +00:00
|
|
|
.avatar img {
|
|
|
|
border-radius: 5px 5px 5px 5px;
|
|
|
|
background: #ddd;
|
2019-11-06 15:52:24 +00:00
|
|
|
}
|
|
|
|
#toastcontainer {
|
2019-11-13 16:43:09 +00:00
|
|
|
position:fixed;
|
2019-11-06 15:52:24 +00:00
|
|
|
bottom:8px;left:0px;right:0px;
|
|
|
|
z-index: 100;
|
2019-11-07 09:26:46 +00:00
|
|
|
}
|
|
|
|
.hero {
|
|
|
|
padding-bottom: 1rem;
|
|
|
|
padding-top: 1rem;
|
|
|
|
text-align:center;
|
2019-11-13 17:27:22 +00:00
|
|
|
}
|
|
|
|
.chip {
|
|
|
|
cursor: pointer;
|
2020-03-16 09:04:13 +00:00
|
|
|
}
|
|
|
|
.tile-content { position: relative; }
|
|
|
|
.link-github {
|
|
|
|
position:absolute;
|
|
|
|
top: 36px;
|
|
|
|
left: -24px;
|
2019-11-03 11:13:21 +00:00
|
|
|
}
|
2019-10-30 20:12:44 +00:00
|
|
|
</style>
|
2019-10-30 17:33:58 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2019-10-30 20:12:44 +00:00
|
|
|
<header class="navbar-primary navbar">
|
2019-10-30 17:33:58 +00:00
|
|
|
<section class="navbar-section">
|
2020-03-16 09:04:13 +00:00
|
|
|
<a href="https://banglejs.com" target="_blank" class="navbar-brand mr-2"><img src="img/banglejs-logo-sml.png" alt="Bangle.js"> App Loader</a>
|
2019-10-30 17:33:58 +00:00
|
|
|
<!-- <a href="#" class="btn btn-link">...</a> -->
|
|
|
|
</section>
|
2019-11-11 23:59:52 +00:00
|
|
|
<section class="navbar-section">
|
2019-11-12 10:56:31 +00:00
|
|
|
<button class="btn" id="connectmydevice">Connect</button>
|
2019-11-11 23:59:52 +00:00
|
|
|
</section>
|
2019-10-30 17:33:58 +00:00
|
|
|
<!--<section class="navbar-section">
|
|
|
|
<div class="input-group input-inline">
|
|
|
|
<input class="form-input" type="text" placeholder="search">
|
|
|
|
<button class="btn btn-primary input-group-btn">Search</button>
|
|
|
|
</div>
|
|
|
|
</section>-->
|
|
|
|
</header>
|
|
|
|
|
2020-04-07 09:53:02 +00:00
|
|
|
<div class="container" style="padding-top:4px">
|
2020-04-04 10:18:33 +00:00
|
|
|
<p id="requireHTTPS" class="hidden">
|
2020-04-07 09:53:02 +00:00
|
|
|
<b>STOP!</b> This page <b>must</b> be served over HTTPS. Please <a>reload this page via HTTPS</a>.
|
2020-04-04 10:18:33 +00:00
|
|
|
</p>
|
2020-02-28 12:16:57 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2019-10-30 17:33:58 +00:00
|
|
|
<ul class="tab tab-block" id="tab-navigate">
|
|
|
|
<li class="tab-item active" id="tab-librarycontainer">
|
|
|
|
<a href="javascript:showTab('librarycontainer')">Library</a>
|
|
|
|
</li>
|
|
|
|
<li class="tab-item" id="tab-myappscontainer">
|
|
|
|
<a href="javascript:showTab('myappscontainer')">My Apps</a>
|
|
|
|
</li>
|
|
|
|
<li class="tab-item" id="tab-aboutcontainer">
|
|
|
|
<a href="javascript:showTab('aboutcontainer')">About</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="container" id="toastcontainer">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container bangle-tab" id="librarycontainer">
|
2019-11-13 17:27:22 +00:00
|
|
|
<div class="filter-nav">
|
|
|
|
<label class="chip active" filterid="">All</label>
|
2019-10-30 17:33:58 +00:00
|
|
|
<label class="chip" filterid="clock">Clocks</label>
|
|
|
|
<label class="chip" filterid="game">Games</label>
|
|
|
|
<label class="chip" filterid="tool">Tools</label>
|
2019-11-13 17:43:59 +00:00
|
|
|
<label class="chip" filterid="widget">Widgets</label>
|
|
|
|
<label class="chip" filterid="bluetooth">Bluetooth</label>
|
2020-03-25 07:49:44 +00:00
|
|
|
<label class="chip" filterid="outdoors">Outdoors</label>
|
2019-11-13 17:27:22 +00:00
|
|
|
</div>
|
2019-10-30 17:33:58 +00:00
|
|
|
<div class="panel">
|
|
|
|
<div class="panel-header">
|
2019-11-13 17:27:22 +00:00
|
|
|
<div class="input-group" id="searchform">
|
2019-10-30 17:33:58 +00:00
|
|
|
<input class="form-input" type="text" placeholder="Keywords...">
|
|
|
|
<button class="btn btn-primary input-group-btn">Search</button>
|
2019-11-13 17:27:22 +00:00
|
|
|
</div>
|
2019-10-30 17:33:58 +00:00
|
|
|
</div>
|
2019-11-03 11:50:00 +00:00
|
|
|
<div class="panel-body columns"><!-- apps go here --></div>
|
2019-10-30 17:33:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container bangle-tab" id="myappscontainer" style="display:none">
|
|
|
|
<div class="panel">
|
|
|
|
<div class="panel-header" style="text-align:right">
|
2019-12-24 13:47:02 +00:00
|
|
|
<button class="btn refresh">Refresh...</button>
|
2019-10-30 17:33:58 +00:00
|
|
|
</div>
|
2019-11-03 11:50:00 +00:00
|
|
|
<div class="panel-body columns"><!-- apps go here --></div>
|
2019-10-30 17:33:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container bangle-tab" id="aboutcontainer" style="display:none">
|
|
|
|
<div class="hero bg-gray">
|
|
|
|
<div class="hero-body">
|
2020-03-16 09:04:13 +00:00
|
|
|
<a href="https://banglejs.com" target="_blank"><img src="img/banglejs-logo-mid.png" alt="Bangle.js"></a>
|
2019-11-07 09:26:46 +00:00
|
|
|
<h2>App Loader</h2>
|
2020-03-16 09:04:13 +00:00
|
|
|
<p>A tool for uploading and removing apps from <a href="https://banglejs.com" target="_blank">Bangle.js Smart Watches</a></p>
|
2019-10-30 17:33:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-07 09:26:46 +00:00
|
|
|
<div class="container" style="padding-top: 8px;">
|
2020-04-08 07:53:40 +00:00
|
|
|
<p id="apploaderlinks"></p>
|
2020-03-16 09:04:13 +00:00
|
|
|
<p>Check out <a href="https://github.com/espruino/BangleApps" target="_blank">the Source on GitHub</a>, or
|
2020-04-03 15:37:54 +00:00
|
|
|
find out <a href="https://www.espruino.com/Bangle.js+App+Loader" target="_blank">how to add your own app</a></p>
|
2020-03-16 09:04:13 +00:00
|
|
|
<p>Using <a href="https://espruino.com/" target="_blank">Espruino</a>, Icons from <a href="https://icons8.com/" target="_blank">icons8.com</a></p>
|
2019-11-07 09:26:46 +00:00
|
|
|
|
|
|
|
<h3>Utilities</h3>
|
|
|
|
<p><button class="btn" id="settime">Set Bangle.js Time</button>
|
2020-02-04 16:13:06 +00:00
|
|
|
<button class="btn" id="removeall">Remove all Apps</button>
|
|
|
|
<button class="btn" id="installdefault">Install default apps</button></p>
|
2019-11-07 09:26:46 +00:00
|
|
|
</div>
|
2019-10-30 17:33:58 +00:00
|
|
|
</div>
|
|
|
|
|
2020-04-04 10:35:55 +00:00
|
|
|
<footer class="floating hidden">
|
|
|
|
<!-- Install button, hidden by default -->
|
|
|
|
<div id="installContainer" class="hidden">
|
|
|
|
<button id="butInstall" type="button">
|
|
|
|
Install
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
2019-11-04 15:03:50 +00:00
|
|
|
<script src="https://www.puck-js.com/puck.js"></script>
|
2020-03-31 12:18:31 +00:00
|
|
|
<script src="js/utils.js"></script>
|
2020-04-03 13:27:45 +00:00
|
|
|
<script src="js/ui.js"></script>
|
2020-03-31 12:18:31 +00:00
|
|
|
<script src="js/comms.js"></script>
|
|
|
|
<script src="js/appinfo.js"></script>
|
|
|
|
<script src="js/index.js"></script>
|
2020-04-06 15:36:18 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
2020-04-04 10:12:11 +00:00
|
|
|
<script src="js/pwa.js" defer></script>
|
2019-10-30 17:33:58 +00:00
|
|
|
</body>
|
|
|
|
</html>
|