Skip to content

Instantly share code, notes, and snippets.

@peta
Created July 17, 2014 18:51
Show Gist options
  • Save peta/633027a604eeefd85b30 to your computer and use it in GitHub Desktop.
Save peta/633027a604eeefd85b30 to your computer and use it in GitHub Desktop.
Lustige Powered-By-Fußnote von der-postillon.com
// easter-egg
(function() {
var $random = $('#campudus-random');
var $randomClick = $('#campudus-random-click');
var a = [ 'attraktiven', 'beliebten', 'bescheidenen', 'coolen', 'epischen', 'erfahrenen', 'fröhlichen', 'guten', 'gnädigen', 'humorvollen', 'kaputten', 'klaustrophobischen', 'liebevollen', 'multidimensionalen', 'prämierten', 'tollen', 'verdorbenen', 'verschrobenen', 'zauberhaften' ];
var b = [ 'Designer', 'Freunde', 'Gorillas', 'Helden', 'Jungs', 'Kids', 'Kellerkinder', 'Knacker', 'Kollegen', 'Krieger', 'Männer', 'Nerds', 'Ninjas', 'Opas', 'Roboter', 'Tiere', 'Programmierer', 'Zauberer', 'Zebras' ];
$randomClick.click(function(e) {
$random.text(a[Math.floor(Math.random()*a.length)] + ' ' + b[Math.floor(Math.random()*b.length)]);
});
$randomClick.mouseenter(function(e) {
$randomClick.click();
});
$randomClick.click();
}());
@sgeto
Copy link

sgeto commented Aug 4, 2015

wie kann man das einbauen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment