Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

good initial progress.

  • Loading branch information...
commit 02a2014e4933e8daabb8de9f654d41a5f6563f06 0 parents
@sherbondy authored
7 jquery.fn.gmap.full.min.js
@@ -0,0 +1,7 @@
+ /*!
+ * jQuery FN Google Map 3.0-alpha
+ * http://code.google.com/p/jquery-ui-map/
+ * Copyright (c) 2010 - 2011 Johan Säll Larsson
+ * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
+ */
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(3($){$.a=3(a,b,c){j d=[];$[a]=$[a]||{};$[a][b]=3(a,b){6(P.I){2.1d(a,b)}};$[a][b].L=c;$.14[b]=3(c){j e=2.1i(\'p\');6(d[e]&&d[e][c]){7 d[e][c].1a(d[e],R.L.1f.1h(P,1))}m 6(29 c===\'28\'||!c){d[e]=l $[a][b](c,2);7 2}}};$.a("27","26",{n:{E:(9.8)?l 9.8.O(0.0,0.0):s,1o:\'25\',Y:5},24:3(a,b){c=2;6(!b){7 c.n[a]}m{c.S(a,b)}},1d:3(a,b){2.p=b.1i(\'p\');2.w=[];2.17=b;2.n=o.r(2.n,a);2.1b();6(2.1c){2.1c()}},1b:3(){2.n.E=2.z(2.n.E);j a=2.17;j b=2.w[2.p]={k:l 9.8.23(a[0],2.n),C:[],t:[],u:[]};j c=2;9.8.y.21(b.k,\'1Z\',3(){a.T(\'1U\',2);a.T(\'1S\',c)});7 $(b.k)},S:3(a,b){j d=2.4(\'k\');o.r(2.n,{\'E\':d.1R(),\'1o\':d.1N(),\'Y\':d.1G()});6(a&&b){2.n[a]=b}d.A(2.n);6(!(a&&b)){j c=d.1D();6(c){d.1B(c)}}},15:3(a){2.4(\'B\',l 9.8.2b()).r(2.z(a));2.4(\'k\').1A(2.4(\'B\'))},1y:3(a,b){2.4(\'k\').1w[b].K(2.D(a))},1u:3(a,b,c){j d=2.4(\'k\');j c=c||9.8.1s;a.N=(a.N)?2.z(a.N):s;j e=l c(o.r({\'k\':d,\'B\':1r},a));j f=2.4(\'C\',[]);6(e.p){f[e.p]=e}m{f.K(e)}6(e.B){2.15(e.1O())}2.x(b,d,e);7 $(e)},1q:3(a,b){j c=l 9.8.1l(a);2.x(b,c);7 $(c)},F:3(a){2.U(2.4(a));2.V(a,[])},U:3(a){G(b Q a){6(a[b]v 9.8.1e){9.8.y.1t(a[b]);a[b].M(s)}m 6(a[b]v R){2.U(a[b])}a[b]=s}},1v:3(a,b,c,d){j e=2.4(\'C\');G(f Q e){j g=(c&&e[f][a])?($.1x(b,e[f][a].J(c))>-1):(e[f][a]===b);2.x(d,e[f],g)}},4:3(a,b){j c=2.w[2.p];6(!c[a]){6(a.1z(\'>\')>-1){j e=a.18(/ /g,\'\').J(\'>\');G(j i=0;i<e.I;i++){6(!c[e[i]]){6(b){c[e[i]]=((i+1)<e.I)?[]:b}m{7 s}}c=c[e[i]]}7 c}m 6(b&&!c[a]){2.V(a,b)}}7 c[a]},1C:3(a,b){2.4(\'13\',l 9.8.1l).A(a);2.4(\'13\').1E(2.4(\'k\'),2.D(b))},V:3(a,b){2.w[2.p][a]=b},1F:3(){$(2.4(\'k\')).11(\'1H\');2.S()},1I:3(){2.F(\'C\');2.F(\'t\');2.F(\'u\');j a=2.w[2.p];G(b Q a){a[b]=s}},x:3(a){6($.1J(a)){a.1a(2,R.L.1f.1h(P,1))}},z:3(a){6(a v 9.8.O){7 a}m{j b=a.18(/ /g,\'\').J(\',\');7 l 9.8.O(b[0],b[1])}},D:3(a){6(!a){7 s}m 6(a v o){7 a[0]}m 6(a v 1K){7 a}7 $(\'#\'+a)[0]},1L:3(a,b){7 $(2.4(\'u > \'+a,[]).K(l 9.8[a](o.r({\'k\':2.4(\'k\')},b))))},1M:3(a,b){((!b)?2.4(\'u > H\',l 9.8.H()):2.4(\'u > H\',l 9.8.H(b,a))).A(o.r({\'k\':2.4(\'k\')},a))},1p:3(a,b,c){2.4(\'u > \'+a,l 9.8.1P(b,o.r({\'k\':2.4(\'k\')},c)))},1Q:3(a,b,c){j d=2;j e=2.4(\'t > Z\',l 9.8.Z());j f=2.4(\'t > X\',l 9.8.X());6(b){f.A(b)}e.1T(a,3(g,h){6(h===\'1V\'){f.1W(g);f.M(d.4(\'k\'))}m{f.M(s)}d.x(c,g,h)})},1X:3(a,b){2.4(\'k\').1Y(2.4(\'t > 1n\',l 9.8.1n(2.D(a),b)))},20:3(a,b){2.4(\'t > 1m\',l 9.8.1m()).22(a,b)}});o.14.r({1g:3(a,b){7 2.q(\'1g\',a,b)},10:3(a){7 2.q(\'10\',a)},W:3(a,b){7 2.q(\'W\',a,b)},19:3(a,b){7 2.q(\'19\',a,b)},16:3(a,b){7 2.q(\'16\',a,b)},12:3(a){7 2.q(\'12\',a)},1k:3(a){7 2.q(\'1k\',a)},11:3(a){9.8.y.T(2[0],a)},q:3(a,b,c){6(9.8&&2[0]v 9.8.1e){9.8.y.2a(2[0],a,b)}m{6(c){2.1j(a,b,c)}m{2.1j(a,b)}}7 2}})}(o));',62,136,'||this|function|get||if|return|maps|google||||||||||var|map|new|else|options|jQuery|id|addEventListener|extend|null|services|overlays|instanceof|instances|_call|event|_latLng|setOptions|bounds|markers|_unwrap|center|clear|for|FusionTablesLayer|length|split|push|prototype|setMap|position|LatLng|arguments|in|Array|_u|trigger|_c|set|dblclick|DirectionsRenderer|zoom|DirectionsService|rightclick|triggerEvent|drag|iw|fn|addBounds|mouseout|element|replace|mouseover|apply|_create|_init|_s|MVCObject|slice|click|call|attr|bind|dragend|InfoWindow|Geocoder|StreetViewPanorama|mapTypeId|loadKML|addInfoWindow|false|Marker|clearInstanceListeners|addMarker|findMarker|controls|inArray|addControl|indexOf|fitBounds|panToBounds|openInfoWindow|getBounds|open|refresh|getZoom|resize|destroy|isFunction|Object|addShape|loadFusion|getMapTypeId|getPosition|KmlLayer|displayDirections|getCenter|1337|route|init|OK|setDirections|displayStreetView|setStreetView|bounds_changed|search|addListenerOnce|geocode|Map|option|roadmap|gmap|ui|object|typeof|addListener|LatLngBounds'.split('|'),0,{}))
68 miteats.tumblr.html
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<head>
+ <meta charset="utf-8">
+
+ <title>{Title}</title>
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+ <link href='http://fonts.googleapis.com/css?family=Cabin:400,700,400italic,700italic'
+ rel='stylesheet' type='text/css'>
+ <link rel="stylesheet" href="http://eps.local/~ethanis/miteats/style.css">
+ <link rel="shortcut icon" href="{Favicon}">
+ {block:Description}
+ <meta name="description" content="{MetaDescription}">
+ {/block:Description}
+</head>
+
+<body>
+
+ <h1>{Title}</h1>
+
+ <ol id="posts">
+ {block:Posts}
+ <li>
+ {block:HasTags}
+ <span class="tags">
+ {block:Tags}{Tag} {/block:Tags}
+ </span>
+
+ <a href="{Permalink}">
+ {block:Text}
+ {block:Title}
+ <h2>{Title}</h2>
+ {/block:Title}
+ {/block:Text}
+ {block:Date}
+ <span class="date">
+ {Month} {DayOfMonth}, {Year}
+ </span>
+ {/block:Date}
+ </a>
+ </li>
+ {/block:Posts}
+ </ol>
+ <div id="map"></div>
+
+ <script type="text/javascript"
+ src="http://maps.google.com/maps/api/js?sensor=true"></script>
+ <script type="text/javascript"
+ src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
+ <script type="text/javascript"
+ src="http://eps.local/~ethanis/miteats/jquery.fn.gmap.full.min.js"></script>
+ <script type="text/javascript"
+ src="http://eps.local/~ethanis/miteats/script.js"></script>
+
+ {block:IfGoogleAnalytics}
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{text:Google Analaytics}']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+ {/block:IfGoogleAnalytics}
+</body>
+</html>
431 normalize.css
@@ -0,0 +1,431 @@
+/*! normalize.css 2011-09-22T17:42 UTC - http://github.com/necolas/normalize.css */
+
+/* =============================================================================
+ HTML5 display definitions
+ ========================================================================== */
+
+/*
+ * Corrects block display not defined in IE6/7/8/9 & FF3
+ */
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+nav,
+section {
+ display: block;
+}
+
+/*
+ * Corrects inline-block display not defined in IE6/7/8/9 & FF3
+ */
+
+audio,
+canvas,
+video {
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+}
+
+/*
+ * Prevents modern browsers from displaying 'audio' without controls
+ */
+
+audio:not([controls]) {
+ display: none;
+}
+
+/*
+ * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
+ * Known issue: no IE6 support
+ */
+
+[hidden] {
+ display: none;
+}
+
+
+/* =============================================================================
+ Base
+ ========================================================================== */
+
+/*
+ * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
+ * http://clagnut.com/blog/348/#c790
+ * 2. Keeps page centred in all browsers regardless of content height
+ * 3. Prevents iOS text size adjust after orientation change, without disabling user zoom
+ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
+ */
+
+html {
+ font-size: 100%; /* 1 */
+ overflow-y: scroll; /* 2 */
+ -webkit-text-size-adjust: 100%; /* 3 */
+ -ms-text-size-adjust: 100%; /* 3 */
+}
+
+/*
+ * Addresses margins handled incorrectly in IE6/7
+ */
+
+body {
+ margin: 0;
+}
+
+/*
+ * Addresses font-family inconsistency between 'textarea' and other form elements.
+ */
+
+body,
+button,
+input,
+select,
+textarea {
+ font-family: sans-serif;
+}
+
+
+/* =============================================================================
+ Links
+ ========================================================================== */
+
+a {
+ color: #00e;
+}
+
+a:visited {
+ color: #551a8b;
+}
+
+/*
+ * Addresses outline displayed oddly in Chrome
+ */
+
+a:focus {
+ outline: thin dotted;
+}
+
+/*
+ * Improves readability when focused and also mouse hovered in all browsers
+ * people.opera.com/patrickl/experiments/keyboard/test
+ */
+
+a:hover,
+a:active {
+ outline: 0;
+}
+
+
+/* =============================================================================
+ Typography
+ ========================================================================== */
+
+/*
+ * Addresses styling not present in IE7/8/9, S5, Chrome
+ */
+
+abbr[title] {
+ border-bottom: 1px dotted;
+}
+
+/*
+ * Addresses style set to 'bolder' in FF3/4, S4/5, Chrome
+*/
+
+b,
+strong {
+ font-weight: bold;
+}
+
+blockquote {
+ margin: 1em 40px;
+}
+
+/*
+ * Addresses styling not present in S5, Chrome
+ */
+
+dfn {
+ font-style: italic;
+}
+
+/*
+ * Addresses styling not present in IE6/7/8/9
+ */
+
+mark {
+ background: #ff0;
+ color: #000;
+}
+
+/*
+ * Corrects font family set oddly in IE6, S4/5, Chrome
+ * en.wikipedia.org/wiki/User:Davidgothberg/Test59
+ */
+
+pre,
+code,
+kbd,
+samp {
+ font-family: monospace, serif;
+ _font-family: 'courier new', monospace;
+ font-size: 1em;
+}
+
+/*
+ * Improves readability of pre-formatted text in all browsers
+ */
+
+pre {
+ white-space: pre;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+}
+
+/*
+ * 1. Addresses CSS quotes not supported in IE6/7
+ * 2. Addresses quote property not supported in S4
+ */
+
+/* 1 */
+
+q {
+ quotes: none;
+}
+
+/* 2 */
+
+q:before,
+q:after {
+ content: '';
+ content: none;
+}
+
+small {
+ font-size: 75%;
+}
+
+/*
+ * Prevents sub and sup affecting line-height in all browsers
+ * gist.github.com/413930
+ */
+
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+
+sup {
+ top: -0.5em;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+
+/* =============================================================================
+ Lists
+ ========================================================================== */
+
+ul,
+ol {
+ margin: 1em 0;
+ padding: 0 0 0 40px;
+}
+
+dd {
+ margin: 0 0 0 40px;
+}
+
+nav ul,
+nav ol {
+ list-style: none;
+ list-style-image: none;
+}
+
+
+/* =============================================================================
+ Embedded content
+ ========================================================================== */
+
+/*
+ * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
+ * 2. Improves image quality when scaled in IE7
+ * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
+ */
+
+img {
+ border: 0; /* 1 */
+ -ms-interpolation-mode: bicubic; /* 2 */
+}
+
+/*
+ * Corrects overflow displayed oddly in IE9
+ */
+
+svg:not(:root) {
+ overflow: hidden;
+}
+
+
+/* =============================================================================
+ Figures
+ ========================================================================== */
+
+/*
+ * Addresses margin not present in IE6/7/8/9, S5, O11
+ */
+
+figure {
+ margin: 0;
+}
+
+
+/* =============================================================================
+ Forms
+ ========================================================================== */
+
+/*
+ * Corrects margin displayed oddly in IE6/7
+ */
+
+form {
+ margin: 0;
+}
+
+/*
+ * Define consistent border, margin, and padding
+ */
+
+fieldset {
+ border: 1px solid #c0c0c0;
+ margin: 0 2px;
+ padding: 0.35em 0.625em 0.75em;
+}
+
+/*
+ * 1. Corrects color not being inherited in IE6/7/8/9
+ * 2. Corrects alignment displayed oddly in IE6/7
+ */
+
+legend {
+ border: 0; /* 1 */
+ *margin-left: -7px; /* 2 */
+}
+
+/*
+ * 1. Corrects font size not being inherited in all browsers
+ * 2. Addresses margins set differently in IE6/7, FF3/4, S5, Chrome
+ * 3. Improves appearance and consistency in all browsers
+ */
+
+button,
+input,
+select,
+textarea {
+ font-size: 100%; /* 1 */
+ margin: 0; /* 2 */
+ vertical-align: baseline; /* 3 */
+ *vertical-align: middle; /* 3 */
+}
+
+/*
+ * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
+ */
+
+button,
+input {
+ line-height: normal; /* 1 */
+}
+
+/*
+ * 1. Improves usability and consistency of cursor style between image-type 'input' and others
+ * 2. Corrects inability to style clickable 'input' types in iOS
+ * 3. Corrects inner spacing displayed oddly in IE7 without effecting normal text inputs
+ * Known issue: inner spacing remains in IE6
+ */
+
+button,
+input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+ cursor: pointer; /* 1 */
+ -webkit-appearance: button; /* 2 */
+ *overflow: visible; /* 3 */
+}
+
+/*
+ * 1. Addresses box sizing set to content-box in IE8/9
+ * 2. Addresses excess padding in IE8/9
+ */
+
+input[type="checkbox"],
+input[type="radio"] {
+ box-sizing: border-box; /* 1 */
+ padding: 0; /* 2 */
+}
+
+/*
+ * 1. Addresses appearance set to searchfield in S5, Chrome
+ * 2. Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof)
+ */
+
+input[type="search"] {
+ -webkit-appearance: textfield; /* 1 */
+ -moz-box-sizing: content-box;
+ -webkit-box-sizing: content-box; /* 2 */
+ box-sizing: content-box;
+}
+
+/*
+ * Corrects inner padding displayed oddly in S5, Chrome on OSX
+ */
+
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+/*
+ * Corrects inner padding and border displayed oddly in FF3/4
+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
+ */
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+ border: 0;
+ padding: 0;
+}
+
+/*
+ * 1. Removes default vertical scrollbar in IE6/7/8/9
+ * 2. Improves readability and alignment in all browsers
+ */
+
+textarea {
+ overflow: auto; /* 1 */
+ vertical-align: top; /* 2 */
+}
+
+
+/* =============================================================================
+ Tables
+ ========================================================================== */
+
+/*
+ * Remove most spacing between table cells
+ */
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
15 script.coffee
@@ -0,0 +1,15 @@
+$ ->
+ ($ '#map').gmap().bind 'init', (evt, map)->
+ ($ '#posts .tags').each ->
+ $link = ($ this).siblings 'a'
+ console.log $link
+ coords = ($ this).text().split()[0]
+ ($ '#map').gmap('addMarker', {
+ 'position': coords,
+ 'bounds': true
+ }, (map, marker)->
+ $link.click (e)->
+ e.preventDefault()
+ ($ marker).triggerEvent 'click'
+ ).click ->
+ map.panTo $( this).get(0).getPosition()
23 script.js
@@ -0,0 +1,23 @@
+(function() {
+ $(function() {
+ return ($('#map')).gmap().bind('init', function(evt, map) {
+ return ($('#posts .tags')).each(function() {
+ var $link, coords;
+ $link = ($(this)).siblings('a');
+ console.log($link);
+ coords = ($(this)).text().split()[0];
+ return ($('#map')).gmap('addMarker', {
+ 'position': coords,
+ 'bounds': true
+ }, function(map, marker) {
+ return $link.click(function(e) {
+ e.preventDefault();
+ return ($(marker)).triggerEvent('click');
+ });
+ }).click(function() {
+ return map.panTo($(this).get(0).getPosition());
+ });
+ });
+ });
+ });
+}).call(this);
10 style.css
@@ -0,0 +1,10 @@
+*{margin:0;padding:0}
+@font-face{font-family:Trottoir;font-style:normal;src:url("http://static.tumblr.com/3jc4ci5/nuvlsrlsw/trottoir.otf") format(opentype)}
+body{font-family:"Cabin","Helvetica Neue","Helvetica",sans-serif}
+h1{text-align:center;font-family:Trottoir;font-size:64px;line-height:1;margin:16px 0}
+#map{height:480px;width:75%;float:right}
+#posts{list-style:none;width:25%;background:#ccc;float:left;border-top:1px solid #ccc;}
+#posts .tags{display:none}
+#posts a{display:block;position:relative;padding:8px 16px;background:#fff;color:#06f;text-decoration:none;border-bottom:1px solid #ccc;}
+#posts a:hover{background:#06f;color:#fff}
+#posts a:active{top:1px}
47 style.styl
@@ -0,0 +1,47 @@
+*
+ margin 0
+ padding 0
+
+@font-face
+ font-family Trottoir
+ font-style normal
+ src url(http://static.tumblr.com/3jc4ci5/nuvlsrlsw/trottoir.otf) format(opentype)
+
+body
+ font-family 'Cabin', 'Helvetica Neue', 'Helvetica', sans-serif
+
+h1
+ text-align center
+ font-family Trottoir
+ font-size 64px
+ line-height 1
+ margin 16px 0
+
+#map
+ height 480px
+ width 75%
+ float right
+
+#posts
+ list-style none
+ width 25%
+ background #ccc
+ float left
+ border-top 1px solid #ccc
+
+ & .tags
+ display none
+
+ & a
+ display block
+ position relative
+ padding 8px 16px
+ background #fff
+ color #0066ff
+ text-decoration none
+ border-bottom 1px solid #ccc
+ &:hover
+ background #0066ff
+ color #fff
+ &:active
+ top 1px
Please sign in to comment.
Something went wrong with that request. Please try again.