Permalink
Browse files

updated rails template

  • Loading branch information...
1 parent fbbff53 commit 45c1e07f6f22a91004e66ba042ef4aa9198d8f86 @cousinwil committed Sep 20, 2011
Showing with 22 additions and 12 deletions.
  1. +7 −2 base.html
  2. +15 −10 rails_base/app/views/layouts/base.html.erb
View
@@ -48,12 +48,17 @@
base.init.home.load('See line 59 of base.html to trace this call.');
}, 15);
});
- $(window).resize(function{ /* when the window is scaled y the user - absolute element redraws */
+ $(window).resize(function(){ /* when the window is scaled y the user - absolute element redraws */
base.init.home.size('See line 63 of base.html to trace this call.');
- });
+ });
})(jQuery);
</script>
+ <!--[if lt IE 7 ]>
+ <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
+ <script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
+ <![endif]-->
+
</body>
<!-- we built this city on rock and roll (and steeze.) - @cousinwil -->
</html>
@@ -5,6 +5,7 @@
<head>
<meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><%= !params[:title] ? 'Steeze Base Rails Layout' : params[:title] %></title>
@@ -18,14 +19,13 @@
<meta name="description" content="" property="og:description" />
<meta name="copyright" content="" />
<meta name="author" content="" />
- <%= csrf_meta_tag %>
<%= stylesheet_link_tag 'base', 'app', :media => "all" %>
<link rel="shortcut icon" href=""/>
<link rel="apple-touch-icon" href=""/>
- <!--[if lte IE 8]>
+ <!--[if lte IE 8]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
<![endif]-->
@@ -34,26 +34,31 @@
<body>
<%= yield %>
-
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<%= javascript_include_tag 'base' %>
<script type="text/javascript">
(function($) {
$(document).ready(function{
- base.init.home.ready('See line 56 of base.html.erb to trace this call.');
+ base.init.home.ready('See line 55 of base.html to trace this call.');
});
- $(window).load(function{
+ $(window).load(function(){
setTimeout(function(){ /* ensures it loads **after** the loading spinner stops */
- base.init.home.load('See line 60 of base.html.erb to trace this call.');
+ base.init.home.load('See line 59 of base.html to trace this call.');
}, 15);
});
- $(window).resize(function{ /* when the window is scaled y the user - absolute element redraws */
- base.init.home.size('See line 64 of base.html.erb to trace this call.');
- });
+ $(window).resize(function(){ /* when the window is scaled y the user - absolute element redraws */
+ base.init.home.size('See line 63 of base.html to trace this call.');
+ });
})(jQuery);
</script>
<%= yield :view_specific_javascript %>
+ <!--[if lt IE 7 ]>
+ <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
+ <script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
+ <![endif]-->
+
</body>
-<!-- we built this city on rock and roll (and rails, and steeze.) - @cousinwil -->
+<!-- we built this city on rock and roll (and steeze.) - @cousinwil -->
</html>

0 comments on commit 45c1e07

Please sign in to comment.