Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
srct.gmu.io
Commits
286ce596
Commit
286ce596
authored
Apr 30, 2015
by
Daniel W Bond
Browse files
Merge branch 'master' of git.gmu.edu:srct/srctweb
parents
9ecc144b
7df8d9f0
Changes
2
Show whitespace changes
Inline
Side-by-side
srctweb/website/templates/index.html
View file @
286ce596
...
...
@@ -62,16 +62,49 @@ channel on <a href="https://www.freenode.net/">freenode</a>, #srct. More ways to
get in touch are on our
<a
href=
"{{ url_for('contact') }}"
>
contact page
</a>
.
</p>
<legend><i
class=
"fa fa-gavel fa-fw"
></i>
<strong>
Next Meeting
</strong></legend>
<p>
Our next meeting is scheduled for Saturday at 2pm in SUB1 3B. For more
information, check out our
<a
href=
"{{ url_for('calendar') }}"
>
calendar
</a>
or visit our
<p
id=
"meetingDate"
>
Please wait while we fetch the upcoming meeting information...
</p>
<!--<a href="{{ url_for('calendar') }}">calendar</a> or visit our
<a href="https://www.facebook.com/MasonSRCT">Facebook</a> or
<a
href=
"https://www.twitter.com/MasonSRCT"
>
Twitter
</a>
pages.
</p>
<a href="https://www.twitter.com/MasonSRCT">Twitter</a> pages.</p>
-->
</div>
{% endblock %}
{% block scripts %}
<!-- <script src="/static/js/parallax.min.js"></script>
var scene = document.getElementById('jumboparallax');
var parallax = new Parallax(jumboparallax); -->
<script>
$
(
function
()
{
// Public API Key for Google Calendar access (Key from nander13's gmail account)
var
apiKey
=
"
AIzaSyDgaXDxmMEdtbIaq3TXmf4jxXZLG8CeoMs
"
;
// Instead of loading the _entire_ Google API library, let's just make a GET request
$
.
getJSON
(
"
https://www.googleapis.com/calendar/v3/calendars/kaiuicpoki9p3u92eklent0eec%40group.calendar.google.com/events
"
,
{
// Expand one recurring event to multiple events
"
singleEvents
"
:
"
true
"
,
"
orderBy
"
:
"
startTime
"
,
// Starting now until we hit the first event.
"
timeMin
"
:
new
Date
().
toISOString
(),
"
showDeleted
"
:
"
false
"
,
"
maxResults
"
:
"
1
"
,
// Change this if the title of the weekly meeting on the calendar changes!
"
q
"
:
"
SRCT+Weekly+Meeting
"
,
"
key
"
:
apiKey
},
function
(
data
)
{
//console.log(data.items[0])
var
d
=
new
Date
(
data
.
items
[
0
].
start
.
dateTime
),
monthName
=
d
.
toLocaleString
(
"
en-us
"
,
{
month
:
"
long
"
}),
dateOptions
=
{
weekday
:
'
long
'
,
month
:
'
long
'
,
day
:
'
numeric
'
},
timeOptions
=
{
hour
:
'
numeric
'
,
minute
:
'
numeric
'
},
dateString
=
d
.
toLocaleString
(
"
en-us
"
,
dateOptions
),
timeString
=
d
.
toLocaleString
(
"
en-us
"
,
timeOptions
);
$
(
"
#meetingDate
"
).
text
(
"
Join us for our next meeting in
"
+
data
.
items
[
0
].
location
+
"
at
"
+
timeString
+
"
on
"
+
dateString
+
"
.
"
)
});
});
</script>
{% endblock %}
srctweb/website/templates/layouts/base.html
View file @
286ce596
...
...
@@ -69,6 +69,8 @@
<script
src=
"/static/js/jquery-2.0.3.min.js"
></script>
<script
src=
"/static/js/bootstrap.min.js"
></script>
{% block scripts %}
{% endblock %}
<!-- Piwik -->
<script
type=
"text/javascript"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment