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">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<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/main.css" rel="stylesheet" type="text/css" />
|
||||||
<link href="/static/css/prettyPhoto.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 -->
|
<!-- start of footer container -->
|
||||||
<div id="footer_container">
|
<div id="footer_container">
|
||||||
|
|
||||||
<!-- start of footer left -->
|
<!-- 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 -->
|
</div><!-- end of footer left -->
|
||||||
|
|
||||||
<!-- start of footer right -->
|
<!-- start of footer right -->
|
||||||
|
18
webfront.py
18
webfront.py
@ -95,22 +95,24 @@ class ImgHandler(tornado.web.RequestHandler):
|
|||||||
r.createHashes(10)
|
r.createHashes(10)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Now, customize the request if possible.
|
#Now, customize the request if possible.
|
||||||
client_color = ""
|
client_color = ""
|
||||||
if "color" in self.request.arguments:
|
client_set = ""
|
||||||
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) ]
|
|
||||||
|
|
||||||
if "set" in self.request.arguments:
|
if "set" in self.request.arguments:
|
||||||
if self.get_argument("set") in sets:
|
if self.get_argument("set") in sets:
|
||||||
client_set = tornado.escape.xhtml_escape(self.get_argument("set"))
|
client_set = tornado.escape.xhtml_escape(self.get_argument("set"))
|
||||||
#Set one is distributed
|
#Set one is distributed
|
||||||
if client_set == 'set1':
|
if client_set == 'set1':
|
||||||
client_set = colors[r.hasharray[0] % len(colors) ]
|
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
|
#Change to a usuable format
|
||||||
|
Loading…
x
Reference in New Issue
Block a user