This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getDate: { | |
init: function() { | |
var dateContainer = document.getElementById('date'), | |
today = new Date(), | |
dayNames= ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], | |
monthNames = ['January', 'February', 'March', 'April', 'May', 'June','July', 'August', 'September', 'October', 'November', 'December'], | |
dayText = dayNames[today.getDay()], | |
monthText = monthNames[today.getMonth()], | |
dateText = today.getDate(), | |
weekday = today.getDay(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vidLooper = function() { | |
var allVids = $('.vid'); | |
$.each(allVids, function(index, value) { | |
if (index < allVids.length-1) { | |
value.addEventListener('ended', function() { | |
var nextVid = allVids.eq(index+1); | |
nextVid[0].play(); | |
}); | |
} else if (index === allVids.length-1) { | |
value.addEventListener('ended', function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TagPulse extends Tag { | |
function _clean_val($val) | |
{ | |
if (strpos($val, '$') === 0) | |
{ | |
return $val; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin mobile-landscape() { | |
@media only screen and (max-height: 420px) and (max-width: 767px) and (orientation: landscape) and (min-aspect-ratio: 13/9) { | |
@content; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scrollToElem(e): void { | |
e.preventDefault(); | |
const target = { | |
y: window.scrollY, | |
}; | |
const elemTopPos = this.anyElem.offsetTop; | |
TweenMax.to(target, 0.5, { | |
y: elemTopPos, | |
onUpdate: () => { | |
window.scrollTo(0, target.y); |