Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>
- <% if didLie %>
- Yes, he's lied
- <% else %>
- No, not yet
- <% end %>
- </title>
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-91633931-1', 'auto');
- ga('send', 'pageview');
- </script>
- </head>
- <body>
- <% if didLie %>
- <div class="yes">
- <h1>Yes</h1>
- <div class="lies-wrapper">
- <ul class="lies">
- <% lies.each do |lie| %>
- <li><%= link_to lie[:headline], lie[:link], class: "lie" %></li>
- <% end %>
- </ul>
- </div>
- </div>
- <% else %>
- <div class="no">
- <h1>no</h1>
- <p class="no-sub">not yet...</p>
- </div>
- <% end %>
- <a href="http://www.politifact.com" class="credit">Powered by the Politifact API.</a>
- <div class="background-image"><% if didLie %>
- <%= image_tag "sad.jpg", class: "please-stretch" %>
- <% else %>
- <%= image_tag "fireworks.jpg", class: "please-stretch" %>
- <% end %></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement