Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
      <meta name="description" content="">
      <meta name="author" content="">
      <title></title>
      {{template_item.canonical|raw}} {% for meta in template_item.meta %} {{ meta|raw }} {% endfor %} {% for stylesheets in template_item.stylesheets %} {{ stylesheets|raw }} {% endfor %} {% for scripts in template_item.scripts %} {{ scripts|raw }} {% endfor %}<!-- Navigation -->   
   </head>
   <body>
      <nav class="navbar navbar-expand-lg ">
         <div class="container">
            <a class="navbar-brand" href="#"></a><button aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-target="#navbarResponsive" data-toggle="collapse" type="button"><span class="navbar-toggler-icon"></span></button>     
            <div class="collapse navbar-collapse" id="navbarResponsive">
               <ul class="navbar-nav ml-auto">
                  <li class="nav-item"><a class="nav-link" href="#">Menu 1</a></li>
                  <li class="nav-item"><a class="nav-link" href="#">Menu 2</a></li>
                  <li class="nav-item"><a class="nav-link" href="#">Menu 3</a></li>
               </ul>
            </div>
            <div>Slogan</div>
         </div>
      </nav>
      <!-- Page Content -->          
      <div class="container">
         <div class="row align-items-center">
            <div class="col-lg-12"><img alt="logo" class="img-fluid" src="https://www.metalocator.com/wp-content/themes/FoundationPress/dist/assets/images/m-logo-horiz.svg" /></div>
         </div>
         <!-- banner -->          
         <div class="card text-white bg-secondary my-5 py-4 text-center">
            <div class="card-body">
               <p class="text-white m-0">Banner Example</p>
            </div>
         </div>
         <div class="row">
            <div class="col-lg-6">
               <nav aria-label="breadcrumb">
                  <ol class="breadcrumb">
                     <li><a href="#">Search for a new location</a></li>
                  </ol>
               </nav>
               <h1>{{template_item.location.name}}</h1>
               <div>{{template_item.distance}}</div>
               <address><a href="https://www.google.com/maps/dir/?api=1&amp;origin=&amp;destination={{template_item.location.address|url_encode}}+{{template_item.location.city|url_encode}}+{{template_item.location.state|url_encode}}+{{template_item.location.postalcode|url_encode}}" target="_blank">{{template_item.location.address}}<br />     {% if template_item.location.address2 %}{{template_item.location.address2}}<br />     {% endif %} {{template_item.location.city}},{{template_item.location.state}} {{template_item.location.postalcode}}</a><br />     <a href="tel:{{template_item.location.phone}}" target="parent">{{template_item.location.phone}}</a></address>
               <div class="row">
                  <div class="col-6"><a class="btn btn-primary" href="https://www.google.com/maps/dir/?api=1&amp;origin=&amp;destination={{template_item.location.address|url_encode}}+{{template_item.location.city|url_encode}}+{{template_item.location.state|url_encode}}+{{template_item.location.postalcode|url_encode}}" target="_blank">Get Directions</a></div>
                  <div class="col-6"><a class="btn btn-secondary" href="tel:{{template_item.location.phone}}">Call &middot; {{template_item.location.phone}}</a></div>
                  <div class="col-12 text-center"><a class="ml_send_to_phone ml_sendtophone" data-id="{{template_item.location.id}}" data-modal-type="send_to_phone" data-placement="top" data-target="#ml_locator_modal" data-toggle="modal" href="#" target="" title="Send to your phone">Send to Phone</a></div>
                  <div class="col-12 text-center">
                     <h4>Store Hours</h4>
                     <div>{{template_item.location.hours_formatted|raw}}</div>
                     <div>{{template_item.location.specialhours}}</div>
                     <span class="line_item ml_hours_status" data-metalocator-timezone="{{template_item.location.time_zone}}" data-metalocator-hours="{{template_item.location.hours}}"></span>          
                  </div>
               </div>
            </div>
            <!-- end address column -->          
            <div class="col-lg-6"> 
              
                <!-- url-{{template_item.location.marker|url_encode}} -->
               <img class="img-fluid map_mobile" src="/index.php?option=com_locator&task=tools.createstaticimage&format=raw&url=pin-m-marker+FF6A67({{template_item.location.lng}},{{template_item.location.lat}})&lng={{template_item.location.lng}}&lat={{template_item.location.lat}}&zoom=16&width=500&height=500&density=@2x&style=light-v10" alt="{{template_item.location.name}}"/>
              
              <!-- gallery example  -->
              {% if template_item.location.gallery|length > 0 %}
              <div id="carouselExampleIndicators" class="carousel slide ml_image_gallery"  data-interval="false">
  <ol class="carousel-indicators">
    
    {% if template_item.location.gallery|length > 1 %}
        {% for image in template_item.location.gallery %}   
    		<li data-target="#carouselExampleIndicators" data-slide-to="{{ loop.index }}">
    		<img loading="lazy" data-toggle="tooltip" width="100" data-placement="top" class="ml_static d-block w-100" alt="Gallery image" src="{{image}}" />
    		</li>
        {% endfor %}
    {% endif %}
  </ol>
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img loading="lazy" data-toggle="tooltip" width="500" data-placement="top" title="Map" class="ml_static d-block w-100" alt="Map" src="{{template_item.location.gallery[0]}}" />
    </div>
        
    {% for image in template_item.location.gallery %} 
    
    <div class="carousel-item">
      <img loading="lazy" data-toggle="tooltip" width="100" data-placement="top" class="ml_static d-block w-100" alt="Gallery image" src="{{image}}" />
    </div>
    
    {% endfor %}
  </div>
  
</div>
{% endif %}
              
           
           </div>
         </div>
         <!-- end top row --><!-- newsletter -->          
         <div class="card text-white bg-secondary my-5 py-4 text-center">
            <div class="card-body">     </div>
            <!-- end newsletter card body -->
         </div>
         <!-- newsletter -->          
         <div class="row">
            <div class="col-lg-7">
               <p>{{template_item.location.description|raw}}</p>
            </div>
            <!-- /.col-lg-8 -->          <!-- /.col-md-4 -->
         </div>
         <!-- /.row -->          
         <div class="row">
            <div class="col-lg-12">
               <h3 class="text-center">Categories</h3>
               <div class="row">
                  {% for tagid in template_item.location.tagidlist %}   
                  <div class="col-4">
                     <div class="card h-100">
                        <!--  Example category image
                        <img alt="{{ template_item.ml_taglist[tagid].name }}" class="card-img-top" src="{{ template_item.ml_taglist[tagid].tag_image }}" />     
						--> 
                        <div class="card-body">
                           <h6 class="card-title">{{ template_item.ml_taglist[tagid].name }}</h6>
                        </div>
                        <div class="card-footer">{% if template_item.ml_taglist[tagid].category_link %} <a class="btn btn-primary btn-sm" href="{{ template_item.ml_taglist[tagid].category_link|raw }}">More Info</a> {% endif %}</div>
                     </div>
                  </div>
                  {% endfor %}
               </div>
            </div>        
            <!-- /.col-md-4 -->
         </div>
         <!-- /.row --><!-- careers -->          
         <div class="card text-white bg-secondary my-5 py-4 text-center">
            <div class="card-body"><strong>Banner Ad</strong> <a class="btn btn-secondary" href="">Click Here</a></div>
         </div>
         <!-- careers -->          
         <h2 class="text-center">Nearby Locations</h2>
         <div class="row">
            {% for nearby in template_item.nearby %}     
            <div class="col-4 border">
               <h4><a href="{{nearby.staticlink}}">{{nearby.name}}</a></h4>
               <p>{{nearby.address}} {{nearby.address2}}<br />     {{nearby.city}}, {{nearby.state}}<br />     {{nearby.postalcode}}<br />     {{nearby.phone}}</p>
              <div>
                
              
               <img class="img-fluid map_mobile" src="/index.php?option=com_locator&task=tools.createstaticimage&format=raw&url=pin-m-marker+FF6A67({{nearby.lng}},{{nearby.lat}})&lng={{nearby.lng}}&lat={{nearby.lat}}&zoom=16&width=250&height=250&density=@2x&style=light-v10" alt="{{nearby.name}}"/>
                </div>
            </div>
            {% endfor %}
         </div>
         <!-- /.row -->
      </div>
      <!-- /.container --><!-- Footer -->          
      <footer class="py-5 bg-dark">
      <div class="container">
         <p class="m-0 text-center text-white">Copyright &copy; {{template_item.interfacename}} {{template_item.year}}</p>
      </div>
      <div aria-hidden="true" aria-labelledby="" class="modal_other modal fade" id="ml_locator_modal" role="dialog" tabindex="-1">
         <div class="modal-dialog modal-sm modal-dialog-scrollable modal-dialog-centered-XX" role="document">
            <div class="modal-content">
               <button aria-label="Close" class="close" data-dismiss="modal" type="button"><span class="fa-stack"> <span class="fa fa-circle fa-stack-2x"></span> <span class="fa fa-times fa-stack-1x fa-inverse"></span> </span></button>          
               <div class="modal-body">&nbsp;</div>
               <!-- modal-body -->
            </div>
            <!-- modal-content -->
         </div>
         <!-- modal-dialog -->
      </div>
     </footer>
      <!-- ml_locator_modal this is for other modals which may be enabled at the same time as the details pane. -->  
   </body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console