Advertisement
Guest User

Untitled

a guest
Feb 9th, 2017
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.29 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>
  6.             <% if didLie %>
  7.             Yes, he's lied
  8.             <% else %>
  9.             No, not yet
  10.             <% end %>
  11.         </title>
  12.         <script>
  13.             (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  14.                 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  15.                 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  16.                                     })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  17.  
  18.             ga('create', 'UA-91633931-1', 'auto');
  19.             ga('send', 'pageview');
  20.  
  21.         </script>
  22.     </head>
  23.     <body>
  24.  
  25.         <% if didLie %>
  26.         <div class="yes">
  27.             <h1>Yes</h1>
  28.             <div  class="lies-wrapper">
  29.                 <ul class="lies">
  30.                     <% lies.each do |lie| %>
  31.                     <li><%= link_to lie[:headline], lie[:link], class: "lie" %></li>
  32.                     <% end %>
  33.                 </ul>
  34.             </div>
  35.         </div>
  36.         <% else %>
  37.         <div class="no">
  38.             <h1>no</h1>
  39.             <p class="no-sub">not yet...</p>
  40.         </div>
  41.         <% end %>
  42.  
  43.         <a href="http://www.politifact.com" class="credit">Powered by the Politifact API.</a>
  44.  
  45.         <div class="background-image"><% if didLie %>
  46.             <%= image_tag "sad.jpg", class: "please-stretch" %>
  47.             <% else %>
  48.             <%= image_tag "fireworks.jpg", class: "please-stretch" %>
  49.             <% end %></div>
  50.  
  51.  
  52.  
  53.     </body>
  54. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement