Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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 id="panodiv">
  <div class="large-12 small-12 columns">
    <div id="panodiv">
      <div id="panel" class="hide-for-small">
        <ul>
          <li class="label"><a class="white" href="#" onclick=fnWinery();>Client Work for Terravant Wine Co.</a></li>
          <li><a class="white" href="#" onclick=fnDestem();>PELLANC&reg; De-Stemmer</a></li>
          <li><a class="white" href="#" onclick=fnDiemmePress();>DIEMME&reg; Basket Press</a></li>
          <li><a class="white" href="#" onclick=fnMEMSTAR();>MEMSTAR De-Alc.</a></li>
          <li><a class="white" href="#" onclick=fnStars();>STARS Cold-Stab.</a></li>
          <li><a class="white" href="#" onclick=fnBottling();>BERTOLASO&reg; Bottling Line</a></li>
          <li><a class="white" href="#" onclick=fnTWR();>Terravant Winery Restaurant</a></li>
          <li class="label"><a class="white" href="#" onclick=fnHeadquarters();>70 Industrial</a></li>
          <li><a class="white" href="#" onclick=fnBarrelRoom70();>Barrel Room 70</a></li>
          <li><a class="white" href="#" onclick=fnOffices();>Our Offices</a></li>
          <li><a class="white" href="#" onclick=fnMaple();>The Maple Room</a></li>
          <li class="label">See more at <a class="fritze" style="color:lime;" href="http://fritze.ninja">Fritze.Ninja/Work</a></li>
        </ul>
      </div>
    </div>
              
            
!

CSS

              
                html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: #FFF;
}

/* a nav panel for jumping to points on the virtual tour */
#panel {
  position: absolute;
  top: 0;
  left: 0;
  -ms-background: rgba(255, 255, 255, .44);
  background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(255, 0, 0, 0));
  background: -moz-linear-gradient(left, rgba(0, 0, 0, 1), rgba(255, 0, 0, 0));
  background: -o-linear-gradient(left, rgba(0, 0, 0, 1), rgba(255, 0, 0, 0));
  background: -webkit-linear-gradient(left, rgba(0, 0, 0, 1), rgba(0, 0, 0, .11));
  z-index: 3
}

#panodiv {
  display: inline-block;
  width: 100%;
/* change the width depending on context, if full-screen is not desired     */
  padding: 0;
  margin: 0;
  list-style-type: none;
  font-size: 13px;
  max-width: 100%;
  float: left;
  padding-bottom: 41%;
/*  bottom padding without specified height allows for device responsiveness. different value for media queries below   */
  z-index: 1
    -webkit-filter: invert(0);
}

.label {
  background-color:  #900;
  color: #FFF
}

#panel li {
  color: #FFF;
  border-bottom: 1px solid #999;
  padding: 7px 10px
}

#panel li:hover {
  background-color: #000;
  background-color: rgba(152, 0, 0, .77)
/* based on color value from client brand standards     */
}

#panodiv li:hover a {
  color: #900
}

#panodiv a:hover {
  color: #FFF
}

a.fritze{color:lime!important;font-weight:400!important;}

@media only screen and (max-width: 23em) {
  #panodiv {
    width: 100%;
    max-width: 100%;
    height: 0;
    float: left;
    padding-bottom: 60%;
    z-index: 1
  }
}

@media only screen and (max-width: 64em) {
  #panodiv {
    width: 100%;
    max-width: 100%;
    height: 0;
    padding-bottom: 77%
  }
}
a {color:#FFF!important;}
a:hover {color:#999!important;}
              
            
!

JS

              
                function initialize() {
    function a() {
        l && (p = "false", window.clearInterval(w), f && panorama.setOptions({
            linksControl: "true"
        }))
    }
    var n = "e-iGreaiThsAAAQfDUDO7Q",
        o = -13,
        e = 13,
        t = 0,
        p = !0,
        m = !1,
        i = !0,
        r = !0,
        s = !1,
        g = !0,
        d = !1,
        l = !1,
        f = !0,
        A = !0;
    if (panoramaOptions = {
            pano: n,
            zoom: t,
            panControl: i,
            zoomControl: r,
            addressControl: m,
            linksControl: s,
            clickToGo: g,
            scrollwheel: d,
            pov: {
                heading: o,
                pitch: e
            }
        }, p) var w = window.setInterval(function() {
        var a = panorama.getLinks(),
            n = panorama.getPov(),
            o = "",
            e = 0;
        if (A) {
            for (; a[e];) parseInt(n.heading) === parseInt(a[e].heading) && (o = a[e].pano), e++;
            "" !== o && (n.heading -= 100, panorama.setPano(o))
        }
        n.heading += .1, panorama.setPov(n)
    }, 20);
    panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions), google.maps.event.addDomListener(document.getElementById("panodiv"), "click", a), panorama.setVisible(!0)
}

function fnWinery() {
    panoramaOptions.pano = "OdFNJSEVmwkAAAQfDUDC3w", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnTerravant() {
    panoramaOptions.pano = "e-iGreaiThsAAAQfDUDO7Q", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnBarrelRoom70() {
    panoramaOptions.pano = "6iVUrn36HQkAAAQfDUDA2w", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnDestem() {
    panoramaOptions.pano = "m8CBQ2PFNekAAAQfDU3big", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnBottling() {
    panoramaOptions.pano = "k64p85qdapEAAAQfDU1xjA", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnDiemmePress() {
    panoramaOptions.pano = "octUxmNgUIYAAAQfDUDO9w", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnMEMSTAR() {
    panoramaOptions.pano = "qgUyfSFfgmYAAAQfDU1xag", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnStars() {
    panoramaOptions.pano = "zIwritP33zkAAAQfDT_6Vg", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnTWR() {
    panoramaOptions.pano = "8EcKSXkoDawAAAQfDUDO7w", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnHeadquarters() {
    panoramaOptions.pano = "mqYgNt8NCeEAAAQfDUDO_Q", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnOffices() {
    panoramaOptions.pano = "xJgo9h4qFTwAAAQfDT_6Vw", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}

function fnMaple() {
    panoramaOptions.pano = "THQafxA_IYIAAAQfDU1xeA", panorama = new google.maps.StreetViewPanorama(document.getElementById("panodiv"), panoramaOptions)
}
var panoramaOptions, panorama = google.maps.StreetViewPanorama;
google.maps.event.addDomListener(window, "load", initialize);
              
            
!
999px

Console