Clubs and Bars

Popular choices

'); }else{ $(options.element).prepend(''); } } var removeBar = function(func){ if(options.acceptOnScroll) $(document).off('scroll'); if(typeof(func)==='function') func(cookieValue); if(options.effect=='slide'){ $('#cookie-bar').slideUp(300,function(){$('#cookie-bar').remove();}); }else if(options.effect=='fade'){ $('#cookie-bar').fadeOut(300,function(){$('#cookie-bar').remove();}); }else{ $('#cookie-bar').hide(0,function(){$('#cookie-bar').remove();}); } $(document).unbind('click',anyClick); }; var cookieAccept = function(){ document.cookie = cookieEntry.replace('{value}','accepted'); removeBar(options.acceptFunction); }; var cookieDecline = function(){ var deleteDate = new Date(); deleteDate.setTime(deleteDate.getTime()-(864000000)); deleteDate = deleteDate.toGMTString(); aCookies=document.cookie.split('; '); for (i=0;i=0){ document.cookie = aCookie[0]+'=0; expires='+deleteDate+'; domain='+options.domain.replace('www','')+'; path=/'; }else{ document.cookie = aCookie[0]+'=0; expires='+deleteDate+'; path=/'; } } document.cookie = cookieEntry.replace('{value}','declined'); removeBar(options.declineFunction); }; var anyClick = function(e){ if(!$(e.target).hasClass('cb-policy')) cookieAccept(); }; $('#cookie-bar .cb-enable').click(function(){cookieAccept();return false;}); $('#cookie-bar .cb-disable').click(function(){cookieDecline();return false;}); if(options.acceptOnScroll){ var scrollStart = $(document).scrollTop(),scrollNew,scrollDiff; $(document).on('scroll',function(){ scrollNew = $(document).scrollTop(); if(scrollNew>scrollStart){ scrollDiff = scrollNew - scrollStart; }else{ scrollDiff = scrollStart - scrollNew; } if(scrollDiff>=Math.round(options.acceptOnScroll)) cookieAccept(); }); } if(options.acceptAnyClick){ $(document).bind('click',anyClick); } } }; $.cookieBar({ }); })(jQuery);
'); }); $(this).find('li').contents().unwrap(); }); // ADMIN PAGES $('#edit_page_buttons ul').addClass('button-group'); $('#edit_page_buttons ul li').each(function(){ $(this).addClass('button'); }); $('#pnlTabs ul').addClass('button-group'); $('#pnlTabs ul li').each(function(){ $(this).addClass('button'); }); $('.list_controls').addClass('grid-x grid-padding-x small-up-4 medium-up-6 large-up-8'); $('.list_controls a').each(function(){ $(this).wrap('
'); }); $('#ulAdmin li a').each(function(){ $adminname = $(this).text(); $adminname = $adminname.replace(' Admin',''); $(this).text($adminname); }); // VENUE PAGES // Changing social media buttons markup $('.venue-social a').each(function(){ $(this).empty(); }); // Change venue address $('.venue-contact dd:first-child').each(function(){ $address = $(this).html(); $address = $address.replace(/
/gi,', '); $address = $address.replace(/, , , /gi,', '); $address = $address.replace(/, , /gi,', '); $address = $address.replace(', UNITED KINGDOM,',''); $(this).empty().text($address); }); // Remove text from number $('.msl_phone').each(function(){ $phone = $(this).text(); $phone = $phone.replace('Tel:',''); $(this).text($phone); }); // Change map width $('#venue-map iframe').each(function(){ $width = $(this).parent().innerWidth(); $(this).attr('width',$width); }); // Change map location $('#venue-map iframe').each(function(){ $mapsrc = $(this).attr('src'); $mapsrc = $mapsrc.replace('VENUEADDRESS', $address); $(this).attr('src',$mapsrc); }); // Events Calendar $(document).on('click','.msl_event_calendar td',function(){ $('.msl_event_calendar td').removeClass('active'); $('#events-calendar-list').empty(); $(this).addClass('active'); $dailylist = $(this).find('.msl-cal-wrapper').html(); $month = $('.msl_event_calendar_title td:nth-child(2)').text(); $('#events-calendar-list').prepend('What\'s On: ').append( $dailylist ); $('#events-calendar-list .msl-cal-hoverbox').before( ' ' + $month ); }); // EVENTS // Rearrange elements for tickets section $('.event_ticket').each(function(){ $ticket_quantity = $(this).find('select'); $ticket_title = $(this).find('span'); $ticket_buy = $(this).find('input[type="submit"]'); $(this).empty(); $(this).append($ticket_title,$ticket_quantity,$ticket_buy); $(this).find('span').wrap('
'); $(this).find('select').wrap('
'); $(this).find('input[type="submit"]').val('Buy Now').wrap('
'); }); }); $(document).foundation();