This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def rank | |
Member.where("cached_total > ?", cached_total).count + 1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = 0; | |
setTimeout( function() { | |
$(".rotatorSelector li").progressbar({ value: i }); | |
i = i + 1; | |
}, 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* markup */ | |
<%= content_for :sidebar do %> | |
<ul class="sortable"> | |
<% @page_parts.each do |f| %> | |
<li id="menu_<%= f.id %>"><%= f.title %></li> | |
<% end %> | |
</ul> | |
<% end %> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#header").hoverIntent({ | |
over: makeTall, | |
timeout: 500, | |
out: makeShort | |
}); | |
function makeTall(){ | |
$(this).animate({"height":140},200); | |
$('#main').animate({"margin-top":140},200); | |
$('.nav').fadeIn(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.model PagePart do | |
edit do | |
field :content, :text do | |
ckeditor do | |
true | |
end | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
match '/blog' => 'cms#blog' | |
match '/blog/:id' => 'cms#post' | |
match '/categories/:id' => 'cms#category' | |
match '/tags/:id' => 'cms#tag' | |
match '/:id' => 'cms#page' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#routes.rb | |
Rails.application.routes.draw do | |
match '/blog' => 'cms#blog' | |
match '/blog/:id' => 'cms#post' | |
match '/categories/:id' => 'cms#category' | |
match '/tags/:id' => 'cms#tag' | |
match '/:id' => 'cms#page' | |
end | |
#cms_controller.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rotation = function (){ | |
$("#img").rotate({ | |
angle:0, | |
animateTo:360, | |
callback: rotation, | |
easing: function (x,t,b,c,d){ // t: current time, b: begInnIng value, c: change In value, d: duration | |
return c*(t/d)+b; | |
} | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$(".videoBG").append($('.wheel')); | |
$(".wheel").animate({ | |
top: '10%', | |
}, 3500, function() { | |
$(".wheel").rotate({ | |
animateTo:720, | |
callback: function(){ | |
$(".wheel").animate({ | |
top: '0%', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#FORM | |
%fieldset#organization{:style => "display:none"} | |
%h3 | |
Organization | |
= f.fields_for :organisations do |org| | |
.row | |
.span5 | |
= org.input :name, :label => "<strong>Name of the Organization</strong>" | |
.span5 | |
//= org.input :title, :label => "Your role" |