From 7cd765811b2469586df0e73879935242504d801b Mon Sep 17 00:00:00 2001 From: Robohash <401330+e1ven@users.noreply.github.com> Date: Mon, 2 Apr 2012 20:15:41 +0000 Subject: [PATCH] Agnostic URL --- restart.sh | 5 ++ templates/root.html | 116 ++++++++++++++++++++++---------------------- 2 files changed, 63 insertions(+), 58 deletions(-) create mode 100755 restart.sh diff --git a/restart.sh b/restart.sh new file mode 100755 index 0000000..ac7645f --- /dev/null +++ b/restart.sh @@ -0,0 +1,5 @@ +killall python +nohup ./webfront.py --port=8080 > /dev/null & +nohup ./webfront.py --port=8081 > /dev/null & +nohup ./webfront.py --port=8082 > /dev/null & +nohup ./webfront.py --port=8083 > /dev/null & diff --git a/templates/root.html b/templates/root.html index 7b0d201..54c089f 100644 --- a/templates/root.html +++ b/templates/root.html @@ -19,16 +19,16 @@ colin@robohash.org RoboHash - + - - - - + + + + + logo @@ -177,8 +177,8 @@ $(document).ready(function(){
- You!
-

http://robohash.org/{{ip}}.png

+ You!
+


http://static1.robohash.org/{{ip}}.png

@@ -214,9 +214,9 @@ document.onkeypress = stopRKey; function submitform() { var x = document.getElementById("idimg"); - x.setAttribute("src", "http://robohash.org/" + document.getElementById("textform").query.value ); + x.setAttribute("src", "https://static1.robohash.org/" + document.getElementById("textform").query.value ); var y = document.getElementById("YourIP"); - y.innerHTML = "http://robohash.org/" + document.getElementById("textform").query.value; + y.innerHTML = "https://static1.robohash.org/" + document.getElementById("textform").query.value; } @@ -225,7 +225,7 @@ function submitform()
- Scroll down! + Scroll down!
@@ -252,11 +252,11 @@ function submitform() -1 star1 star1 star1 star1 star +1 star1 star1 star1 star1 star
{{ drquotes[random.randrange(0, len(drquotes)/2) ] }} @@ -265,11 +265,11 @@ src="http://robohash.org/static/img/star.png" width="33" height="31" alt="1 star
-1 star1 star1 star1 star1 star +1 star1 star1 star1 star1 star
{{drquotes[ random.randrange( len(drquotes)/2,len(drquotes) )] }} @@ -299,16 +299,16 @@ src="http://robohash.org/static/img/indented_star.png" width="27" height="25" al {% set c4 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set1" %} {% set c5 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set1" %} -
  • -
  • -
  • -
  • -
  • +
  • +
  • +
  • +
  • +
  • @@ -332,16 +332,16 @@ src="http://robohash.org/static/img/indented_star.png" width="27" height="25" al {% set c4 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set2" %} {% set c5 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set2" %} -
  • -
  • -
  • -
  • -
  • +
  • +
  • +
  • +
  • +
  • @@ -365,16 +365,16 @@ src="http://robohash.org/static/img/indented_star.png" width="27" height="25" al {% set c4 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set3" %} {% set c5 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set3" %} -
  • -
  • -
  • -
  • -
  • +
  • +
  • +
  • +
  • +
  • @@ -401,7 +401,7 @@ src="http://robohash.org/static/img/indented_star.png" width="27" height="25" al
    - Super Easy to use + Super Easy to use
    @@ -420,7 +420,7 @@ src="http://robohash.org/static/img/indented_star.png" width="27" height="25" al
    - Supported Formats + Supported Formats
    @@ -440,7 +440,7 @@ src="http://robohash.org/static/img/indented_star.png" width="27" height="25" al
    - Very infrequent murderous rampages. + Very infrequent murderous rampages.
    @@ -465,7 +465,7 @@ src="http://robohash.org/static/img/indented_star.png" width="27" height="25" al
    - 3 classes to choose from + 3 classes to choose from
    @@ -481,7 +481,7 @@ src="http://robohash.org/static/img/indented_star.png" width="27" height="25" al
    - Robots on Vacation + Robots on Vacation
    @@ -498,7 +498,7 @@ src="http://robohash.org/static/img/indented_star.png" width="27" height="25" al
    - Robotic Values + Robotic Values
    @@ -565,7 +565,7 @@ All artwork used under license.