Advertisement
Robruizr

Untitled

Feb 21st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.66 KB | None | 0 0
  1. <!--AIzaSyDpbN1WlA7B4BoJ6vCYSD-LsVW6CHJtW5U-->
  2. <!-- Google API Key -->
  3.  
  4. <!DOCTYPE html>
  5. <html>
  6.  
  7. <head>
  8.     <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  9.     <!-- jQuery library -->
  10.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  11.     <!-- Latest compiled JavaScript -->
  12.     <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  13.     <title> Distrito Tec </title>
  14.     <style>
  15.         html,
  16.         body {
  17.             height: 100%;
  18.         }
  19.        
  20.         body {
  21.             background-color: #CCC;
  22.             margin: 0;
  23.         }
  24.        
  25.         #map-outer {
  26.             height: 440px;
  27.             padding: 20px;
  28.             border: 2px solid #CCC;
  29.             margin-bottom: 20px;
  30.             background-color: #FFF
  31.         }
  32.        
  33.         #map-container {
  34.             height: 400px
  35.         }
  36.        
  37.         @media all and (max-width: 991px) {
  38.             #map-outer {
  39.                 height: 650px
  40.             }
  41.             #map {
  42.                 margin: 0;
  43.                 padding: 0;
  44.                 height: 50%;
  45.             }
  46.         }
  47.         #black_background {
  48.             background-color: black;
  49.             width:795px;
  50.             height:550px;
  51.             margin:0;
  52.             background-image:url("dtec.PNG");
  53.         }
  54.        
  55.     </style>
  56. </head>
  57.  
  58. <body>
  59.     <div class="container">
  60.         <div class="jumbotron">
  61.             <h1> Distrito Tec - Siendo Agentes de Cambio </h1>
  62.         </div>
  63.     </div>
  64.    
  65.     <div class="container">
  66.         <div class="col-sm-12">
  67.             <div id="black_background">
  68.         </div>
  69.         </div>
  70.     </div>
  71.     <div class="container">
  72.         <div class="row">
  73.             <div id="map" class="col-sm-8">
  74.                 <div id="infoDistrito" class="col-sm-4">
  75.                 </div>
  76.             </div>
  77.         </div>
  78.     </div>
  79.     <footer class="container">
  80.         <p>Footer Text</p>
  81.     </footer>
  82. </body>
  83.  
  84. <script>
  85.     var panorama;
  86.     var panorama2;
  87.  
  88.     function initialize() {
  89.         panorama = new google.maps.StreetViewPanorama(
  90.             document.getElementById('map'), {
  91.                 position: {
  92.                     lat: 25.6526088,
  93.                     lng: -100.2910001
  94.                 },
  95.                 pov: {
  96.                     heading: 165,
  97.                     pitch: 0
  98.                 },
  99.                 zoom: 1
  100.             });
  101.     }
  102.  
  103.     $(window).resize(function () {
  104.         var h = $(window).height(),
  105.             offsetTop = 190; // Calculate the top offset
  106.  
  107.         $('#map').css('height', (h - offsetTop));
  108.     }).resize();
  109. </script>
  110. <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDpbN1WlA7B4BoJ6vCYSD-LsVW6CHJtW5U&callback=initialize" async defer>
  111. </script>
  112.  
  113. <script src="raphael.js"></script>
  114. <script src="my_raphael_svg.js"></script>
  115. <script>
  116.     $(document).ready(function () {
  117.         $("svg").attr("id", "distrito_canvas");
  118.         $("#distrito_canvas").appendTo("#black_background");
  119.         $("path").css("opacity", "0.5");
  120.         $("path").hover(function () {
  121.             $(this).css("opacity", 0.8);
  122.             $(this).css("stroke-width", 2);
  123.             $(this).css("stroke", "222222");
  124.             $(this).css("cursor", "pointer");
  125.         });
  126.         $("path").mouseout(function () {
  127.             $(this).css("opacity", 0.5);
  128.             $(this).css("stroke-width", 0);
  129.             $(this).css("stroke", "000000");
  130.             $(this).css("cursor", "auto");
  131.         });
  132.         var idk = rsr.getById("la_florida");
  133.  
  134.     });
  135. </script>
  136.  
  137. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement