Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 49f4f56e76
Fetching contributors…

Cannot retrieve contributors at this time

file 63 lines (62 sloc) 1.858 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
<!DOCTYPE html>
<html>
    <head>
        <title>Yelp Export</title>
        <style type='text/css'>
            body {
                font:14px/20px "Helvetica Neue";
                width:640px;
                margin:0 auto;
                color:#222;
            }
            h1 {
                font:24px/30px "Helvetica Neue";
                margin:10px 0;
            }
            h4 {
                font:18px/20px "Helvetica Neue";
                margin:10px 0;
                display:inline;
            }
            span.rating-wrapper {
                font:12px/20px "Helvetica Neue";
                color:#ccc;
            }
            span.rating-wrapper .rating {
                color:#aaa;
            }
            div.rating-bar {
                background:#eee;
                border-top:1px solid #ccc;
                height:4px;
            }
            div.rating-bar .inner {
                background:#aaa;
                height:4px;
            }
            div.rating-1 { width:128px; }
            div.rating-2 { width:256px; }
            div.rating-3 { width:384px; }
            div.rating-4 { width:512px; }
            div.rating-5 { width:640px; }
        </style>
    </head>
    <body>
        <h1>My Reviews</h1>
        <% reviews.forEach(function(r) { %>
        <div class="hreview">
          <div class='rating-header'>
              <h4 class="fn org summary"><%= r.name %></h4> <span class='rating-wrapper'>
                  <span class="rating"><%= r.stars %></span> out of 5 stars
              </span>
          </div>
          <div class='rating-bar'>
              <div class='inner rating-<%= r.stars %>'>&nbsp;</div>
          </div>

          <div class="description item vcard"><p>
            <%= r.text %>
          </p></div>
        </div>
        <% }); %>
    </body>
</html>
Something went wrong with that request. Please try again.