File tree 2 files changed +39
-1
lines changed
2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 3
3
---
4
4
< div class ="camp ">
5
5
6
+ {% if page.fb_event %}
7
+ < a href ="{{ page.fb_event }} " class ="pull-right fb-event-box ">
8
+ < i class ="fa fa-facebook-square "> </ i >
9
+ < span id ="fb-event-visit "> Visit</ span > this event on Facebook
10
+ </ a >
11
+ {% endif %}
12
+
6
13
< header class ="camp-header ">
7
14
< h1 class ="camp-title "> {{ site.title }} {{ page.starts | date: '%Y' }} {{ page.city }}</ h1 >
8
15
</ header >
38
45
39
46
</ article >
40
47
41
- <!-- Find locations and create the map -->
42
48
< script type ="text/javascript " src ="{{ site.baseurl }}/js/leaflet.min.js "> </ script >
43
49
< script type ="text/javascript " src ="{{ site.baseurl }}/js/Control.Geocoder.js "> </ script >
44
50
< script type ="text/javascript "> <!--
51
+ //
52
+ // Find locations and create the map
53
+ //
45
54
var map = L . map ( 'map-map' ) ;
46
55
L . tileLayer ( 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' , {
47
56
maxZoom : 19 ,
69
78
map . fitBounds ( L . latLngBounds ( pts ) , { maxZoom : 12 } ) ;
70
79
} . bind ( marker ) ) ;
71
80
}
81
+
82
+ //
83
+ // Turn "visit" into "join" when the event is in the future
84
+ //
85
+ if ( Date . parse ( "{{ page.ends | date_to_rfc822 }}" ) >= Date . now ( ) ) {
86
+ document . getElementById ( 'fb-event-visit' ) . innerHTML = "<strong>Join</strong>" ;
87
+ }
88
+
72
89
//--> </ script >
73
90
</ div >
Original file line number Diff line number Diff line change @@ -62,6 +62,27 @@ body > .container:first-child {
62
62
// Camps
63
63
//
64
64
65
+ .fb-event-box {
66
+ font-size : 15px ;
67
+ padding : 15px ;
68
+ padding-bottom : 10px ;
69
+ display : block ;
70
+ width : 13em ;
71
+
72
+ border : 1px solid #ccc ;
73
+ border-radius : 10px ;
74
+ & :hover , & :active {
75
+ background : #fcfcfc ;
76
+ }
77
+
78
+ .fa {
79
+ float : left ;
80
+ margin-top : -4px ;
81
+ font-size : 350% ;
82
+ margin-right : 0.2em ;
83
+ }
84
+ }
85
+
65
86
.centered-blocks {
66
87
display : block ;
67
88
You can’t perform that action at this time.
0 commit comments