Skip to content

Commit

Permalink
moving things around, like the next button
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Phillips committed Feb 26, 2012
1 parent 2a42ce0 commit 6315239
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/questions.css.scss
Expand Up @@ -47,7 +47,7 @@

.option{
width:300px;
height:400px;
height:350px;
float:left;
padding-top:20px;
}
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/questions_controller.rb
Expand Up @@ -6,7 +6,7 @@ def show
@question = Question.find(1)
params[:id] = 1
end
unless @question.id == 5
unless @question.id == 4
@next_question = Question.find(params[:id].to_i + 1)
else
@next_question = @question
Expand Down
1 change: 0 additions & 1 deletion app/views/layouts/application.html.erb
Expand Up @@ -45,7 +45,6 @@

</head>
<body>
<%= params %>
<div class="banner">
<div class='logo'>
<%= image_tag "logo.png" %>
Expand Down
8 changes: 5 additions & 3 deletions app/views/questions/show.html.erb
Expand Up @@ -59,10 +59,10 @@ $(document).ready(function() {
<div class="verbal_rep">
<span>Question</span>
<span><%= @question.id %></span>
<span>of 5</span>
<span>of 4</span>
</div>
<div class="visual_rep">
<% 5.times do |i|%>
<% 4.times do |i|%>
<div class="box <%= (i + 1) == @question.id ? 'special' : 'normal'%>"></div>
<% end %>
</div>
Expand All @@ -74,7 +74,9 @@ $(document).ready(function() {
<button class="btn" id="button1"><%= @question.option_1 %></button><br />
<button class="btn" id="button2"><%= @question.option_2 %></button><br />
<button class="btn" id="button3"><%= @question.option_3 %></button><br />
<button class="btn" id="button4"><%= @question.option_4 %></button><br />
<% if @question.option_4 != '' %>
<button class="btn" id="button4"><%= @question.option_4 %></button><br />
<% end %>
</div>

<div class="video">
Expand Down

0 comments on commit 6315239

Please sign in to comment.