🎉 Commit initial

This commit is contained in:
2017-01-12 00:24:32 +01:00
commit 297aa4b61f
32 changed files with 6895 additions and 0 deletions

57
js/plugins.js Normal file
View File

@@ -0,0 +1,57 @@
// remap jQuery to $
(function($){
$('div.french').hide();
$('#main > div > div').hide();
$('#en-lang').click(function(){
$('.french').hide();
$('.english').show();
});
$('#fr-lang').click(function(){
$('.french').show();
$('.english').hide();
});
$('h2').click(function(){
$('h2').removeClass('active');
$(this).addClass('active');
$('#main > div > div').slideUp();
$(this).next('div').slideDown();
});
$('hr').hide();
})(window.jQuery);
// usage: log('inside coolFunc',this,arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
if(this.console){
console.log( Array.prototype.slice.call(arguments) );
}
};
// catch all document.write() calls
(function(doc){
var write = doc.write;
doc.write = function(q){
log('document.write(): ',arguments);
if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);
};
})(document);