DEF:INITION meets AUDIO ASSAULT

  • Sat 4th Nov 2017, 22:00 – Sun 5th Nov 2017, 07:00
  • VOLKS, 3 MADIERA DRIVE, BRIGHTON, East Sussex BN2 1PS
Ticket type Price B/F Quantity
1ST RELEASE
£6.00 £1.00
2ND RELEASE
£8.00 £1.00
FINAL RELEASE
£10.00 £1.00

Subtotal: £0.00


Event Information

var ticket_types = {"2747":7,"2748":9,"2749":11}; var tickets_in_basket = 0; var products_in_basket = 0; $(document).ready(function() { $('.basket-prev').removeClass('hidden'); $('.basket-prev').hide(); $('.ticket-quantity').change(function() { update_subtotal(); }); $(document).on('click', '.a-close-basket-prev', function(event){ event.preventDefault(); $('.basket-prev').hide(); }); function update_subtotal() { var subtotal = 0.00; var quantity = 0; $.each(ticket_types, function(id, total_price) { subtotal += ($('#ticket-quantity-' + id).val() * total_price); quantity += parseInt($('#ticket-quantity-' + id).val()); }); $("#subtotal").html('£' + $.number(subtotal, 2)); if (quantity === 0) { $('#btn-add-to-basket').addClass('disabled'); } else { $('#btn-add-to-basket').removeClass('disabled'); } } function add_to_basket() { // re-disable the add to basket button $('#btn-add-to-basket').addClass('disabled'); item_added = 0; var order_items = new Array(); var i = 0; $.each(ticket_types, function(id, total_price) { if ($('#ticket-quantity-' + id).val() > 0) { order_item = new Object(); order_item.event_id = 959; order_item.ticket_type_id = id; order_item.quantity = $('#ticket-quantity-' + id).val(); order_items[i] = order_item; i++; } }); post_to_basket(order_items); } function post_to_basket(order_items) { $('.basket-prev').hide(); $(".basket-prev").html(''); id = order_items[item_added].ticket_type_id; quantity = order_items[item_added].quantity; // add to basket $.post(window.deftickets.BASE_URL + "basket/ajax_add_item", { event_id : order_items[item_added].event_id, order_items : order_items }, function(data) { response = $.parseJSON(data); if (response.response === 'success') { tickets_in_basket = parseInt(response.body.total_basket_items); $('#items-in-basket').html('[' + response.body.total_basket_items + ']'); // amend subtotal $("#subtotal").html('£0.00'); var any_errors = false; $.each(response.body.items, function(index, value) { quantity = $('#ticket-quantity-' + index).val(); if (value.response === 'success') { // now disable quantities greater than those allowed $('#ticket-quantity-' + index + " option").each(function() { if (this.value > $('#ticket-quantity-' + index + " option:last-child").val() - quantity) { $(this).remove(); } }); if ($('#ticket-quantity-' + index + " option").size() === 1) { $("#ticket-type-tr-" + index).addClass("sold-out"); $("#ticket-type-tr-" + index + " span.ticket-name").append(" (Reached Per-order Maximum)"); } // re-select options to 0 quantities $('#ticket-quantity-' + index).val('0'); } else { any_errors = true; if (value.body.validation_errors[0].indexOf('Insufficient tickets available for sale') >= 0) { $(".basket-prev").append('

  • ' + $("#ticket-type-tr-" + index + " span.ticket-name").text() + ' × ' + quantity + '
    Sold out
  • '); $("#ticket-type-tr-" + index).addClass("sold-out"); $("#ticket-type-tr-" + index + " span.ticket-name").append(" (Sold Out)"); // now disable quantities greater than 0 $('#ticket-quantity-' + index + " option").each(function() { if (this.value > 0) { $(this).remove(); } }); } else if (value.body.validation_errors[0].indexOf('no longer on sale') >= 0) { $(".basket-prev").append('
  • ' + $("#ticket-type-tr-" + index + " span.ticket-name").text() + ' × ' + quantity + '
    No longer on sale
  • '); $("#ticket-type-tr-" + index).addClass("sold-out"); $("#ticket-type-tr-" + index + " span.ticket-name").append(" (No longer on sale)"); // now disable quantities greater than 0 $('#ticket-quantity-' + index + " option").each(function() { if (this.value > 0) { $(this).remove(); } }); } else { $(".basket-prev").append('
  • ' + $("#ticket-type-tr-" + index + " span.ticket-name").text() + ' × ' + quantity + '
    Unknown problem
  • '); } // re-select options to 0 quantities $('#ticket-quantity-' + index).val('0'); } }); animate_basket(response.body.basket_timeout_togo); if (any_errors === true) { $(".basket-prev").prepend('
  • Sorry but ' + response.body.total_items_not_added + ' ticket' + ((response.body.total_items_not_added !== '1') ? 's' : '') + ' were not added to your basket:
  • '); $(".basket-prev li:last-child").append('
    Close'); $(".basket-prev").slideDown(400); } } else { $.each(response.body.items, function(index, value) { quantity = $('#ticket-quantity-' + index).val(); if (value.body.validation_errors[0].indexOf('Insufficient tickets available for sale') >= 0) { $(".basket-prev").append('
  • ' + $("#ticket-type-tr-" + index + " span.ticket-name").text() + ' × ' + quantity + '
    Sold out
  • '); $("#ticket-type-tr-" + index).addClass("sold-out"); $("#ticket-type-tr-" + index + " span.ticket-name").append(" (Sold Out)"); // now disable quantities greater than 0 $('#ticket-quantity-' + index + " option").each(function() { if (this.value > 0) { $(this).remove(); } }); } else if (value.body.validation_errors[0].indexOf('no longer on sale') >= 0) { $(".basket-prev").append('
  • ' + $("#ticket-type-tr-" + index + " span.ticket-name").text() + ' × ' + quantity + '
    No longer on sale
  • '); $("#ticket-type-tr-" + index).addClass("sold-out"); $("#ticket-type-tr-" + index + " span.ticket-name").append(" (No longer on sale)"); // now disable quantities greater than 0 $('#ticket-quantity-' + index + " option").each(function() { if (this.value > 0) { $(this).remove(); } }); } else { $(".basket-prev").append('
  • ' + $("#ticket-type-tr-" + index + " span.ticket-name").text() + ' × ' + quantity + '
    Unknown problem
  • '); } // re-select options to 0 quantities $('#ticket-quantity-' + index).val('0'); }); $(".basket-prev").prepend('
  • Sorry but ' + response.body.total_items_not_added + ' ticket' + ((response.body.total_items_not_added !== '1') ? 's' : '') + ' were not added to your basket:
  • '); $(".basket-prev li:last-child").append(' Close'); $(".basket-prev").slideDown(400); } return; }); } $("button.basket").click(function() { add_to_basket(); }); function animate_basket(basket_timeout_time) { /*! * jQuery lightweight Fly to * Author: @ElmahdiMahmoud * Modified: @stephenbrown90 * Licensed under the MIT license */ var cart = $('.cart-box .cart a'); var imgtodrag = $('.item-pic').find("img").eq(0); if (imgtodrag) { var imgclone = imgtodrag.clone() .offset({ top: imgtodrag.offset().top, left: imgtodrag.offset().left }) .css({ 'opacity': '0.5', 'position': 'absolute', 'height': '212px', 'width': '150px', 'z-index': '999' }) .appendTo($('body')) .animate({ 'top': cart.offset().top + 10, 'left': cart.offset().left + 10, 'width': 75, 'height': 106 }, 1000, 'easeInOutExpo', function(){ $('.cart-box').animate({opacity:0.5}, 500, function(){ $('.cart-box').addClass('active'); $('.cart-box').animate({opacity:1}, 500); if ($("#countdown-timer").length === 0) { $('div.cart-box li.cart #items-in-basket').after(' - 15:00'); if(products_in_basket == 0) { $('div.cart-box li.cart a').after(' Checkout '); } $('#countdown-timer').countdown({until: "+ " + basket_timeout_time, format: 'MS', compact: true, onTick: check_countdown}); } else { $('#countdown-timer').countdown('option', {'until': "+ " + basket_timeout_time}); } }); }); imgclone.animate({ 'width': 0, 'height': 0 }, function () { $(this).detach() }); } } (function() { window.onload = function() { // Creating a reference to the mapDiv var mapDiv = document.getElementById('map_canvas'); // Creating a latLng for the center of the map var latlng = new google.maps.LatLng(50.81927, -0.13261); // Creating an object literal containing the properties // we want to pass to the map var options = { center: latlng, zoom: 15, streetViewControl: false, disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP, styles: [ { "stylers": [ { "color": "#3c4246" } ] }, {"featureType":"water","elementType":"geometry","stylers":[{"color":"#454b4f"}]}, {"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#353a3e"}]}, {"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#2c3135"}]}, {"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#444a4f"},{"weight":0.2}]}, {"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#2c3135"}]}, {"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#2c3135"}]}, {"featureType":"poi","stylers":[{"color":"#383d41"}]}, {"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#282d31"}]}, {"elementType":"labels.text.fill","stylers":[{"saturation":0},{"color":"#6e7377"}]}, {"elementType":"labels.icon","stylers":[{"visibility":"off"}]}, {"featureType":"transit","elementType":"geometry","stylers":[{"color":"#303539"}]}, {"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#383d41"}]}, {"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#383d41"},{"weight":1.2}]}] }; // Custom marker var image = 'https://www.deftickets.co.uk/assets/marker-def.png'; // Creating the map var map = new google.maps.Map(mapDiv, options); var marker = new google.maps.Marker({ position: latlng, map: map, draggable: false, title: 'VOLKS', animation: google.maps.Animation.DROP, icon: image }); google.maps.event.addListener(marker, "dragend", function(latLng) { $('#latLng_tracker').val(latLng.latLng); $('#save-location-update').show(); }); } })(); }); $('#flip-flyer').on('click', function(event){ event.preventDefault(); $('#flip-card').toggleClass('flipped'); }); $( document ).ready(function() { resize_image(); }); function resize_image() { if($(window).width() <= 766) { var height = $('.event-flyer:first img').height(); $('.event-flyer').height(height); } else { $('.event-flyer').removeAttr('style'); } } $(window).resize(function(){ resize_image(); });