Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added navigation anchors and removed JavaScript.

  • Loading branch information...
commit 18fd04841cac9ffe4a4ebf0733d748b2e5df037d 1 parent aa0ad89
Tyler Hunt authored April 13, 2009
7  app/views/layouts/application.html.erb
@@ -4,18 +4,19 @@
4 4
     <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
5 5
     <meta name="viewport" content="width=400; initial-scale=0.755; maximum-scale=1.0; minimum-scale=0.6666" />
6 6
     <title>BarCampOrlando Schedule</title>
7  
-    <%= javascript_include_tag 'prototype', 'application' %>
8 7
     <%= stylesheet_link_tag 'application' %>
9 8
   </head>
10 9
 
11 10
   <body>
12 11
     <div id="page">
13  
-      <h1 id="logo"><%= link_to 'BarCampOrlando', root_path %></h1>
  12
+      <div id="header">
  13
+        <h1><%= link_to 'BarCampOrlando', root_path %></h1>
  14
+      </div>
14 15
 
15 16
       <div id="navigation">
16 17
         <ul>
17 18
           <% Venue.find(:all, :order => 'id').each do |venue| %>
18  
-            <li><%= link_to_unless_current venue.name, venue_path(venue) %></li>
  19
+            <li><%= link_to_unless_current venue.name, venue_path(venue, :anchor => 'schedule') %></li>
19 20
           <% end %>
20 21
 
21 22
           <% if session[:admin] %>
4  public/javascripts/application.js
... ...
@@ -1,6 +1,2 @@
1 1
 // Place your application-specific JavaScript functions and classes here
2 2
 // This file is automatically included by javascript_include_tag :defaults
3  
-
4  
-window.onload = function() {
5  
-  setTimeout(function() { window.scrollTo(0, 1); }, 100);
6  
-}
2  public/stylesheets/application.css
@@ -65,7 +65,7 @@ table td {
65 65
   text-align: left;
66 66
 }
67 67
 
68  
-h1#logo a {
  68
+#header h1 a {
69 69
   background: url(/images/h1_background.gif) no-repeat;
70 70
   display: block;
71 71
   height: 120px;

0 notes on commit 18fd048

Please sign in to comment.
Something went wrong with that request. Please try again.