Advertisement
Robruizr

Untitled

Feb 21st, 2016
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 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. <script src="http://maps.googleapis.com/maps/api/js"></script>
  14. <title> Distrito Tec </title>
  15. <style>
  16. html,
  17. body {
  18. height: 100%;
  19. }
  20.  
  21. body {
  22. background-color: #FAFAFA;
  23. margin: 0;
  24. }
  25.  
  26. #map-outer {
  27. height: 440px;
  28. padding: 20px;
  29. border: 2px solid #CCC;
  30. margin-bottom: 20px;
  31. background-color: #FFF
  32. }
  33.  
  34. #map-container {
  35. height: 400px
  36. }
  37.  
  38. @media all and (max-width: 991px) {
  39. #map-outer {
  40. height: 650px
  41. }
  42. #map {
  43. margin: 0;
  44. padding: 0;
  45. height: 50%;
  46. }
  47. }
  48.  
  49. #black_background {
  50. background-color: black;
  51. width: 795px;
  52. height: 550px;
  53. margin: 0;
  54. background-image: url("dtec.PNG");
  55. }
  56.  
  57. #footer {
  58. background-color: black;
  59. padding: 30px;
  60. border-top-left-radius: 2em;
  61. border-top-right-radius: 2em;
  62. }
  63. </style>
  64. </head>
  65.  
  66. <body>
  67.  
  68. <div class="jumbotron" style="background-color:black;">
  69. <div class="row text-center">
  70. <span class="col-sm-3 col-md-3" style="position:relative; top:25px;">
  71. <img src="http://distritotec.itesm.mx/wp-content/uploads/2014/02/DistritoTec_Logo_1.png">
  72. </span>
  73. <span class="col-sm-8 col-md-8 ">
  74. <h1 style="color:#FAFAFA"> Siendo Agentes de Cambio </h1>
  75. </span>
  76.  
  77. </div>
  78. </div>
  79.  
  80. <div class="row">
  81.  
  82. <div class="col-sm-7 col-md-offset-1" style="padding-left:0">
  83. <div id="black_background">
  84. </div>
  85. </div>
  86.  
  87. </div>
  88. <div id="map_section">
  89. <div class="container">
  90. <div class="row">
  91. <div id="map" class="col-sm-8">
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <footer class="container">
  97. <div id="footer">
  98. </div>
  99. </footer>
  100. </body>
  101.  
  102. <script>
  103. var panorama;
  104. var panorama2;
  105.  
  106. function initialize() {
  107. panorama = new google.maps.StreetViewPanorama(
  108. document.getElementById('map'), {
  109. position: {
  110. lat: 25.6526088,
  111. lng: -100.2910001
  112. },
  113. pov: {
  114. heading: 165,
  115. pitch: 0
  116. },
  117. zoom: 1
  118. });
  119. }
  120. </script>
  121. <script src="raphael.js"></script>
  122. <script src="my_raphael_svg.js"></script>
  123.  
  124.  
  125. <script>
  126. $(document).ready(function () {
  127. $("svg").attr("id", "distrito_canvas");
  128. $("#distrito_canvas").appendTo("#black_background");
  129. $("path").css("opacity", "0.5");
  130. $("path").hover(function () {
  131. $(this).css("opacity", 0.8);
  132. $(this).css("stroke-width", 2);
  133. $(this).css("stroke", "222222");
  134. $(this).css("cursor", "pointer");
  135. });
  136. $("path").mouseout(function () {
  137. $(this).css("opacity", 0.5);
  138. $(this).css("stroke-width", 0);
  139. $(this).css("stroke", "000000");
  140. $(this).css("cursor", "auto");
  141. });
  142. $("path").each(function (index) {
  143. $(this).attr("id", index);
  144. });
  145.  
  146. });
  147. </script>
  148. <script src="por_zona.js"></script>
  149.  
  150. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement