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
weather
Commits
e1503d97
Commit
e1503d97
authored
Jan 24, 2017
by
Zach Knox
Browse files
fixed non-HTTPS links
parent
d84a62e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
weather/client/views/footer/footer.html
View file @
e1503d97
...
...
@@ -5,10 +5,10 @@
</div>
<div
class=
"mdl-mini-footer__right-section"
style=
"align: right"
>
A project of Mason
<a
href=
"http://srct.gmu.edu/"
><strong>
SRCT
</strong></a>
, a registered student org.
A project of Mason
<a
href=
"http
s
://srct.gmu.edu/"
><strong>
SRCT
</strong></a>
, a registered student org.
<br
/>
Read and
<a
href=
"https://git.gmu.edu//srct/weather/milestones/"
>
contribute
</a>
to our
<a
href=
"https://www.gnu.org/licenses/quick-guide-gplv3.html"
>
freely-licensed
</a>
<a
href=
"http://git.gmu.edu/srct/weather/"
target=
"_blank"
>
source code
</a>
.
<a
href=
"http
s
://git.gmu.edu/srct/weather/"
target=
"_blank"
>
source code
</a>
.
</div>
</footer>
</template>
weather/server/methods.js
View file @
e1503d97
...
...
@@ -17,7 +17,7 @@ function getWeather(latitude, longitude) {
var
date
=
new
Date
();
var
timeDiff
=
(
date
.
getTime
())
-
curWeatherData
.
retrievalTime
;
//Subtract the data timestamp form cur time to get age
if
(
timeDiff
>
(
Meteor
.
settings
.
weatherCacheExpireTime
*
10
00
))
{
if
(
timeDiff
>
(
Meteor
.
settings
.
weatherCacheExpireTime
*
10
))
{
//Data is expired, retrieve again.
console
.
log
(
"
Data Age:
"
+
timeDiff
)
console
.
log
(
"
Cache expired. Retrieving...
"
)
...
...
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