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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <div class="alert alert-warning">
  Irma is currently moving over warm, open waters towards the Bahamas and Turks and Caicos. As a definite path is narrowed down, more live streams will be added as they are found.
</div>
<div class="parent">
  
  <div class="child">
    <h3>Grand Turk (Turks & Caicos)</h3>
    <h4>
      &nbsp;
    </h4>
    <div class="videoWrapper">
      <iframe class="facebook" src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fjeffrey.josephsaintage%2Fvideos%2F1444877955605846%2F&show_text=0&width=267" width="267" height="476" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe>
    </div>
  </div>
  
  <div class="child">
    <h3>Ocean Club Resort (Turks & Caicos)</h3>
    <h4>
      &nbsp;
    </h4>
    <div class="videoWrapper">
      <iframe width="100%" src="https://www.youtube.com/embed/rkZ8AlzX7e0?rel=0&amp;controls=1;autoplay=1;mute=1" frameborder="0" allowfullscreen></iframe>
    </div>
  </div>
  
  <div class="child">
    <div id="hurricane"></div>
  </div>
  
  <div class="child">
    <h3>Irma Tracking</h3>
    <h4>
      <a href="https://www.reddit.com/message/compose/?to=alex_neises&subject=Live+Feed+Issues">Message /u/alex_neises if feed cuts out or isn't helpful.</a>
    </h4>
    </h4>
    <div class="videoWrapper">
      <iframe width="100%" src="https://www.youtube.com/embed/cgjbGNE6NHE?rel=0&amp;controls=1;autoplay=1;mute=1" frameborder="0" allowfullscreen></iframe>
  </div>
  </div>
  <div class="child">
    <h3>Antigua and Barbuda Update (ABS Feed)</h3>
    <h4>
      <a href="https://www.reddit.com/message/compose/?to=alex_neises&subject=Live+Feed+Issues">Message /u/alex_neises if feed cuts out or isn't helpful.</a>
    </h4>
    <div class="videoWrapper">
      <iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fabstvradio%2Fvideos%2F1505789676186918%2F&show_text=0" width="100%"></iframe>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  background: #000000;
}

a {
  line-height: inherit;
  color: #5779ba;
  text-decoration: none;
  cursor: pointer;
}

h3, h4 {
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: .5rem;
  font-family: Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;
  font-style: normal;
  font-weight: 400;
  color: #FAFAFA;
  text-rendering: optimizeLegibility;
}

h3 {
  font-size: 1.9375rem;
}

h4 {
  font-size: 1.5625rem;
}

.parent {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.child {
  flex-basis: 48%;
  text-align: center;
  margin-bottom: 25px;
}

.videoWrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
}

.videoWrapper iframe:not(.facebook) {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.videoWrapper iframe.facebook) {
	position: absolute;
	top: 0;
	left: 0;
	width: auto;
	height: 100%;
}

.alert {
  width: 50%;
  padding: 0.75rem 1.25rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  margin-top: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-warning {
  color: #856404;
  background-color: #FFF3CD;
  border-color: #FFEEBA;
}
              
            
!

JS

              
                function fn60sec() {
  ts = Math.round((new Date()).getTime() / 1000);
  $("#turks").html("<img src='http://www.grandturkcc.com/images/webcam/webcam/current.jpg?" + ts + "'/>");
}

function fn5min() {
  ts = Math.round((new Date()).getTime() / 1000);
  $("#hurricane").html("<img width='100%' height='auto' src='http://rammb.cira.colostate.edu/ramsdis/online/images/latest/goes-16/mesoscale_01_band_02_sector_05.gif?" + ts + "'/>");
}

fn60sec();
setInterval(fn60sec, 60 * 1000);
fn5min();
setInterval(fn5min, 5 * 60 * 1000);
              
            
!
999px

Console