!!! %html

%head
  %title PasswordPusher
  = csrf_meta_tags
  = oboe_rum_header rescue ""
  = stylesheet_link_tag    "application"
  %link{ :rel => "shortcut icon",    :href => asset_path("favicon.ico"), :type => "image/x-icon" }
  %link{ :rel => "apple-touch-icon", :href => asset_path("apple-touch-icon-iphone.png") }
  %link{ :rel => "apple-touch-icon", :sizes => "72x72",   :href => asset_path("apple-touch-icon-ipad.png") }
  %link{ :rel => "apple-touch-icon", :sizes => "114x114", :href => asset_path("apple-touch-icon-iphone4.png") }
  %link{ :rel => "apple-touch-icon", :sizes => "144x144", :href => asset_path("apple-touch-icon-ipad3.png") }
  :javascript
    // Set up the yepnope (Modernizr.load) directives... 
    Modernizr.load([
    {
        // Test if Input Range is supported using Modernizr
        test: Modernizr.inputtypes.range,
        // If ranges are not supported, load the slider script and CSS file
        nope: [
          // The slider CSS file
          "css!#{asset_path('fd-slider.css')}"
          // Javascript file for slider
         ,"#{asset_path('fd-slider.js')}"
        ],
        callback: function(id, testResult) {
            // If the slider file has loaded then fire the onDomReady event
            if("fdSlider" in window && typeof (fdSlider.onDomReady) != "undefined") {
                    try { fdSlider.onDomReady(); } catch(err) {};
            };
        }
    }
    ]);
%body
  .content
    = link_to image_tag("forkme.png", :style => "position: absolute; top: 0; right: 0; border: 0; z-index: 1;", :alt => "Fork me on Github" ), "https://github.com/pglombardo/PasswordPusher"
    = yield

  = javascript_include_tag "application"
  = render :partial => "layouts/ga" if Rails.env == "production"
  = oboe_rum_footer rescue ""