Photos
Seating Chart NEW
SectionsCommentsTagsEvents
'; no_tickets += '
'; $("#available_tickets").html(no_tickets); }}).done(function(data) { }).fail(function(data) { }).always(function(data) { }); } function format_ticket_list(data){ var list_html = "";var low_price = 5;var high_price = 10; if(data!="" && data.length > 0){low_price = data[0]['price'];high_price = data[0]['price']; $(data).each(function (index, value) { //console.log(value); var ticket_id = value['ticket_id']; var section_name = value['section_name'].toLowerCase(); var row_name = value['row_name'].toLowerCase(); var their_section_id = value['their_section_id']; var splits = value['splits']; splits = splits.replace('[',''); splits = splits.replace(']',''); var provider = value['provider'] var buy_url = value['url']; if(provider == 'stubhub'){ buy_url += '?byo=true&sid='+their_section_id+'&ticket_id='+ticket_id; }else if(provider == 'ticketcity'){ buy_url += '&acv=seating_chart&utm_source=aviewfrommyseat&utm_medium=seating_chart&inventory='+ticket_id; } var price = value['price']; var currency = value['currency']; currency = get_currency_symbol(currency); var quantity = value['quantity']; if(price > high_price){high_price = price; }else if(price < low_price){low_price = price; } var this_ticket = ''; this_ticket += '
'; this_ticket += '
'; this_ticket += '
'+section_name+'
'; this_ticket += '
row '+row_name; this_ticket += ' | '+quantity; if(quantity < 2){ this_ticket += ' ticket'; }else{ this_ticket += ' tickets'; } this_ticket += ''; this_ticket += '
'; this_ticket += '
'; this_ticket += '
'+currency+price+'
'+provider+'
'; this_ticket += '
'; list_html += this_ticket; }); } // highest price foundslider_max = high_price;setup_slider();setup_price_scale(low_price, high_price, data); $("#available_tickets").