|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | | -<head> |
| 3 | + <head> |
4 | 4 | <meta charset="utf-8" /> |
5 | 5 | <meta name="description" content="PythonKC groups website. For all things Python in Kansas City." /> |
6 | 6 | <meta name="keywords" content="python, kansas city" /> |
7 | | - <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> |
| 7 | + <meta name="viewport" content="initial-scale=1.0" /> |
8 | 8 | <title>PythonKC || For all things Python in Kansas City.</title> |
9 | 9 | <link rel="stylesheet" href="{{ STATIC_URL }}screen.css"> |
10 | | - <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> |
11 | | - <script type="text/javascript"> |
12 | | - function initialize() { |
13 | | - var latlng = new google.maps.LatLng(-34.397, 150.644); |
14 | | - var myOptions = { |
15 | | - zoom: 8, |
16 | | - center: latlng, |
17 | | - mapTypeId: google.maps.MapTypeId.ROADMAP |
18 | | - }; |
19 | | - var map = new google.maps.Map(document.getElementById("map_canvas"), |
20 | | - myOptions); |
21 | | - } |
22 | | - </script> |
23 | | -</head> |
24 | | -<body onload="initialize()"> |
25 | | - <header> |
| 10 | + <!--[if lt IE 9]> |
| 11 | + <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> |
| 12 | + <![endif]--> |
| 13 | + </head> |
| 14 | + <body> |
| 15 | + <header role="banner"> |
26 | 16 | </header> |
27 | | - |
28 | | -<section> |
29 | | - <article> |
30 | | - <header> |
31 | | - <time> |
32 | | - <h1>[upcoming date]</h1> |
33 | | - <p>[upcoming time]</p> |
34 | | - </time> |
35 | | - </header> |
36 | | - <h2>[Event title]</h2> |
37 | | - <p>[Event descriptiopn]</p> |
38 | | - <p class="rsvp">RSVP at</p> |
39 | | - </article> |
40 | | - <div id="map_canvas" style="width:100%; height:100%"></div> |
41 | | -</section> |
42 | | - |
43 | | -<footer></footer> |
| 17 | + <section class="next-meeting"> |
44 | 18 |
|
| 19 | + <div class="wrap"> |
| 20 | + <article> |
| 21 | + <header> |
| 22 | + <time> |
| 23 | + <h1>[upcoming date]</h1> |
| 24 | + <p>[upcoming time]</p> |
| 25 | + </time> |
| 26 | + </header> |
| 27 | + <h2>[Event title]</h2> |
| 28 | + <p>[Event descriptiopn]</p> |
| 29 | + <p class="rsvp">RSVP at</p> |
| 30 | + <div id="map_canvas" style="width:100%; height:100%"></div> |
| 31 | + </article> |
| 32 | + </div> |
| 33 | + </section> |
| 34 | + |
| 35 | + <section id="past-meetups"> |
| 36 | + <div class="wrap"> |
| 37 | + <h1>Past Events</h1> |
| 38 | + <div class="slider-controls" id="slider-controls"> |
| 39 | + <a href="#" class="btn-previous btn-control" id="prev"> <span class="prev-arrow"></span></a> |
| 40 | + <a href="#" class="btn-next btn-control" id="next"><span class="next-arrow"></span></a> |
| 41 | + </div> |
| 42 | + <div id="evt-wrapper"> |
| 43 | + {% for event in past_events %} |
| 44 | + <article> |
| 45 | + <header> |
| 46 | + <h1><time datetime>{Date goes here}</time></h1> |
| 47 | + </header> |
| 48 | + |
| 49 | + <h2>{}</h2> |
| 50 | + <p>{summary}</p> |
| 51 | + <div class="attendees"> |
| 52 | + {% for attendee in attendees %} |
| 53 | + <img src="" height="" width="" class="attendee" /> |
| 54 | + {% endfor %} |
| 55 | + </div> |
| 56 | + |
| 57 | + <figure> |
| 58 | + <img src="" height="" width="" /> |
| 59 | + </figure> |
| 60 | + </article> |
| 61 | + {% endfor %} |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + </section> |
| 65 | + |
| 66 | + <footer> |
| 67 | + <div class="wrap"> |
| 68 | + </div> |
| 69 | + </footer> |
| 70 | + </div> |
| 71 | + <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> |
| 72 | + <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> |
| 73 | + <script src="{{STATIC_URL}}jquery.cycle.lite.min.js" type="text/javascript" charset="utf-8"></script> |
| 74 | + <script type="text/javascript" charset="utf-8"> |
| 75 | + var pykc = window.pykc = pykc || {}; |
| 76 | + pykc.map; |
| 77 | + |
| 78 | + pykc.mapInit = function() { |
| 79 | + var latlng = new google.maps.LatLng(-34.397, 150.644); |
| 80 | + var opts = { |
| 81 | + zoom: 8, |
| 82 | + center: latlng, |
| 83 | + mapTypeId: google.maps.MapTypeId.ROADMAP |
| 84 | + }; |
| 85 | + this.map = new google.maps.Map(document.getElementById("map_canvas"), opts); |
| 86 | + } |
| 87 | + |
| 88 | + pykc.resizeMap = function(){ |
| 89 | + this.$mapHolder = this.$mapHolder || $("#map_canvas"); |
| 90 | + this.$mapHolder.width( this.$mapHolder.parent().width()/2); |
| 91 | + google.maps.event.trigger(this.map, 'resize'); |
| 92 | + } |
| 93 | + |
| 94 | + pykc.init = function(){ |
| 95 | + $('#evt-wrapper').cycle({ |
| 96 | + prev: '#prev', |
| 97 | + next: '#next', |
| 98 | + timeout: 0 |
| 99 | + }); |
| 100 | + this.mapInit(); |
| 101 | + this.resizeMap() |
| 102 | + //$(window).resize(function(){ pykc.resizeMap(); }); |
| 103 | + } |
| 104 | + |
| 105 | + $(function(){ pykc.init(); }); |
| 106 | + </script> |
45 | 107 | </body> |
46 | 108 | </html> |
0 commit comments