Commit ff752a7c3467b2a6cce3e6d3b3dbc437c802a67d
- Diff rendering mode:
- inline
- side by side
mouchak/server.py
(3 / 1)
  | |||
139 | 139 | newpage['id'] = str(_id) | |
140 | 140 | del(newpage['_id']) | |
141 | 141 | print newpage | |
142 | response = flask.jsonify(newpage) | ||
143 | response.headers['Access-Control-Allow-Origin'] = '*' | ||
142 | 144 | # FIXME: handle errors | |
143 | 145 | #return flask.jsonify(status='ok', page=newpage) | |
144 | return flask.jsonify(newpage) | ||
146 | return response | ||
145 | 147 | ||
146 | 148 | ||
147 | 149 | @app.route('/page/<_id>', methods=['PUT', 'DELETE']) |
mouchak/static/css/mouchak.css
(18 / 8)
  | |||
1 | 1 | .title { | |
2 | text-align: center; | ||
3 | margin: 0 auto; | ||
4 | padding: 3px; | ||
5 | font-size: 1.5em; | ||
2 | text-align: center; | ||
3 | margin: 0 auto; | ||
4 | padding: 3px; | ||
5 | font-size: 1.5em; | ||
6 | 6 | } | |
7 | 7 | ||
8 | 8 | #map{ | |
9 | width: 1000px; | ||
10 | height: 500px; | ||
11 | margin-top: 30px; | ||
12 | position: relative; | ||
9 | width: 1000px; | ||
10 | height: 500px; | ||
11 | margin-top: 30px; | ||
12 | position: relative; | ||
13 | } | ||
14 | |||
15 | .news-item-wrapper{ | ||
16 | border: 2px solid #DDDDDD; | ||
17 | box-shadow: 0 8px 6px -6px #AAAAAA; | ||
18 | float: left; | ||
19 | height: 100px; | ||
20 | margin: 10px; | ||
21 | padding: 5px; | ||
22 | width: 300px; | ||
13 | 23 | } |