Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
95 additions
and
77 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
<div class="search"> | ||
<h3 class="message">Enter a twitter username</h3> | ||
|
||
<form action='/search' method="post"> | ||
<input type="text" name="username" /> | ||
<h3 class="message">Enter a word to search by:</h3> | ||
<span class="sub">(ex. chocolate)</span> | ||
<br/> | ||
<input type="submit" value="State of the Pants" class="awesome big" /> | ||
|
||
<div> | ||
<input type="text" name="term" /> | ||
</div> | ||
|
||
<div> | ||
<h3 class="message">Enter a positive and a negative to poll with</h3> | ||
<span class="sub">(ex. love + hate)</span> | ||
</div> | ||
|
||
<div> | ||
<input type="text" name="positive" size="8" /> | ||
<span style="font-size:28pt">+</span> | ||
<input type="text" name="negative" size="8" /> | ||
</div> | ||
|
||
<div> | ||
<input type="submit" value="State of the Pants" class="awesome big" /> | ||
</div> | ||
</form> | ||
|
||
<br/> | ||
<br/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,44 @@ | ||
<div class="result"> | ||
<div class="data"> | ||
<h2><%= @result %> </h2> | ||
|
||
<p>Based on <%= @total.to_i %> data-points, people give the following results regarding:</p> | ||
|
||
<br/> | ||
<h2><%= params[:term] %></h2> | ||
<br/> | ||
|
||
<%= '%.2f' % @pcent %>% <%= params[:positive] %> | ||
<div id="positive"> | ||
<% @pcent.to_i.times do %> | ||
<div class="graph-positive"></div> | ||
<% end %> | ||
</div> | ||
|
||
<% if @tweet %> | ||
<p style="font-size:13pt;" class="message"> | ||
This is loosely<span style="vertical-align:top; color:#a80000; font-size:10pt">*</span> based on the following tweet: | ||
</p> | ||
<p style="color:#5253f7">"<%= @tweet %>"</p> | ||
<% end %> | ||
<br/> | ||
|
||
<%= '%.2f' % @ncent %>% <%= params[:negative] %> | ||
<div id="negative"> | ||
<% @ncent.to_i.times do %> | ||
<div class="graph-negative"></div> | ||
<% end %> | ||
</div> | ||
|
||
<div id="evals" style="padding:30px"> | ||
<h2>Help us make us better</h2> | ||
<h3>Help us make us better</h3> | ||
Was this evaluation any good? | ||
<div style="padding-top:15px"> | ||
<a href="/evaluate?id=<%=@id%>&eval=yes" class="eval awesome"><img src="../images/up.png" alt="Yes" /></a> | ||
<a href="/evaluate?id=<%=@id%>&eval=no" class="eval awesome"><img src="../images/down.png" alt="No" /></a> | ||
</div> | ||
</div> | ||
|
||
<div style="padding-top:40px"> | ||
<div> | ||
<a href="/" class="awesome big">Again</a> | ||
</div> | ||
|
||
<p style="font-size:9pt; color:#999" class="disclaimer"> | ||
<span style="vertical-align:super; color:#a80000;">*</span>Please keep in mind that this is in no way an accurate representation of whether or not | ||
this individual actually is wearing pants. We are meerly estimating the likelihood of | ||
the current pants situation. Please take all results with a grain of salt, two cents, and any other | ||
measure that cancels all credibility of these results. | ||
<span style="vertical-align:super; color:#a80000;">*</span> | ||
These stats are aggregated based on all searches for <b><%= params[:term] %></b>, therefore the results may be better or worse depending on how many searches | ||
have been made on this term. | ||
</p> | ||
|
||
</div> |