block by andrewxhill ae73aa593d9a258f785a

template for harvard workshop

Full Screen

index.html

<!DOCTYPE html>
<html>
  <head>
    <title>CartoDB Workshop | CartoDB.js</title>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <link rel="shortcut icon" href="//cartodb.com/assets/favicon.ico" />
    <style>
      html, body, #map {
        height: 100%;
        padding: 0;
        margin: 0;
      }
 
      #btn {
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 0;
      }
 
      #btn ul {
        padding: 0; margin: 0;
        list-style-type: none;
      }
 
      #btn li {
        border-bottom: 1px solid #999;
        padding: 15px 30px;
        font-family: "Helvetica", Arial;
        font-size: 13px;
        color: #444;
        cursor: auto;
      }
 
      #btn li:hover {
        background-color: #eee;
        cursor: pointer;
      }
 
      #btn li.selected {
        background-color: #fff;
      }
    </style>
    <link rel="stylesheet" href="//libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
    <!--[if lte IE 8]>
      <link rel="stylesheet" href="//libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.ie.css" />
    <![endif]-->
  </head>
  <body>
    <div id="map"></div>
    <div id="btn" class="cartodb-infobox">
      <ul>
        <li id="first" class="selected">Do Something</li>
      </ul>
    </div>
    
    <!-- include cartodb.js library -->
    <script src="//libs.cartocdn.com/cartodb.js/v3/cartodb.js"></script>

    <script>
      function main() {
        // Add your code here
        
        
      }
      // you could use $(window).load(main);
      window.onload = main;
    </script>
  </body>
</html>