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


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


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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

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="map" id="map"></div>

  <small style="font-size:.3em;color:#ccc;text-transform:uppercase;padding-bottom:10px;display:inline-block;"><b>status:</b> currently not working due to load requests</small><br>
  <span class="hello">Hello Stranger</span>
<p><span class="city-region"></span></p>
               <a onclick="'','POPUP','width=503,height=260,scrollbars=0,resizable=0');return false;" href="#">WHO IS THIS HARUN PEHLIVAN ?</a>


  width: 100%
  height: 100%
  margin: 1em
  font-family: Arial, sans-serif
  background-color: #444
  width: 100%
  max-width: 900px
  height: 500px
  background: none
  margin: 0 auto
  position: absolute
  top: 0
  left: 0
  right: 0
  bottom: 0
  background: rgba(#bada55, 0.9)
  color: darken(#bada55, 40%)

  position: absolute
  top: 50%
  left: 50%
  font-size: 2vw
  transform: translate(-50%, -50%)
    opacity: 1
    visibility: visible
    opacity: 0
    visibility: hidden

  box-sizing: border-box
  width: 100%
  max-width: 300px
  background-color: #fff
  padding: 2em
  text-align: center
  border-top: 8px solid #349EDB
  margin-top: 15%
  margin-left: auto
  margin-right: auto
  font-size: 1.2em
  color: #999
  font-weight: bold
  color: #333
    content: "How's the weather in "
    color: #999
    font-weight: 300
    content: '?'
    color: #999
    font-weight: 300
  font-size: 11px
  text-transform: uppercase
  letter-spacing: 1px
  font-weight: bold
  color: #349EDB



              (function ( $, window, document, undefined ) {

    var pluginName = "currentLocation",
        defaults = {
            propertyName: "value",
            mapOptions : {
                zoom: 5,
                center: new google.maps.LatLng(41.850033, -87.6500523),
                mapTypeId: google.maps.MapTypeId.ROADMAP,
                disableDefaultUI: true,
                styles: [{"featureType":"water","elementType":"geometry","stylers":[{"color":"#bada55"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":60}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]}]
            geo_options : {
                enableHighAccuracy : true, 
                maximumAge         : 30000, 
                timeout            : 27000

    function Plugin ( element, options ) {
        this.element = element;
        this.settings = $.extend( {}, defaults, options );
        this._defaults = defaults;
        this._name = pluginName;;

    $.extend(Plugin.prototype, {
        init: function () {
        createMap: function () {
            var _this = this;
     = new google.maps.Map(document.getElementById('map'), _this.settings.mapOptions);

        getLocation: function () {
            var _this = this;
            if ("geolocation" in navigator) {
                navigator.geolocation.getCurrentPosition(function(position) {
                    _this.repositionMap(position.coords.latitude, position.coords.longitude);
            } else {
        watchLocation: function () {
            var _this = this,
                geo_success = function (position) {
                    _this.repositionMap(position.coords.latitude, position.coords.longitude);
                geo_error = function () {
                    console.warn('Unable to get location');

            _this.locationWatcher = navigator.geolocation.watchPosition(geo_success, geo_error, _this.geo_options);
        repositionMap: function (lat, long) {
            var _this = this;
   google.maps.LatLng(lat, long));
            _this.marker = new google.maps.Marker({
                position: new google.maps.LatLng(lat, long),

    $.fn[ pluginName ] = function ( options ) {
        this.each(function() {
            if ( !$.data( this, "plugin_" + pluginName ) ) {
                $.data( this, "plugin_" + pluginName, new Plugin( this, options ) );

        return this;

})( jQuery, window, document );