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 n = document.querySelectorAll('.btn.btn-default.option.agree.min'); | |
let clickFinish = () => { | |
let nb = document.getElementById('nextbut'); | |
nb.click(); | |
} | |
let clickSubmit = () => { | |
let sb = document.getElementById('submbut'); | |
sb.click(); |
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
require('dotenv').config() | |
let fs = require("fs"); | |
let shell = require('shelljs'); | |
const globby = require('globby'); | |
let path = require('path'); | |
let util = require('util'); | |
//get db from env | |
let database = process.env.MONGO_URI; | |
database = database.split('/').pop(); |
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
require('dotenv').config() | |
let fs = require("fs"); | |
let shell = require('shelljs'); | |
//get db from env | |
let database = process.env.MONGO_URI; | |
database = database.split('/').pop(); | |
init(); |
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
var DoublyLinkedList; | |
function Node(data) { | |
this.data = data; | |
this.previous = null; | |
this.next = null; | |
} | |
function DoublyLinkedList() { |
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 canvas = document.getElementById("canvas"); | |
for (let i = 0; i < 1000; i++) { | |
(function(i) { | |
setTimeout( | |
function() { | |
canvas.click(); | |
}, | |
100 + (50 * i)); | |
})(i); |
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
const mainContainer = document.querySelector('.global-navigation-slideout__container'); | |
mainContainer.addEventListener('transitionend', function handler(event) { | |
self.indicationElements.masterBrandHeader.classList.remove('scrolled'); | |
event.currentTarget.removeEventListener('transitionend', handler); | |
}, false ); |
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 MobileNavigation { | |
constructor() { | |
this.mobileNavigationElements = { | |
mobileNavLink: document.querySelectorAll('.global-navigation-slideout-mobile__item') | |
}; | |
} | |
attachListener(currentState) { | |
if(currentState.mobileNavigation) { | |
for (let element of [...this.mobileNavigationElements.mobileNavLink]) { | |
element.addEventListener('click', (event) => { |
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 ShrinkingHeader { | |
constructor() { | |
this.header = { | |
header: document.querySelector('.header'), | |
headerWrap: document.querySelector('.header-wrap') | |
}; | |
} | |
toggleHeader(currentState){ | |
const scrollValue = window.pageYOffset; |
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
.box { | |
background: lightblue; | |
width: 200px; | |
height: 200px; | |
margin: 20px auto; | |
transition: transform .3s linear, background-color .6s ease-in-out; | |
transform-origin: center; | |
transform-style: preserve-3D; | |
} |
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 chunkRecipe = recipe.reduce((ar, it, i) => { | |
const value = Math.floor(i/this.rateLimit); | |
if(!ar[value]) { | |
ar[value] = []; | |
} | |
ar[value].push(it); | |
return ar; | |
}, []) | |
this.chunks.push(chunkRecipe); |
OlderNewer