Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <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>
            
          
!
            
              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;
}
            
          
!
            
              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
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console