Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var arr = ['bearded','candycane','hot_chocolate','ginger','red_nose','common','candle','jumper'];
- $('img[src]').each(function(e){
- var el = $(this).attr('src');
- var repeat = true;
- arr.forEach(function(e){
- if(el.indexOf(e) != -1){
- repeat = false;
- }
- });
- if(repeat){
- setTimeout(function(){
- window.location.reload();
- }, 60000);
- }else{
- var audio = new Audio('http://www.sample-videos.com/audio/mp3/crowd-cheering.mp3');
- audio.play();
- window.open(el.parent('a').attr('href'), '_blank');
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement