Remove unused about page code

This commit is contained in:
John Firebaugh 2013-11-06 11:15:08 -08:00
parent 39ffcbc6a2
commit 07c6d714c5
9 changed files with 1 additions and 33 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

View file

@ -1,20 +0,0 @@
(function () {
var num = Math.floor(Math.random() * 6);
// Background image
if (window.location.hash) {
var h = window.location.hash.match(/#(.*)/);
if (!isNaN(parseInt(h[1], 10))) num = h[1];
}
// $(document).ready(function () {
// $('#content').attr('class', 'photo-' + num);
// });
$(document).on('click', '#next-photo', function () {
num = (num + 1) % 6;
$('#content').attr('class', 'photo-' + num);
window.location.hash = num;
return false;
});
})();

View file

@ -1,7 +1,3 @@
<% content_for :head do %>
<%= javascript_include_tag "about" %>
<% end %>
<div class='attr'>
<div class='byosm'>
<%= t "about_page.copyright_html" %>
@ -29,11 +25,3 @@
<p><%= t "about_page.open_data_html", :copyright_path => copyright_path %></p>
</div>
</div>
<% 5.times do |i| %>
<div class='caption photo-<%= i %>'>
<%= t "about_page.photo_caption_#{i}_html" %>
</div>
<% end %>
<!-- <a class='next' id='next-photo' href='#'><%= t "about_page.next" %></a> -->

View file

@ -69,7 +69,7 @@ OpenStreetMap::Application.configure do
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
config.assets.precompile += %w( index.js browse.js welcome.js about.js )
config.assets.precompile += %w( index.js browse.js welcome.js )
config.assets.precompile += %w( user.js diary_entry.js pngfix.js swfobject.js )
config.assets.precompile += %w( large-ltr.css small-ltr.css print-ltr.css )
config.assets.precompile += %w( large-rtl.css small-rtl.css print-rtl.css )