diff --git a/srv.py b/srv.py index 6f240de..7f97ba2 100644 --- a/srv.py +++ b/srv.py @@ -8,7 +8,7 @@ from output import array app = Flask(__name__) def jsonify(data): - return flask.Markup(json.dumps(data)) + return flask.Markup(json.dumps(data)) app.jinja_env.filters['jsonify'] = jsonify @@ -16,7 +16,7 @@ app.jinja_env.filters['jsonify'] = jsonify @app.route('/') def home(first_id=None, second_id=None, third_id=None): ''' - print len(array) + print len(array) while first_id == None: rand_int = randint(0, len(array)-1) value = array[rand_int] @@ -41,7 +41,7 @@ def home(first_id=None, second_id=None, third_id=None): @app.route('/manifest.webapp') def manifest(): - return open('manifest.webapp').read() + return open('manifest.webapp').read() if __name__ == '__main__': app.run(host='127.0.0.1', port=6969, debug=True) diff --git a/static/js/penis.js b/static/js/penis.js index a3102d8..018fc44 100644 --- a/static/js/penis.js +++ b/static/js/penis.js @@ -1,16 +1,16 @@ $(function() { - $.getJSON('https://ajax.googleapis.com/ajax/services/search/images?v=1.0&imgsz=medium|large|xlarge|xxlarge&rsz=8&as_rights=(cc_publicdomain|cc_attribute|cc_sharealike|cc_nonderived).-(cc_noncommertial)&as_filetype=jpg|png|gif&safe=moderate&callback=?', {'q':words.join(' || ')}, function(data) { - results = data.responseData.results; - //for(var i in results) - { - var i = 0; // hardcore - $img = $(''); - $img.attr('src', results[i].url); - $img.appendTo($('#image_wrapper')); - return; - } - }) - $(document).click(function(e) { - window.location.reload() - }); + $.getJSON('https://ajax.googleapis.com/ajax/services/search/images?v=1.0&imgsz=medium|large|xlarge|xxlarge&rsz=8&as_rights=(cc_publicdomain|cc_attribute|cc_sharealike|cc_nonderived).-(cc_noncommertial)&as_filetype=jpg|png|gif&safe=moderate&callback=?', {'q':words.join(' || ')}, function(data) { + results = data.responseData.results; + //for(var i in results) + { + var i = 0; // hardcore + $img = $(''); + $img.attr('src', results[i].url); + $img.appendTo($('#image_wrapper')); + return; + } + }) + $(document).click(function(e) { + window.location.reload() + }); }); diff --git a/templates/home.html b/templates/home.html index 48a6ff5..f5e4158 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,66 +1,64 @@ - - So.I.am-a.cat mind derailer - - - - - {{ words[0]|e }} -
- {{ words[1]|e }}
-
Copyright © RiddleKiller Ltd.
Features Kelson Sans font by FontFabric.com/
- - - - + + So.I.am-a.cat mind derailer + + + + + {{ words[0]|e }} +
+ {{ words[1]|e }}
+
Copyright © RiddleKiller Ltd.
Features Kelson Sans font by FontFabric.com/
+ + + + diff --git a/templates/homeLOL.html b/templates/homeLOL.html index d4304bd..649648c 100644 --- a/templates/homeLOL.html +++ b/templates/homeLOL.html @@ -1,54 +1,55 @@ - - HellYeah mind derailer - - - - -
- - {{ words[0]|e }} -
- - {{ words[1]|e }} - -
-
Copyright © RiddleKiller Ltd.
- - - - + text-shadow: -6px 0 black, 0 6px black, 6px 0 black, 0 -6px black; */ + text-shadow: 1px 1px black, -1px 1px black, 1px -1px black, -1px -1px black, 2px 2px black, -2px 2px black, 2px -2px black, -2px -2px black, 0px 2px black, -2px 0px black, 0px -2px black, 2px 0px black; + } + body { + background: #2b2b2b; + text-align: center; + @font-face{ font-family: TPBAFK; src url("../fonts/TPBAFK-Regular.ttf")} + } + img { width: 500px; max-height: 640px; z-index:0;} + .foot { + font-size: 8px; + color: #666; + margin-top: 20px; + } + + + + +
+ + {{ words[0]|e }} + +
+ + {{ words[1]|e }} + +
+
Copyright © RiddleKiller Ltd.
+ + + +