Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Todo App</title>
- <link rel="stylesheet" href="layouts/layout.css">
- <style type="text/css">.backpack.dropzone {
- font-family: 'SF UI Display', 'Segoe UI';
- font-size: 15px;
- text-align: center;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 250px;
- height: 150px;
- font-weight: lighter;
- color: white;
- will-change: right;
- z-index: 2147483647;
- bottom: 20%;
- background: #333;
- position: fixed;
- user-select: none;
- transition: left .5s, right .5s;
- right: 0px; }
- .backpack.dropzone .animation {
- height: 80px;
- width: 250px;
- background: url("chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/assets/backpack/dropzone/hoverstate.png") left center; }
- .backpack.dropzone .title::before {
- content: 'Save to'; }
- .backpack.dropzone.closed {
- right: -250px; }
- .backpack.dropzone.hover .animation {
- animation: sxt-play-anim-hover 0.91s steps(21);
- animation-fill-mode: forwards;
- background: url("chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/assets/backpack/dropzone/hoverstate.png") left center; }
- @keyframes sxt-play-anim-hover {
- from {
- background-position: 0px; }
- to {
- background-position: -5250px; } }
- .backpack.dropzone.saving .title::before {
- content: 'Saving to'; }
- .backpack.dropzone.saving .animation {
- background: url("chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/assets/backpack/dropzone/saving_loop.png") left center;
- animation: sxt-play-anim-saving steps(59) 2.46s infinite; }
- @keyframes sxt-play-anim-saving {
- 100% {
- background-position: -14750px; } }
- .backpack.dropzone.saved .title::before {
- content: 'Saved to'; }
- .backpack.dropzone.saved .animation {
- background: url("chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/assets/backpack/dropzone/saved.png") left center;
- animation: sxt-play-anim-saved steps(20) 0.83s forwards; }
- @keyframes sxt-play-anim-saved {
- 100% {
- background-position: -5000px; } }
- </style></head>
- <body>
- <!-- TODO: Add this to tempalte -->
- <div id="menu-table">
- <div id="menu-table-body">
- <div id="menu-table-row">
- <div class="menu-table-cell">
- <h1>Todo App</h1>
- </div>
- <div class="menu-table-cell">
- <a class="menu-anchor" href="/">Home</a>
- </div>
- <div class="menu-table-cell">
- <a class="menu-anchor" href="/register">Register</a>
- </div>
- <div class="menu-table-cell">
- <a class="menu-anchor" href="/login">Login</a>
- </div>
- </div>
- </div>
- </div>
- <div id="app">
- <div id="todo-table">
- <div id="todo-table-body">
- <div id="todo-table-row">
- <div id="todo-table-cell-left" class="todo-table-cell">
- <div id="todo-list-menu-table">
- <div id="todo-list-menu-body">
- <div id="todo-list-menu-column">
- <div id="todo-list-menu-cell">
- <a class="todo-list-menu-anchor" id="todo-create-form-link" href="/todo_create">Create Todo</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="todo-table-cell-right" class="todo-table-cell">
- <div id="todo-create" style="display: none;">
- <h1>Create Todo</h1>
- <div id="create-todo-table">
- <div id="create-todo-table-body">
- <form action="." method="GET">
- <div class="create-todo-table-row">
- <div class="create-todo-table-cell">
- <p>Parent Todo:
- <!-- Pre-populate -->
- <select id="parent-todo-create">
- </select>
- </p>
- </div>
- </div>
- <div class="create-todo-table-row">
- <p><scan class="required">*</scan>Name:
- <input type="text" name="name" size="64">
- </p>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="scripts/jquery/dist/jquery.min.js"></script>
- <script src="scripts/semantic-ui-css/semantic.min.js"></script>
- <script src="scripts/handlebars/dist/handlebars.min.js"></script>
- <script src="scripts/vanilla-router/dist/vanilla-router.min.js"></script>
- <script src="js/app.js"></script>
- <!-- Error Template -->
- <script id="error-template" type="text/x-handlebars-template">
- <div>
- <h1>Error: {{title}}</h1>
- </div>
- </script>
- <script id="todo-home-template" type="text/x-handlebars-template">
- <h1>Welcome!</h1>
- </script>
- <script id="todo-list-template" type="text/x-handlebars-template">
- <div id="todo-table">
- <div id="todo-table-body">
- <div id="todo-table-row">
- <div id="todo-table-cell-left" class="todo-table-cell">
- <div id="todo-list-menu-table">
- <div id="todo-list-menu-body">
- <div id="todo-list-menu-column">
- <div id="todo-list-menu-cell">
- <a class="todo-list-menu-anchor" id="todo-create-form-link" href="/todo_create" >Create Todo</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="todo-table-cell-right" class="todo-table-cell">
- {{> todoCreateTemplate }}
- </div>
- </div>
- </div>
- </div>
- </script>
- <script id="todo-create-template" type="text/x-handlebars-template">
- <div id="todo-create" style="display: none;">
- <h1>Create Todo</h1>
- <div id="create-todo-table">
- <div id="create-todo-table-body">
- <form action="." method="GET">
- <div class="create-todo-table-row">
- <div class="create-todo-table-cell">
- <p>Parent Todo:
- <!-- Pre-populate -->
- <select id="parent-todo-create">
- </select>
- </p>
- </div>
- </div>
- <div class="create-todo-table-row">
- <p><scan class="required">*</scan>Name:
- <input type="text" name="name" size="64" />
- </p>
- </div>
- </form>
- </div>
- </div>
- </div>
- </script>
- <script id="todo-login-template" type="text/x-handlebars-template">
- <h1>Login</h1>
- <form action="/api/login" method="POST">
- <p>Username: <input type="text" name="username" /></p>
- <p>Password: <input type="password" name="password" /></p>
- <p><input id="submit" type="button" value="Log In" /></p>
- </form>
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement