Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function update_fojjer(shouts) {
- $('button.fojjer').each(function(index) {
- var text = (Math.random() < 0.5? 'ФОЖЖЖЖЖЕЕР!!! ': '8-[ = ] !!! ') + shouts
- $(this).text(text)
- })
- }
- function setup_fojjer()
- {
- var text = 'НАОРАТЬ НА ФОЖЖЕРА'
- var suffixes = ['??', '?', '!', '!!11', '??!', '?!']
- $('button.fojjer').each(function(index) {
- var suffix = suffixes[Math.floor(Math.random() * suffixes.length)];
- $(this).text(text + suffix)
- $(this).addClass('button')
- $(this).click(function() {
- $.post('/fojjer.php', 'shout=1', function(data) {
- update_fojjer(data)
- })
- })
- })
- }
- function FOJJJJJERRRR() {
- $('a').each(function(index) {
- if (Math.random() >= 0.25)
- return
- $(this).after($('<button class="fojjer"></button>'))
- })
- setup_fojjer();
- }
- $(document).ready(function() {
- FOJJJJJERRRR();
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement