Sha256: 1c11c46df2a2ce3ceb4b915a943092b861a0360686210c859b6d2b8793b94b0b

Contents?: true

Size: 1.5 KB

Versions: 5

Compression:

Stored size: 1.5 KB

Contents

-# Grab Google CDN's jQuery
-# Looks for google_api_key first in ENV['GOOGLE_API_KEY'] then in config/google.yml
- if !google_api_key.blank?
  = javascript_include_tag "//www.google.com/jsapi?key=#{google_api_key}"
  :javascript
    google.load("jquery", "1.4.4");
- else
  = javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"

-# fall back to local jQuery if necessary
:javascript
  !window.jQuery && document.write(unescape('%3Cscript src="/javascripts/jquery-1.4.4.min.js"%3E%3C/script%3E'))
  
= javascript_include_tag 'rails', 'plugins', 'application'

/[if lt IE 7 ]
  :javascript
    $.getScript("/javascripts/dd_belatedpng.js",function(){ DD_belatedPNG.fix('img, .png_bg'); });
    
-#  Append your own using content_for :javascripts
= yield :javascripts

-# yui profiler and profileviewer
- if Rails.env == 'development'
  = javascript_include_tag 'profiling/yahoo-profiling.min', 'profiling/config'

-# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
-# Looks for google_account_id first in ENV['GOOGLE_ACCOUNT_ID'] then in config/google.yml
- if !google_account_id.blank?
  :javascript
    var _gaq = [['_setAccount', '#{google_account_id}'], ['_trackPageview']];
    (function(d, t) {
     var g = d.createElement(t),
         s = d.getElementsByTagName(t)[0];
     g.async = true;
     g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
     s.parentNode.insertBefore(g, s);
    })(document, 'script');

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
html5-starter-0.1.9b templates/project/_javascripts.html.haml
html5-starter-0.1.8b templates/project/_javascripts.html.haml
html5-starter-0.1.4b templates/project/_javascripts.html.haml
html5-starter-0.1.3b templates/project/_javascripts.html.haml
html5-boilerplate-0.2.6 templates/project/_javascripts.html.haml