Sha256: 664bf2ac90ba8d4ed2a16718ebb1156e1da22cef6c1a70c31857a09c0f567eb0

Contents?: true

Size: 795 Bytes

Versions: 3

Compression:

Stored size: 795 Bytes

Contents

!!!
%html
  %head
    %meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
    %title Traffic light server
    %meta{:content => "width=device-width", :name => "viewport"}/
    %link{:href => "onepcssgrid.css", :rel => "stylesheet"}/
    %link{:href => "style.css", :media => "all", :rel => "stylesheet", :type => "text/css"}/
    %script{ :src => 'http://code.jquery.com/jquery-1.9.1.js' }
  %body
    .onepcssgrid-1200
      - (@line_map).each_key do |line|
        .col2
          = line.capitalize
          - (@line_map[line]).each_key do |light|
            - state = @lines[line][light]
            %div
              %img{ :src => "images/#{light}-#{state}.png", :id => "#{line}-#{light}-#{state}", :class => "light" }
    %script{ :src => 'traffic-light.js' }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
traffic_light_pi_server-0.0.3 lib/views/index.haml
traffic_light_pi_server-0.0.2 lib/views/index.haml
traffic_light_pi_server-0.0.1 lib/views/index.haml