This file contains 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
console.log('testing'); |
This file contains 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
class Post { | |
constructor(postText) {this.postText = postText} | |
get status() { return this.filterValue('status');} | |
get appliedDate() {return this.filterValue('application date');} | |
get decidedDate() {return this.filterValue('decision date');} | |
filterValue(str) { | |
let regEx = new RegExp(str + ':.*', 'gi'); | |
let match = this.postText.match(regEx); | |
let fieldValue = match && match[0].substring(str.length + 1, match[0].length).trim(); |
This file contains 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
let makeConfetti = () => { | |
let { height } = document.body.getBoundingClientRect(); | |
const particleQty = 120; | |
let random = (max) => { | |
return Math.floor(Math.random() * max); | |
} | |
for (let i = 0; i < particleQty; i++) { | |
let particle = document.createElement('div'); |
This file contains 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
let videoHolder, videoPlayer, videoPlayerContainer, videoOverlay, videoPresent = true; | |
let setVariables = function() { | |
try { | |
videoHolder = document.querySelector('.video-holder'); | |
videoPlayer = videoHolder.querySelector('video'); | |
videoPlayerContainer = videoPlayer.parentElement; | |
videoOverlay = videoHolder.querySelector('.video-js.vjs-big-play-centered'); | |
} catch(err){ | |
console.log('no video on this page'); |