--- a/mouchak/server.py +++ b/mouchak/server.py @@ -139,9 +139,11 @@ newpage['id'] = str(_id) del(newpage['_id']) print newpage + response = flask.jsonify(newpage) + response.headers['Access-Control-Allow-Origin'] = '*' # FIXME: handle errors #return flask.jsonify(status='ok', page=newpage) - return flask.jsonify(newpage) + return response @app.route('/page/<_id>', methods=['PUT', 'DELETE']) --- a/mouchak/static/css/mouchak.css +++ b/mouchak/static/css/mouchak.css @@ -1,14 +1,24 @@ .title { - text-align: center; - margin: 0 auto; - padding: 3px; - font-size: 1.5em; + text-align: center; + margin: 0 auto; + padding: 3px; + font-size: 1.5em; } #map{ -width: 1000px; -height: 500px; -margin-top: 30px; -position: relative; + width: 1000px; + height: 500px; + margin-top: 30px; + position: relative; +} + +.news-item-wrapper{ + border: 2px solid #DDDDDD; + box-shadow: 0 8px 6px -6px #AAAAAA; + float: left; + height: 100px; + margin: 10px; + padding: 5px; + width: 300px; }