Repository URL to install this package:
|
Version:
3.0.1.40031-bionic ▾
|
<html>
<head>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/accounts.css">
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/handlebars.min.js"></script>
<script type="text/javascript" src="js/common-old.js"></script>
<script type="text/javascript" src="js/drag.js"></script>
<script type="text/javascript">
function setAccounts(accounts) {
var $accountsList = $('#accounts');
accounts.forEach(function(acct, i) {
// Select the first account by default.
acct.checked = i === 0;
$accountsList.append(
$.trim(template(acct))
);
});
}
function done() {
var selectedId = $('input[name=account]:checked').val();
callPy('choose_account', selectedId);
}
</script>
</head>
<body>
<div class="app-bar window-drag-handle">
<span class="window-drag-handle">Add to Insync</span>
<div class="close" onclick=closeWindow()></div>
</div>
<div class="stretch">
<ul id="accounts" />
<div class="commit">
<button class="button" onClick="done()">OK</button>
<button class="button" onclick="closeWindow()">Cancel</button>
</div>
</div>
<script id="account-template" type="text/x-handlebars-template">
<li>
<label for="{{id}}">
<input
type="radio"
name="account"
id="{{id}}"
value="{{id}}"
{{#if checked}}
checked
{{/if}}
/>
{{email}}
</label>
</li>
</script>
<script type="text/javascript">
var template = Handlebars.compile($('#account-template').remove().html());
</script>
<script src="js/debug.js"></script>
</body>
</html>