mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
changes
This commit is contained in:
parent
409d45a38d
commit
eeb5494e13
@ -3,7 +3,7 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Slate - Landing Page</title>
|
||||
<title>RoboHash</title>
|
||||
<link href="/static/css/main.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/static/css/prettyPhoto.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
@ -481,9 +481,15 @@ $(document).ready(function(){
|
||||
|
||||
<!-- start of footer container -->
|
||||
<div id="footer_container">
|
||||
|
||||
<!-- start of footer left -->
|
||||
<div id="footer_left"> <a href="#top" class="scroll"><img src="bottom_logo.png" width="140" height="55" alt="logo" /></a>
|
||||
<div id="footer_left">
|
||||
<p>
|
||||
Set 1 artwork created by Zikri Kader<br>
|
||||
Set 2 artwork created by Hrvoje Novakovic. <br>
|
||||
Set 3 artwork created by Julian Peter Arias.<br>
|
||||
<br><br>
|
||||
All artwork used under license.
|
||||
</p>
|
||||
</div><!-- end of footer left -->
|
||||
|
||||
<!-- start of footer right -->
|
||||
|
18
webfront.py
18
webfront.py
@ -95,16 +95,10 @@ class ImgHandler(tornado.web.RequestHandler):
|
||||
r.createHashes(10)
|
||||
|
||||
|
||||
|
||||
#Now, customize the request if possible.
|
||||
client_color = ""
|
||||
if "color" in self.request.arguments:
|
||||
if self.get_argument("color") in colors:
|
||||
client_set = tornado.escape.xhtml_escape(self.get_argument("color"))
|
||||
|
||||
#If they don't specify a color, use hashvalue
|
||||
if client_color == "":
|
||||
client_set = colors[r.hasharray[0] % len(colors) ]
|
||||
|
||||
client_set = ""
|
||||
if "set" in self.request.arguments:
|
||||
if self.get_argument("set") in sets:
|
||||
client_set = tornado.escape.xhtml_escape(self.get_argument("set"))
|
||||
@ -112,6 +106,14 @@ class ImgHandler(tornado.web.RequestHandler):
|
||||
if client_set == 'set1':
|
||||
client_set = colors[r.hasharray[0] % len(colors) ]
|
||||
|
||||
if "color" in self.request.arguments:
|
||||
if self.get_argument("color") in colors:
|
||||
client_set = tornado.escape.xhtml_escape(self.get_argument("color"))
|
||||
|
||||
#If they don't specify a color, use hashvalue
|
||||
if ((client_color == "") and (client_set == "")):
|
||||
client_set = colors[r.hasharray[0] % len(colors) ]
|
||||
|
||||
|
||||
#Change to a usuable format
|
||||
if string.endswith(('.png','.gif','.jpg','bmp','im','jpeg','pcx','ppm','tiff','xbm')):
|
||||
|
Loading…
x
Reference in New Issue
Block a user