-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgift-o-matic.html
More file actions
111 lines (106 loc) · 2.32 KB
/
gift-o-matic.html
File metadata and controls
111 lines (106 loc) · 2.32 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<head>
<script src="bower_components/javascript-linkify/ba-linkify.js"></script>
<script src="bower_components/react/react.js"></script>
<script src="bower_components/react/JSXTransformer.js"></script>
<script src="bower_components/sugar/release/sugar-full.development.js"></script>
<script src="lib/net.js"></script>
<script src="model/ItemData.js"></script>
<script src="ui/GiftOMatic.js" type="text/jsx"></script>
<script src="ui/GroupedItemLists.js" type="text/jsx"></script>
<script src="ui/ItemForm.js" type="text/jsx"></script>
<script src="ui/Item.js" type="text/jsx"></script>
<script src="ui/ItemList.js" type="text/jsx"></script>
<script src="ui/Login.js" type="text/jsx"></script>
<script src="ui/NewItemForm.js" type="text/jsx"></script>
<script src="ui/ShoppingList.js" type="text/jsx"></script>
<style>
body,
button,
select,
input,
textarea {
font-size: 20px;
white-space: pre-wrap;
}
.item button {
height: 2em;
width: 2em;
margin-left: 10px;
}
* {
flex-shrink: 0 !important;
}
.flex {
display: flex;
}
.item {
border: 1px dashed;
margin: 10px 0;
word-break: break-word;
}
.clear {
clear: both;
}
.itemButtons {
float: right;
}
.item > .title {
background-color: lightgrey;
}
.quantity {
width: 60px;
}
.item > * {
padding: 10px;
}
.recipients-list {
margin: 20px 0;
}
.flexOne,
.itemContent {
flex: 1;
}
.title {
font-weight: bold;
display: block;
}
.ItemFormInputs {
display: flex;
flex-wrap: wrap;
}
.ItemFormInputs > * {
margin-right: 15px;
}
.ItemForm {
background-color: lightyellow;
padding: 10px;
}
.ItemForm > * {
margin: 10px 0;
}
.ItemForm .description {
display: flex;
}
.ItemForm .description > input {
flex: 1;
margin-left: 10px;
}
.ItemForm textarea {
box-sizing: border-box;
width: 100%;
height: 150px;
}
h2 {
user-select: none;
}
</style>
<base target="_blank" />
</head>
<div id="root"></div>
<script type="text/jsx">
React.render(
<GiftOMatic />,
document.getElementById('root')
);
</script>