Skip to content

Instantly share code, notes, and snippets.

@rgarver
Created December 15, 2011 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgarver/1483253 to your computer and use it in GitHub Desktop.
Save rgarver/1483253 to your computer and use it in GitHub Desktop.
Rails/Haml code for iOS fancy images
= favicon_link_tag "Avalon_Fav_Icon_16.png", :type => "image/png"
= favicon_link_tag "Avalon_Fav_Icon_57.png", :rel => "apple-touch-icon", :type => "image/png"
= favicon_link_tag "Avalon_Fav_Icon_72.png", :rel => "apple-touch-icon", :size => "72x72", :type => "image/png"
= favicon_link_tag "Avalon_Fav_Icon_114.png", :rel => "apple-touch-icon", :size => "114x114", :type => "image/png"
= favicon_link_tag "Avalon_Loading_1024x748.png", :rel => "apple-touch-startup-image", :media => "screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)"
= favicon_link_tag "Avalon_Loading_768x1004.png", :rel => "apple-touch-startup-image", :media => "screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)"
= favicon_link_tag "Avalon_Loading_320x460.png", :rel => "apple-touch-startup-image", :media => "screen and (min-device-width: 200px) and (max-device-width: 320px) and (orientation:portrait)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment