-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (54 loc) · 1.85 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>backbone</title>
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<h1> to-do clean Backbone </h1>
<hr color='red' />
<h2> Tasks </h2>
<div class="Tasks"> <span>Add task</span>
<form action="" id="addTask">
<input type="text">
<input type="submit">
</form>
</div>
<hr/>
<h1> to-do Marionette </h1>
<hr color='red'/>
<div id="base-element" class="container"> <p> Loading </p> </div>
<script type="text/template" id="tasks-template">
<b> Title: </b> <%= title %> <button id="edit"> Edit </button> <button id="delete"> Delete </button> <br/>
<b>Priority:</b> <%= priority %> <br/> <button id="increment"> + </button> <button id="decrement"> - </button>
<hr/>
</script>
<script type="x-template/underscore" id="mn-template">
<b> task: </b> <%- task %> <br/>
<b> prirority: </b> <%- priority %> <br/>
</script>
<script type="x-template/underscore" id="mn-template-form">
<ul> </ul>
<div>
<label for="task_id"> Task: </label>
<input type="text" id="task_id">
<label for="priority_id"> Priority: </label>
<input type="text" id="priority_id">
<button id="add_task">Create</button>
</div>
</script>
<script type="text/template" id="products-template">
<b> Name: </b> <%= name %> <br/> <hr/>
<b> asin: </b> <%= asin %> <br/> <hr/>
<b> id: </b> <%= id %> <br/> <hr/>
</script>
<script src="js/jquery-3.2.1.js"></script>
<script src="js/underscore.js"></script>
<script src="js/backbone.js"></script>
<script src="js/backbone.marionette.js"></script>
<script src="js/index.js"></script>
</body>
</html>