|
| 1 | +<meta charset="utf-8"> |
| 2 | +<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> |
| 3 | +<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 4 | +<title><%= content_for?(:title) ? yield(:title) : " MIT Libraries" %></title> |
| 5 | +<%= csrf_meta_tags %> |
| 6 | + |
| 7 | +<!-- Le HTML5 shim, for IE6-8 support of HTML elements --> |
| 8 | +<!--[if lt IE 9]> |
| 9 | + <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js" type="text/javascript"></script> |
| 10 | +<![endif]--> |
| 11 | +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.min.css"> |
| 12 | +<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic&subset=latin,latin-ext" type="text/css"> |
| 13 | +<%= stylesheet_link_tag "application", :media => "all" %> |
| 14 | + |
| 15 | +<!-- For all other devices --> |
| 16 | +<!-- Size should be 32 x 32 pixels --> |
| 17 | +<%= favicon_link_tag 'favicon.ico', :rel => 'shortcut icon' %> |
| 18 | + |
| 19 | +<%= render partial: "layouts/js_exception_handler" %> |
| 20 | +<%= javascript_include_tag "application" %> |
| 21 | +<% if (ENV['GOOGLE_ANALYTICS']) %> |
| 22 | +<script type="text/javascript"> |
| 23 | + // Google Analytics |
| 24 | + |
| 25 | + (function(i,s,o,g,r,a,m){ |
| 26 | + i['GoogleAnalyticsObject']=r; |
| 27 | + i[r]=i[r]||function(){ |
| 28 | + (i[r].q=i[r].q||[]).push(arguments) |
| 29 | + }; |
| 30 | + i[r].l=1*new Date(); |
| 31 | + a=s.createElement(o); |
| 32 | + m=s.getElementsByTagName(o)[0]; |
| 33 | + a.async=1; |
| 34 | + a.src=g; |
| 35 | + m.parentNode.insertBefore(a,m); |
| 36 | + |
| 37 | + }(window,document,'script','https://www.google-analytics.com/analytics.js','ga')); |
| 38 | + |
| 39 | + ga('create', '<%= ENV['GOOGLE_ANALYTICS'] %>', 'auto'); |
| 40 | + ga('send', 'pageview'); |
| 41 | + |
| 42 | +</script> |
| 43 | +<% end %> |
0 commit comments