Advertisement
Robruizr

Untitled

Feb 21st, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.83 KB | None | 0 0
  1. $(document).ready(function(){
  2. function colMexico() {
  3. var panorama;
  4. panorama = new google.maps.StreetViewPanorama(
  5. document.getElementById('map'), {
  6. position: {
  7. lat: 25.6448721,
  8. lng: -100.2954885
  9. },
  10. pov: {
  11. heading: 165,
  12. pitch: 0
  13. },
  14. zoom: 1
  15. });
  16.  
  17.  
  18. $(window).resize(function () {
  19. var h = $(window).height(),
  20. offsetTop = 190; // Calculate the top offset
  21.  
  22. $('#map').css('height', (h - offsetTop));
  23. }).resize();
  24. }
  25.  
  26. function colTec() {
  27. var panorama;
  28. panorama = new google.maps.StreetViewPanorama(
  29. document.getElementById('map'), {
  30. position: {
  31. lat: 25.6499818,
  32. lng: -100.2944567
  33. },
  34. pov: {
  35. heading: 165,
  36. pitch: 0
  37. },
  38. zoom: 1
  39. });
  40.  
  41. $(window).resize(function () {
  42. var h = $(window).height(),
  43. offsetTop = 190; // Calculate the top offset
  44.  
  45. $('#map').css('height', (h - offsetTop));
  46. }).resize();
  47. }
  48.  
  49. function colAltavista() {
  50. var panorama;
  51. panorama = new google.maps.StreetViewPanorama(
  52. document.getElementById('map'), {
  53. position: {
  54. lat: 25.6455769,
  55. lng: -100.2910731
  56. },
  57. pov: {
  58. heading: 165,
  59. pitch: 0
  60. },
  61. zoom: 1
  62. });
  63.  
  64. $(window).resize(function () {
  65. var h = $(window).height(),
  66. offsetTop = 190; // Calculate the top offset
  67.  
  68. $('#map').css('height', (h - offsetTop));
  69. }).resize();
  70. }
  71.  
  72. function colRoma() {
  73. var panorama;
  74. panorama = new google.maps.StreetViewPanorama(
  75. document.getElementById('map'), {
  76. position: {
  77. lat: 25.654753,
  78. lng: -100.297327
  79. },
  80. pov: {
  81. heading: 165,
  82. pitch: 0
  83. },
  84. zoom: 1
  85. });
  86.  
  87. $(window).resize(function () {
  88. var h = $(window).height(),
  89. offsetTop = 190; // Calculate the top offset
  90.  
  91. $('#map').css('height', (h - offsetTop));
  92. }).resize();
  93. }
  94.  
  95. function colFlorida() {
  96. var panorama;
  97. panorama = new google.maps.StreetViewPanorama(
  98. document.getElementById('map'), {
  99. position: {
  100. lat: 25.6600207,
  101. lng: -100.2948236
  102. },
  103. pov: {
  104. heading: 165,
  105. pitch: 0
  106. },
  107. zoom: 1
  108. });
  109.  
  110. $(window).resize(function () {
  111. var h = $(window).height(),
  112. offsetTop = 190; // Calculate the top offset
  113.  
  114. $('#map').css('height', (h - offsetTop));
  115. }).resize();
  116. }
  117.  
  118. function colResFlor() {
  119. var panorama;
  120. panorama = new google.maps.StreetViewPanorama(
  121. document.getElementById('map'), {
  122. position: {
  123. lat: 25.6584667,
  124. lng: -100.2916545
  125. },
  126. pov: {
  127. heading: 165,
  128. pitch: 0
  129. },
  130. zoom: 1
  131. });
  132.  
  133. $(window).resize(function () {
  134. var h = $(window).height(),
  135. offsetTop = 190; // Calculate the top offset
  136.  
  137. $('#map').css('height', (h - offsetTop));
  138. }).resize();
  139. }
  140.  
  141. function colCerro() {
  142. var panorama;
  143. panorama = new google.maps.StreetViewPanorama(
  144. document.getElementById('map'), {
  145. position: {
  146. lat: 25.6561476,
  147. lng: -100.290805
  148. },
  149. pov: {
  150. heading: 165,
  151. pitch: 0
  152. },
  153. zoom: 1
  154. });
  155.  
  156. $(window).resize(function () {
  157. var h = $(window).height(),
  158. offsetTop = 190; // Calculate the top offset
  159.  
  160. $('#map').css('height', (h - offsetTop));
  161. }).resize();
  162. }
  163.  
  164. function colVillaFlorida() {
  165. var panorama;
  166. panorama = new google.maps.StreetViewPanorama(
  167. document.getElementById('map'), {
  168. position: {
  169. lat: 25.6588606,
  170. lng: -100.2889578
  171. },
  172. pov: {
  173. heading: 165,
  174. pitch: 0
  175. },
  176. zoom: 1
  177. });
  178.  
  179. $(window).resize(function () {
  180. var h = $(window).height(),
  181. offsetTop = 190; // Calculate the top offset
  182.  
  183. $('#map').css('height', (h - offsetTop));
  184. }).resize();
  185. }
  186.  
  187. function colBuenosAires() {
  188. var panorama;
  189. panorama = new google.maps.StreetViewPanorama(
  190. document.getElementById('map'), {
  191. position: {
  192. lat: 25.6593136,
  193. lng: -100.283136
  194. },
  195. pov: {
  196. heading: 165,
  197. pitch: 0
  198. },
  199. zoom: 1
  200. });
  201.  
  202. $(window).resize(function () {
  203. var h = $(window).height(),
  204. offsetTop = 190; // Calculate the top offset
  205.  
  206. $('#map').css('height', (h - offsetTop));
  207. }).resize();
  208. }
  209.  
  210. function colRevolucion() {
  211. var panorama;
  212. panorama = new google.maps.StreetViewPanorama(
  213. document.getElementById('map'), {
  214. position: {
  215. lat: 25.6578033,
  216. lng: -100.2813863
  217. },
  218. pov: {
  219. heading: 165,
  220. pitch: 0
  221. },
  222. zoom: 1
  223. });
  224.  
  225. $(window).resize(function () {
  226. var h = $(window).height(),
  227. offsetTop = 190; // Calculate the top offset
  228.  
  229. $('#map').css('height', (h - offsetTop));
  230. }).resize();
  231. }
  232.  
  233. function colVillaEstadio() {
  234. var panorama;
  235. panorama = new google.maps.StreetViewPanorama(
  236. document.getElementById('map'), {
  237. position: {
  238. lat: 25.6544688,
  239. lng: -100.2839185
  240. },
  241. pov: {
  242. heading: 165,
  243. pitch: 0
  244. },
  245. zoom: 1
  246. });
  247.  
  248. $(window).resize(function () {
  249. var h = $(window).height(),
  250. offsetTop = 190; // Calculate the top offset
  251.  
  252. $('#map').css('height', (h - offsetTop));
  253. }).resize();
  254. }
  255.  
  256. function colEstadio() {
  257. var panorama;
  258. panorama = new google.maps.StreetViewPanorama(
  259. document.getElementById('map'), {
  260. position: {
  261. lat: 25.6541985,
  262. lng: -100.281973
  263. },
  264. pov: {
  265. heading: 165,
  266. pitch: 0
  267. },
  268. zoom: 1
  269. });
  270.  
  271. $(window).resize(function () {
  272. var h = $(window).height(),
  273. offsetTop = 190; // Calculate the top offset
  274.  
  275. $('#map').css('height', (h - offsetTop));
  276. }).resize();
  277. }
  278.  
  279. function colLadrillera() {
  280. var panorama;
  281. panorama = new google.maps.StreetViewPanorama(
  282. document.getElementById('map'), {
  283. position: {
  284. lat: 25.6553777,
  285. lng: -100.2767622
  286. },
  287. pov: {
  288. heading: 165,
  289. pitch: 0
  290. },
  291. zoom: 1
  292. });
  293.  
  294. $(window).resize(function () {
  295. var h = $(window).height(),
  296. offsetTop = 190; // Calculate the top offset
  297.  
  298. $('#map').css('height', (h - offsetTop));
  299. }).resize();
  300. }
  301.  
  302. function colLTH() {
  303. var panorama;
  304. panorama = new google.maps.StreetViewPanorama(
  305. document.getElementById('map'), {
  306. position: {
  307. lat: 25.6536912,
  308. lng: -100.2789162
  309. },
  310. pov: {
  311. heading: 165,
  312. pitch: 0
  313. },
  314. zoom: 1
  315. });
  316.  
  317. $(window).resize(function () {
  318. var h = $(window).height(),
  319. offsetTop = 190; // Calculate the top offset
  320.  
  321. $('#map').css('height', (h - offsetTop));
  322. }).resize();
  323. }
  324.  
  325. function colPrim3er() {
  326. var panorama;
  327. panorama = new google.maps.StreetViewPanorama(
  328. document.getElementById('map'), {
  329. position: {
  330. lat: 25.6517583,
  331. lng: -100.2775446
  332. },
  333. pov: {
  334. heading: 165,
  335. pitch: 0
  336. },
  337. zoom: 1
  338. });
  339.  
  340. $(window).resize(function () {
  341. var h = $(window).height(),
  342. offsetTop = 190; // Calculate the top offset
  343.  
  344. $('#map').css('height', (h - offsetTop));
  345. }).resize();
  346. }
  347.  
  348. function colPrim1er() {
  349. var panorama;
  350. panorama = new google.maps.StreetViewPanorama(
  351. document.getElementById('map'), {
  352. position: {
  353. lat: 25.6506081,
  354. lng: -100.2801297
  355. },
  356. pov: {
  357. heading: 165,
  358. pitch: 0
  359. },
  360. zoom: 1
  361. });
  362.  
  363. $(window).resize(function () {
  364. var h = $(window).height(),
  365. offsetTop = 190; // Calculate the top offset
  366.  
  367. $('#map').css('height', (h - offsetTop));
  368. }).resize();
  369. }
  370.  
  371. function colNarvarte() {
  372. var panorama;
  373. panorama = new google.maps.StreetViewPanorama(
  374. document.getElementById('map'), {
  375. position: {
  376. lat: 25.6510025,
  377. lng: -100.283025
  378. },
  379. pov: {
  380. heading: 165,
  381. pitch: 0
  382. },
  383. zoom: 1
  384. });
  385.  
  386. $(window).resize(function () {
  387. var h = $(window).height(),
  388. offsetTop = 190; // Calculate the top offset
  389.  
  390. $('#map').css('height', (h - offsetTop));
  391. }).resize();
  392. }
  393.  
  394. function colJardinesAlt() {
  395. var panorama;
  396. panorama = new google.maps.StreetViewPanorama(
  397. document.getElementById('map'), {
  398. position: {
  399. lat: 25.6471919,
  400. lng: -100.2820764
  401. },
  402. pov: {
  403. heading: 165,
  404. pitch: 0
  405. },
  406. zoom: 1
  407. });
  408.  
  409. $(window).resize(function () {
  410. var h = $(window).height(),
  411. offsetTop = 190; // Calculate the top offset
  412.  
  413. $('#map').css('height', (h - offsetTop));
  414. }).resize();
  415. }
  416.  
  417. function colVallePrim() {
  418. var panorama;
  419. panorama = new google.maps.StreetViewPanorama(
  420. document.getElementById('map'), {
  421. position: {
  422. lat: 25.6480358,
  423. lng: -100.2821139
  424. },
  425. pov: {
  426. heading: 165,
  427. pitch: 0
  428. },
  429. zoom: 1
  430. });
  431.  
  432. $(window).resize(function () {
  433. var h = $(window).height(),
  434. offsetTop = 190; // Calculate the top offset
  435.  
  436. $('#map').css('height', (h - offsetTop));
  437. }).resize();
  438. }
  439.  
  440. function colRinconAlt() {
  441. var panorama;
  442. panorama = new google.maps.StreetViewPanorama(
  443. document.getElementById('map'), {
  444. position: {
  445. lat: 25.64667,
  446. lng: -100.2835729
  447. },
  448. pov: {
  449. heading: 165,
  450. pitch: 0
  451. },
  452. zoom: 1
  453. });
  454.  
  455. $(window).resize(function () {
  456. var h = $(window).height(),
  457. offsetTop = 190; // Calculate the top offset
  458.  
  459. $('#map').css('height', (h - offsetTop));
  460. }).resize();
  461. }
  462.  
  463. function colTecnologico() {
  464. var panorama;
  465. panorama = new google.maps.StreetViewPanorama(
  466. document.getElementById('map'), {
  467. position: {
  468. lat: 25.6533637,
  469. lng: -100.2895531
  470. },
  471. pov: {
  472. heading: 165,
  473. pitch: 0
  474. },
  475. zoom: 1
  476. });
  477.  
  478. $(window).resize(function () {
  479. var h = $(window).height(),
  480. offsetTop = 190; // Calculate the top offset
  481.  
  482. $('#map').css('height', (h - offsetTop));
  483. }).resize();
  484. }
  485.  
  486. function colNuevaEspana() {
  487. var panorama;
  488. panorama = new google.maps.StreetViewPanorama(
  489. document.getElementById('map'), {
  490. position: {
  491. lat: 25.6450139,
  492. lng: -100.2853919
  493. },
  494. pov: {
  495. heading: 165,
  496. pitch: 0
  497. },
  498. zoom: 1
  499. });
  500.  
  501. $(window).resize(function () {
  502. var h = $(window).height(),
  503. offsetTop = 190; // Calculate the top offset
  504.  
  505. $('#map').css('height', (h - offsetTop));
  506. }).resize();
  507. }
  508.  
  509. $('#1').on('click', function () {
  510. colFlorida();
  511. });
  512. $('#2').on('click', function () {
  513. colRoma();
  514. });
  515. $('#7').on('click', function () {
  516. colResFlor();
  517. });
  518. $('#11').on('click', function () {
  519. colCerro();
  520. });
  521. $('#9').on('click', function () {
  522. colVillaFlorida();
  523. });
  524. $('#6').on('click', function () {
  525. colBuenosAires();
  526. });
  527. $('#10').on('click', function () {
  528. colVillaEstadio();
  529. });
  530. $('#12').on('click', function () {
  531. colLadrillera();
  532. });
  533. $('#16').on('click', function () {
  534. colLTH();
  535. });
  536. $('#14').on('click', function () {
  537. colEstadio();
  538. });
  539. $('#43').on('click', function () {
  540. colTec();
  541. });
  542. $('#42').on('click', function () {
  543. colNarvarte();
  544. });
  545. $('#8').on('click', function () {
  546. colTecnologico();
  547. });
  548. $('#58').on('click', function () {
  549. colMexico();
  550. });
  551. $('#54').on('click', function () {
  552. colAltavista();
  553. });
  554. $('#61').on('click', function () {
  555. colRinconAlt();
  556. });
  557. $('#57').on('click', function () {
  558. colVallePrim();
  559. });
  560. $('#60').on('click', function () {
  561. colJardinesAlt();
  562. });
  563. $('#64').on('click', function () {
  564. colNuevaEspana();
  565. });
  566. $('#48').on('click', function () {
  567. colPrim1er();
  568. });
  569. $('#44').on('click', function () {
  570. colPrim3er();
  571. });
  572. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement