cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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 xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<link type="text/css" rel="stylesheet" href="//dfqhxdzn0rfoe.cloudfront.net/themes/board/css/main.min.css?353">
<script charset="utf-8" type="text/javascript" src="//dfqhxdzn0rfoe.cloudfront.net/scripts/lib/require.js"></script> 
<script charset="utf-8" type="text/javascript" src="//dfqhxdzn0rfoe.cloudfront.net/build/sites.js?353"></script>
  
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false">
</script><script src="https://maps.gstatic.com/maps-api-v3/api/js/21/9a/main.js"></script>

<script type="text/javascript">

$(document).ready(function(){
var geocoder;
var map;
var address = $('.member_field_city .member_field_value .value').html();
  /**alert (address);**/

function initialize() {
  geocoder = new google.maps.Geocoder();
  var latlng = new google.maps.LatLng(-34.397, 150.644);
  var myOptions = {
    zoom: 8,
    center: latlng,
    mapTypeControl: true,
    mapTypeControlOptions: {
      style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
    },
    navigationControl: true,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  if (geocoder) {
    geocoder.geocode({
      'address': address
    }, function(results, status) {
      if (status == google.maps.GeocoderStatus.OK) {
        if (status != google.maps.GeocoderStatus.ZERO_RESULTS) {
          map.setCenter(results[0].geometry.location);

          var infowindow = new google.maps.InfoWindow({
            content: '&lt;b&gt;' + address + '&lt;/b&gt;',
            size: new google.maps.Size(150, 50)
          });

          var marker = new google.maps.Marker({
            position: results[0].geometry.location,
            map: map,
            title: address
          });
          google.maps.event.addListener(marker, 'click', function() {
            infowindow.open(map, marker);
          });

        } else {
          alert("No results found");
        }
      } else {
        alert("Geocode was not successful for the following reason: " + status);
      }
    });
  }
}
google.maps.event.addDomListener(window, 'load', initialize);

});
  </script>
 </head>
  <body class="public desktop" id="page-profile">
    <div id="content_wrapper">
      <div class="row-fluid" id="content">
        
<script type="text/javascript">
 
$(document).ready(function(){
	
    var header_image = $('.member_field_headerphoto .member_field_value .value').html();
  /* alert(header_image); */
  
if(header_image == null ){

    document.getElementById('header_image').style.background = 'black';

    }
  
    else 
    document.getElementById('header_image').style.background = 'url(' + header_image + ')  no-repeat scroll center center / cover ';
    document.getElementById('header_image').style.height = '400px';
    document.getElementById('header_image').style.margin = '-40px';

});

</script>

<div id="page_profile">
  <div id="header_image" style="background: transparent url(&quot;https://pbs.twimg.com/profile_banners/185973866/1398584911/1500x500&quot;) no-repeat scroll center center / cover ; height: 400px; margin: -40px;">
  </div>
    <div class="profile">
    <div class="left">
              <div class="member_photo">
                    <a href="robinoutrilla">
                <img alt="" src="https://se5revolution.s3.amazonaws.com/uploads/483/7209.jpg">
            </a>
            </div>


    </div>
    <div class="right">
              <div data-id="2428" class="member_name hovercard-anchor">
        <a href="robinoutrilla">
            Robin        </a>
        <span class="member-title-company label"><span class="member-title">Funtional Expert</span> <span class="member-title-sep">at</span> <span class="member-company">Cegedim Relationship Management</span></span>    </div>

          <div class="member_options">
                        <div data-wrapper="" data-following-total="1" data-follower-total="1" data-following="true" data-follow-view="profile" data-user-id="2428" class="btn-group ui-follow">

              <a class="btn btn-small disabled ui-follow-unfollow" href="javascript:void(0)"><span class="text">Following</span></a>
      
              <button data-toggle="dropdown" class="btn btn-small dropdown-toggle">
          <span class="caret"></span>
        </button>
        <ul class="dropdown-menu  unfollow">
                                  <li>
              <a data-id="2428" class="ui-message-compose-activator" href="javascript:void(0);">Send Private Message</a>
            </li>
                        <li>
              <a class="user_report" data-user-id="2428" href="javascript:void(0);">Report this Person</a>
            </li>
                  </ul>
            </div>
                  <ul class="member_links">
                            <li class="website">
                    <a href="http://appfarma.com" target="_blank"> </a>
                </li>
                                        <li class="facebook">
                    <a href="https://www.facebook.com/1447352131" target="_blank"> </a>
                </li>
                                        <li class="twitter">
                    <a href="https://www.twitter.com/robinoutrilla" target="_blank"> </a>
                </li>
                        <li class="feed">
                <a href="profile/2428/feed.rss" target="_blank"></a>
            </li>
        </ul>
    </div>

          
    <ul class="member_fields">
        
                    <li>
                <span class="member_field_label">Gender</span>
          <span class="member_field_value">Male</span>
            </li>
        
                    <li>
                <span class="member_field_label">Country</span>
          <span class="member_field_value">Spain</span>
            </li>
        
        
                                <li class="member_field_headerphoto">
          <span class="member_field_label">Header Photo</span>
          <span data-select="https://pbs.twimg.com/profile_banners/185973866/1398584911/1500x500" data-id="5251" data-type="text" data-default="false" class="member_field_value">
            <div class="value">
                https://pbs.twimg.com/profile_banners/185973866/1398584911/1500x500            </div>

              
                        </span>
            </li>
                                        <li class="member_field_city">
          <span class="member_field_label">City</span>
          <span data-select="3390 Valmont Road, Suite 214 Boulder, CO 80301" data-id="5253" data-type="text" data-default="false" class="member_field_value">
            <div class="value">
                3390 Valmont Road, Suite 214 Boulder, CO 80301            </div>

              
                        </span>
            </li>
                    </ul>

          <ul class="member_stats">
                    <li class="followers">
          <span class="followers_count">
            <i class="icon-group"></i>
                                <a data-count="1" data-user-id="2428" class="ui-follower-list" href="javascript:void(0);"><span class="num ui-follow-followers-num">1</span><span class="lbl"> follower</span></a>
                        </span>
            </li>
            <li class="following">
          <span class="following_count">
            <i class="icon-user"></i>
                                <a data-count="1" data-user-id="2428" class="ui-following-list" href="javascript:void(0);"><span class="num">1</span><span class="lbl"> following</span></a>
                        </span>
            </li>
                <li class="posts">
        <span class="following_count">
          <i class="icon-pencil"></i>
          <span class="num">94</span> posts        </span>
        </li>
        <li class="likes_received">
        <span class="likes_received_count">
          <i class="icon-thumbs-up"></i>
          <span class="num">134</span> likes received
        </span>
        </li>
        <li class="comments_received">
        <span class="comments_received_count">
          <i class="icon-comment"></i>
          <span class="num">4</span> comments received
        </span>
        </li>
        <li class="score">
        <span class="score_count">
          <i class="icon-star"></i>
                        <span class="num">143</span> points        </span>
        </li>
    </ul>

    </div>

<div id="map"> 
<div id="map_canvas" ></div>
</div>

<div id="fb-root" class=" fb_reset"><div style="position: absolute; top: -10000px; height: 0px; width: 0px;"><div></div></div></div></body></html>
            
          
!
            
              /* 
Add this is your Custom CSS in order to see the map
*/
#map_canvas 
{
  height: 100%;
  width: 100%;
}

#map
{
  height: 228px;
  margin: -228px auto 0 750px;
  position: absolute;
  width: 250px;
}

#page_profile .profile .member_photo > a > img {
  max-height: 350px;
  max-width: 226px;
}

.member_field_headerphoto {
  display: none;
}

            
          
!
999px
Loading ..................

Console