-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdemo.html
executable file
·178 lines (133 loc) · 6.25 KB
/
demo.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script src='superslide-std.js'></script>
<title>superslide.js</title>
<link href="https://fonts.googleapis.com/css?family=Playfair+Display|Heebo:300,500" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous" />
</head>
<style>
#menuContainer
{ background: #eee; box-shadow: 0px 10px 10px 2px rgba(0,0,0,0.2)}
body
{
background: url('https://images.pexels.com/photos/131634/pexels-photo-131634.jpeg?h=350&auto=compress&cs=tinysrgb');
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
font-family: 'Heebo', sans-serif;
padding: 0px;
margin: 0px;
font-weight: 300;
background: #fff;
background: linear-gradient(#eee 0%, #fff 100%);
}
.navlink
{ padding: 20px 15px; }
</style>
<script>
window.onerror = function(msg, url, linenumber)
{
alert('Error message: '+msg+'\nURL: '+url+'\nLine Number: '+linenumber);
return true;
};
window.onload = function()
{
superslideMenu = new OSREC.superslide(
{
slider: document.getElementById('menuContainer'),
content: document.getElementById('content'),
animation: 'slideLeft',
duration: 0.5,
allowDrag: true,
slideContent: true,
allowContentInteraction: true,
closeOnBlur: false,
width: '60vw',
height: '50vh'
});
console.log(superslideMenu);
var p = superslideMenu.open();
console.log(p);
};
</script>
<body>
<div id='content' style='color: #fff; min-height: 100vh;'>
<div style='font-size: 25px; padding: 15px; display: flex; align-items: center; background: #222; color: #eee;'>
<i class='fa fa-bars' style='cursor: pointer' onclick='superslideMenu.toggle()'></i>
<div style='margin-left: 15px; flex: 1'>My Wallet</div>
<i class='fa fa-search'></i>
<i class='fa fa-heart-o' style='margin-left: 15px;'></i>
</div>
<div style='color: #333;'>
<div style='display: flex; align-items: center; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 15px;'>
<div style='padding: 8px; border-radius: 8px; background: #00cc00; margin-right: 15px;'></div>
<div style='flex: 1; padding-right: 10px;'>
<div style='padding-bottom: 2px;'>Groceries</div>
<div style='font-size: 80%'>13th August 2017</div>
</div>
<div style='font-size: 20px;'>$31.99</div>
<i class='fa fa-chevron-right' style='margin-left: 10px;'></i>
</div>
<div style='display: flex; align-items: center; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 15px;'>
<div style='padding: 8px; border-radius: 8px; background: #F9D210; margin-right: 15px;'></div>
<div style='flex: 1; padding-right: 10px;'>
<div style='padding-bottom: 2px;'>Haircut</div>
<div style='font-size: 80%'>11th August 2017</div>
</div>
<div style='font-size: 20px;'>$20.00</div>
<i class='fa fa-chevron-right' style='margin-left: 10px;'></i>
</div>
<div style='display: flex; align-items: center; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 15px;'>
<div style='padding: 8px; border-radius: 8px; background: #FF7A61; margin-right: 15px;'></div>
<div style='flex: 1; padding-right: 10px;'>
<div style='padding-bottom: 2px;'>Bus Ticket</div>
<div style='font-size: 80%'>9th August 2017</div>
</div>
<div style='font-size: 20px;'>$11.50</div>
<i class='fa fa-chevron-right' style='margin-left: 10px;'></i>
</div>
<div style='display: flex; align-items: center; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 15px;'>
<div style='padding: 8px; border-radius: 8px; background: #FF7A61; margin-right: 15px;'></div>
<div style='flex: 1; padding-right: 10px;'>
<div style='padding-bottom: 2px;'>Virgin LHR to SFO</div>
<div style='font-size: 80%'>7th August 2017</div>
</div>
<div style='font-size: 20px;'>$950.38</div>
<i class='fa fa-chevron-right' style='margin-left: 10px;'></i>
</div>
<div style='display: flex; align-items: center; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 15px;'>
<div style='padding: 8px; border-radius: 8px; background: #67BCDD; margin-right: 15px;'></div>
<div style='flex: 1; padding-right: 10px;'>
<div style='padding-bottom: 2px;'>Dry Cleaning</div>
<div style='font-size: 80%'>4th August 2017</div>
</div>
<div style='font-size: 20px;'>$15.00</div>
<i class='fa fa-chevron-right' style='margin-left: 10px;'></i>
</div>
<div style='display: flex; align-items: center; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 15px;'>
<div style='padding: 8px; border-radius: 8px; background: #FF18EA; margin-right: 15px;'></div>
<div style='flex: 1; padding-right: 10px;'>
<div style='padding-bottom: 2px;'>Dentist</div>
<div style='font-size: 80%'>3th August 2017</div>
</div>
<div style='font-size: 20px;'>$134.00</div>
<i class='fa fa-chevron-right' style='margin-left: 10px;'></i>
</div>
</div>
</div>
<div id='menuContainer'>
<div>
<!--button onclick='superslideMenu.close()'>Close</button-->
<div style='padding: 22px 15px; padding-bottom: 21px; background:#4bc48f; color: #fff'><i class='fa fa-star' style='width: 1.5em'></i>My PWA</div>
<div class='navlink'><i class='fa fa-user-o' style='width: 1.5em'></i>John Smith</div>
<div class='navlink' style='background: #F7C81C; color: #fff'><i class='fa fa-dollar' style='width: 1.5em'></i>Expenses</div>
<div class='navlink'><i class='fa fa-bar-chart' style='width: 1.5em'></i>Reports</div>
<div class='navlink'><i class='fa fa-refresh' style='width: 1.5em'></i>Recurring</div>
<div class='navlink'><i class='fa fa-clock-o' style='width: 1.5em'></i>Pending</div>
<div class='navlink'><i class='fa fa-gear' style='width: 1.5em'></i>Settings</div>
</div>
</div>
</body>
</html>