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
<script type="text/javascript"> | |
jQuery( document ).ready(function( $ ) { | |
$("li.level0.nav-4.level-top.parent").addClass("over"); | |
$("li.level0.nav-4.level-top.parent > a").addClass("over"); | |
$("li.level0.nav-4.level-top.parent > div").css({ display: "block" }); | |
/*pancreas*/ | |
/* | |
$("li.level1.nav-4-4.parent").addClass("over"); | |
$("li.level1.nav-4-4.parent a").addClass("over"); | |
$("li.level1.nav-4-4.parent ul").addClass("shown-sub"); |
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
class WelcomeController < ApplicationController | |
def index | |
now = Time.now | |
@strdate = now.strftime('%b %d') | |
@strtime = now.strftime('%H:%M') | |
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
<div class="thisinstant"> | |
<div class="date">Date: <%= @strdate %></div> | |
<div class="time">Time: <%= @strtime %><div> | |
</div> |
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
<div class="thisinstant"> | |
<div class="date">Date: <%= @strdate %></div> | |
<div class="time">Time: <%= @strtime %><div> | |
</div> |
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
# Use bootstrap front-end framework | |
gem 'bootstrap-sass', '~> 3.2.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
... | |
<tr id="<%= day.id %>"> | |
... | |
<td><%= link_to 'Total', total_day_path(day), :remote => true %></td> | |
... |
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
... | |
<tr id="<%= day.id %>"> | |
... | |
<td><%= link_to 'Total', total_day_path(day), :remote => true %></td> | |
... |
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
$("tr#<%= @day.id %> td.oTotal").html("<%= @day.oTotal %>"); | |
$("tr#<%= @day.id %> td.dTotal").html("<%= @day.dTotal %>"); |
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 myaction | |
... | |
respond_to do |format| | |
format.js {} | |
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
# | |
@myparam = params[:myaram] ? params[:myparam]) : defaultValue | |
# |
OlderNewer