Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
insync / usr / lib / insync / ideskui / html / accounts.html
Size: Mime:
<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>