Sha256: 388699a6a783152ca8a29e9319978ba2c63c1f6f14ae74be3feebc54b0700a58

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 KB

Contents

%script{ src: 'https://maps.google.com/maps/api/js?key=AIzaSyDC054dWb7cQ_mULJk3d1UBK6pN8msCx1g' }
:javascript
  function regular_map() {
    var var_location = new google.maps.LatLng(#{yield(:latitude)}, #{yield(:longtitude)});
 
    var var_mapoptions = {
        center: var_location,
        zoom: 14
    };
 
    var var_map = new google.maps.Map(document.getElementById("map-container"),
        var_mapoptions);
 
    var var_marker = new google.maps.Marker({
        position: var_location,
        map: var_map,
        title: "New York"
    });
  }
  google.maps.event.addDomListener(window, 'load', regular_map);
#contact
  %h2.mb-5.font-weight-bold.text-center
    = block.title
  .row
    .col-lg-5.col-md-12
      - @application.social_networks.each do |profile|
        %ul.list-group
          %li.list-group-item
            = profile_link profile
    .col-lg-7.col-md-12
      .row.text-center
        - if yield(:address).present?
          .col-lg-4.col-md-12.mb-3
            %p
              = fa_icon :map, class: 'fa-lx mr-2 grey-text'
              = yield :address
        - if yield(:schedule).present?
          .col-lg-4.col-md-6.mb-3
            %p
              = fa_icon :building, class: 'fa-lx mr-2 grey-text'
              = yield :schedule
        - if yield(:phone).present?
          .col-lg-4.col-md-6.mb-3
            %p
              = tel_tag yield(:phone) do
                = fa_icon :phone, class: 'fa-lx mr-2 grey-text'
                = yield :phone
      #map-container.z-depth-1-half.map-container{ style: 'height: 400px' }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tramway-landing-1.0 app/views/tramway/landing/blocks/block_types/_contacts.html.haml