Created
July 17, 2014 18:51
-
-
Save peta/633027a604eeefd85b30 to your computer and use it in GitHub Desktop.
Lustige Powered-By-Fußnote von der-postillon.com
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
// 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(); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wie kann man das einbauen?