Skip to content

Instantly share code, notes, and snippets.

View soufiane-fadil's full-sized avatar
🌴
On vacation

Soufiane Fadil soufiane-fadil

🌴
On vacation
View GitHub Profile
@soufiane-fadil
soufiane-fadil / slideDown.js
Created December 21, 2016 16:41 — forked from ludder/slideDown.js
Vanilla JavaScript slideUp and slideDown functions
/*
Element to slide gets the following CSS:
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.4s ease 0s;
*/
/**
* Like jQuery's slideDown function - uses CSS3 transitions
@soufiane-fadil
soufiane-fadil / webcrawler.js
Created January 11, 2016 11:19 — forked from amoilanen/webcrawler.js
Simple PhantomJS-based web crawler library
//PhantomJS http://phantomjs.org/ based web crawler Anton Ivanov anton.al.ivanov@gmail.com 2012
//UPDATE: This gist has been made into a Node.js module and now can be installed with "npm install js-crawler"
//the Node.js version does not use Phantom.JS, but the API available to the client is similar to the present gist
(function(host) {
function Crawler() {
this.visitedURLs = {};
};