Browse Source

add docs for #17

jomo 10 years ago
parent
commit
fdb52d7d0f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      views/index.jade

+ 6 - 1
views/index.jade

@@ -42,7 +42,8 @@ block content
           a(href="/avatars/00000000000000000000000000000000?default=steve") steve
           a(href="/avatars/00000000000000000000000000000000?default=steve") steve
           |  or 
           |  or 
           a(href="/avatars/00000000000000000000000000000000?default=alex") alex
           a(href="/avatars/00000000000000000000000000000000?default=alex") alex
-          | .<br> The standard value is calculated based on the id (even = alex, odd = steve)
+          | .<br> A URL is also accepted. <br>
+          | The standard value is calculated based on the id (even = alex, odd = steve)
         a(id="helm", class="anchor")
         a(id="helm", class="anchor")
         a(href="#helm")
         a(href="#helm")
           h4 helm
           h4 helm
@@ -115,6 +116,10 @@ block content
         .code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64"&gt;
         .code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64"&gt;
         p Get jeb_'s helmet avatar, 64 × 64 pixels
         p Get jeb_'s helmet avatar, 64 × 64 pixels
         .code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&amp;helm"&gt;
         .code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&amp;helm"&gt;
+        p Get jeb_'s avatar or fall back to steve
+        .code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?default=steve"&gt;
+        p Get jeb_'s avatar or fall back to a custom image
+        .code &lt;img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?default=https%3A%2F%2Fi.imgur.com%2FozszMZV.png"&gt;
         p Get jeb_'s avatar by username, 160 x 160 pixels
         p Get jeb_'s avatar by username, 160 x 160 pixels
         .code &lt;img src="#{domain}/avatars/jeb_"&gt;
         .code &lt;img src="#{domain}/avatars/jeb_"&gt;
         p Get jeb_'s skin
         p Get jeb_'s skin