PhotosSeating ChartSectionsCommentsTagsEvents
'; html += '
Try a green section
'; html += '
'; return html; } function format_mini_content(data){ var index = data[0]['index']; var image = data[0]['image']; var venue = data[0]['venue']; var section = data[0]['section']; var row = data[0]['row']; var seat = data[0]['seat']; var note = data[0]['note']; var member = data[0]['member_name']; var reviews = data[0]['reviews']; var rating = make_rating(data[0]['rating'],12); var location = ''; if(section != ""){ location += "section "+section; if(row != ""){ location += ", row "+row; } } var gallery_link = gallery_link = 'open_gallery(\''+section+'\');'; var html = ''; html += '
'; html += '
'; html += '
'+location+'
'; if(parseInt(reviews) < 2){ html += ''+reviews+' photo'; }else{ html += ''+reviews+' photos'; } html += '
'; html += '
'; html += ''+rating+''; html += '
'; if(note != ""){ html += '
'+stripslashes(note)+'
'; } html += '
'; return html;} function stripslashes(str) { return (str + '').replace(/\\(.?)/g, function (s, n1) { switch (n1) { case '\\': return '\\'; case '0': return '\u0000'; case '': return ''; default: return n1; } });} function open_gallery(section_name){ $.getJSON( "/ajax/venue_seat_by_type.php?jsoncallback=?", {"venue": "Allegacy Federal Credit Union Stadium", "photo_type": "football", "section": section_name, "total": "all" }, function(data) { //console.log(data); // set up big photo if(data!=""){ // safety checks var data_length = data.length; if(data_length > 0){ // set up the gallery format_gallery(data); var first_photo = data[0]['index']; // set up structured data get_photo_tags(first_photo, section_name,''); } } }) .done(function(data) { }) .fail(function(data) { }) .always(function(data) { });} function format_gallery(data){ var content = ''; var gallery_title = 'Allegacy Federal Credit Union Stadium section '+data[0]['section']+''; $("#gallery_title").html(gallery_title); $(data).each(function (index, value) { var index = value['index']; var image = value['image']; var venue = value['venue']; var section = value['section']; var row = value['row']; var seat = value['seat']; var member = value['member_name']; var reviews = value['reviews']; var video = value['video']; var rating = make_rating(value['rating'], 16); var note = stripslashes(value['note']); var clean_venue = clean_link_text(venue); var clean_section = clean_link_text(section); var clean_row = clean_link_text(row); var clean_seat = clean_link_text(seat); if(member == null){ member = 'anonymous'; } var play_button = ''; if(video != ""){ play_button = ''; } var photo_link = '/photo/'+index+'/'+clean_venue+'/section-'+clean_section+'/row-'+clean_row+'/seat-'+clean_seat+'/'; content += '
'; content += '
'; content += ''+member+''; content += ''+rating+''; content += '
'; content += '
'; content += ''+play_button+''; content += '
'; content += '
'; content += '
'+venue+'
'; content += '
'+note+'
'; content += '
'; content += '
'; content += '
'; content += '
'+section+'
'; content += '
section
'; content += '
'; content += '
'; content += '
'+row+'
'; content += '
row
'; content += '
'; content += '
'; content += '
'+seat+'
'; content += '
seat
'; content += '
'; content += '
'; content += '
'; }); // add reviews to div $("#reviews").html(content); // show gallery $("#sv_photo_gallery").show(); // hide main scroll bar $("body").css('overflow', 'hidden'); // make grey area clickable, to close gallery $("#sv_photo_gallery .grey").mousedown(function(){ $("body").css('overflow', 'auto'); $("#sv_photo_gallery").hide(); }); // make grey area clickable, to close gallery $("#sv_photo_gallery .close").mousedown(function(){ $("body").css('overflow', 'auto'); $("#sv_photo_gallery").hide(); });} function get_photo_tags(photo_id, section_name, row_name){ // clear old structured data first $("#structured_data").html(""); $("#structured_data").removeClass("structured_data"); $.getJSON( "/ajax/get_photo_tags.php?jsoncallback=?", {"photo_id": photo_id }, function(data) { if(data!=""){ format_structured_data(data, section_name, row_name); } }) .done(function(data) { }) .fail(function(data) { }) .always(function(data) { });} function format_structured_data(data, section_name, row_name){ // fallback safety, this should already be cleared $("#structured_data").html(""); $("#structured_data").removeClass("structured_data"); // get for format structured data var content = ''; var section_tags = data['section_tags']; var row_tags = data['row_tags']; if(section_tags != ""){ var section_tag_string = "Section %s is tagged with"; var bold_section_name = ''+section_name+''; section_tag_string = section_tag_string.replace('%s', bold_section_name); content += '
'; content += ''+section_tag_string+':'; content += '
'; $.each(section_tags, function(key, val) { content += ''; content += '✓ '; content += ''+val['question']+''; content += ''; }); content += '
'; content += '
'; } if(row_tags != ""){ var row_tag_string = "Row %s is tagged with"; var bold_row_name = ''+row_name+''; row_tag_string = row_tag_string.replace("%s", bold_row_name); content += '
'; content += ''+row_tag_string+':'; content += '
'; $.each(row_tags, function(key, val) { var icon = '✓'; if(val['question'] == 'is accessible'){ icon = ''; } content += ''; content += ''+icon+' '; content += ''+val['question']+''; content += ''; }); content += '
'; content += '
'; } if(content != ""){ $("#structured_data").addClass("structured_data"); $("#structured_data").html(content); }} $(function(){ $("#dragable_canvas").draggable({cancel: "#mini_popup"}); $("#zoom_in").click(function(){ if(zoom_level < 5){ zoom_level ++; } do_zoom(zoom_level); }); $("#zoom_out").click(function(){ if(zoom_level > 0){ zoom_level --; }else{ $("#") } do_zoom(zoom_level) });$("#canvas").dblclick(function(){if(zoom_level < 5){ zoom_level ++; } do_zoom(zoom_level);}); var container_width = $("#canvas_container").width(); //console.log("container_width: "+container_width); var section_map = {"20":{"path":"M149.7,169.9l-10.2-24.6l-5,2.1l-5.7-13.9l5-2.1L118,93c-8.8,3.7-13.7,6.2-13.7,6.2l31.8,76.3L149.7,169.9z"}, "19":{"path":"M151.1,169.3l7.3-3l3.7,7.6l10.6-3.5l-8.1-33.4l-5.3,1.3l-3.5-14.6l5.3-1.3l-10-41.1c-13,4-23.8,8-31.6,11.2 l15.8,38.3l5-2.1l5.7,13.9l-5,2.1L151.1,169.3z"}, "18":{"path":"M187.9,71.9c-13.1,2.7-25,5.8-35.5,8.9l10,41.2l5.3-1.3l3.5,14.6l-5.3,1.3l8.1,33.2l9.1-3l3.4,8.4 c0,0,3.6-1,10.5-2.3l-3.7-41.3l-5.4,0.5l-1.3-15l5.4-0.5L187.9,71.9z"}, "17":{"path":"M219.8,130.7l-0.7-15l5.4-0.2l-2.2-49c-11.6,1.3-22.6,3-32.9,5.1l4.1,45l5.4-0.5l1.3,15l-5.4,0.5l3.7,41.2 c6.8-1.2,16.4-2.6,28.5-3.6l-1.8-38.6L219.8,130.7z"}, "16":{"path":"M256.9,128.4h-5.4v-15h5.4v-49c-11.5,0.1-22.5,0.9-33.2,2l2.3,49.1l5.4-0.2l0.7,15l-5.4,0.2l1.8,38.6 c8.4-0.6,17.9-1,28.4-1.1V128.4z"}, "15":{"path":"M258.4,113.4h5.4v15h-5.4v39.5c8.5,0,15.9,0.3,22.4,0.7l3.4-38.5l-5.4-0.5l1.3-15l5.4,0.5l4.4-49.8 c-9.2-0.7-18.8-1.1-28.7-1.1c-1,0-2,0-3,0V113.4z"}, "14":{"path":"M285.8,130.2l-3.4,38.4c8.4,0.5,15.2,1.3,20.7,2.2l10.6-37.9l-5.2-1.5l4-14.5l5.2,1.5l13.4-47.8 c-12.2-2.2-25.4-4-39.5-5.2l-4.4,49.8l5.4,0.5l-1.3,15L285.8,130.2z"}, "13":{"path":"M319.1,118.9l5.2,1.5l-4,14.5l-5.2-1.5l-10.6,37.7c10.8,1.8,15.5,3.6,15.5,3.6l3.9-5.3l7.6,1.6l11.8-32.9 l-5.1-1.8l5.1-14.1l5.1,1.8l16.4-45.5c-9.6-2.6-20.5-5.2-32.3-7.4L319.1,118.9z"}, "12":{"path":"M375.8,130.8l17.8-43.3c-7.4-2.7-16.6-5.8-27.3-8.8l-16.4,45.6l5.1,1.8l-5.1,14.1l-5.1-1.8L333,171.3l13.1,2.8 l4.8-6.8l8.4,3.4l10.7-26.1l-5-2.1l5.7-13.9L375.8,130.8z"}, "11":{"path":"M415.1,96.4c0,0-7.2-3.6-20.1-8.4l-17.9,43.3l5,2.1l-5.7,13.9l-5-2.1l-10.7,26l15.6,6.2L415.1,96.4z"}, "10":{"path":"M360.9,319.3l13.2,31.9l5-2.1l5.7,13.9l-5,2.1l19.5,47.3c9.8-4,15.2-6.9,15.2-6.9l-39-90.8L360.9,319.3z"}, "9":{"path":"M359.5,319.7l-12.8,4L344,317l-10.5,2.7l12.7,39.2l5.2-1.7l4.6,14.3l-5.2,1.7l15.6,48.1l1,2.7 c12.4-3.8,22.7-7.7,30.5-10.9l-19.5-47.3l-5,2.1l-5.7-13.9l5-2.1L359.5,319.7z"}, "8":{"path":"M349.4,373.5l-5.2,1.7l-4.6-14.3l5.2-1.7L332.1,320l-13.2,3.4l-2.3-6.8c0,0-1,1.2-7.4,2.5l7.7,46.2l5.4-0.9 l2.5,14.8l-5.4,0.9l6.1,36.5c18.7-3,32.1-6.2,35.6-7.1L349.4,373.5z"}, "7":{"path":"M317.9,380.4l-5.4,0.9l-2.5-14.8l5.4-0.9l-7.7-46.2c-5,0.9-12.6,1.8-24.5,2.3l2.1,46.3l5.4-0.2l0.7,15 l-5.4,0.2l1.8,38.3c13.2-1.1,25.5-2.7,36.1-4.4L317.9,380.4z"}, "6":{"path":"M284.6,383l-5.4,0.2l-0.7-15l5.4-0.2l-2.1-46.3c-6.9,0.3-15.2,0.5-25.1,0.5v45.8h5.4v15h-5.4v39.7 c10.1-0.1,20.1-0.6,29.7-1.4L284.6,383z"}, "5":{"path":"M255.2,383.1h-5.4v-15h5.4v-45.9c-11.1,0-20.6-0.4-28.8-1l-4,45.1l5.4,0.5l-1.3,15l-5.4-0.5l-3.5,39.2 c11.3,1.4,23.3,2.3,35.7,2.3c0.7,0,1.4,0,2,0V383.1z"}, "4":{"path":"M220.8,366.2l4-45.1c-7.2-0.6-13.3-1.3-18.4-2L194,363.5l5.2,1.5l-4,14.5l-5.2-1.5l-10,35.8 c10.4,2.5,22.7,4.9,36.1,6.6l3.5-39.2l-5.4-0.5l1.3-15L220.8,366.2z"}, "3":{"path":"M188.5,377.5l-5.2-1.5l4-14.5l5.2,1.5l12.4-44.2c-16.1-2.5-22.4-5.6-22.4-5.6l-2.3,9.4l-3.4-1.4l-12.7,35.3 l5.1,1.8l-5.1,14.1l-5.1-1.8L147,404.2c2.4,0.9,14.2,5,31.4,9.1L188.5,377.5z"}, "2":{"path":"M130,358.7l-18.4,47.8c7.2,3.4,16.9,7.8,28.6,12.2l17.5-48.7l-5.1-1.8l5.1-14.1l5.1,1.8l12.7-35.3l-15.8-6.6 l-4.9,7.9l-8.9-4.5l-10.5,27.3l5.1,2l-5.4,14L130,358.7z"}, "1":{"path":"M128.6,358.2l-5.1-2l5.4-14l5.1,2l10.5-27.5l-14.5-7.3l-32.7,89.7c0,0,4.6,2.7,12.9,6.7L128.6,358.2z"}}; var props = {"props":{"path":"M7.6,241.9c0,18.4,12,19.1,12,19.1v15.8h6v12h17.3v3h6l17.3,17.3l16.5-16.5h7.5v-22.9c0,0,4.9-8.3,4.9-25.5 s-4.9-25.9-4.9-25.9v-24.6h-6.9L66,176.4l-17.1,17.1h-5.6v4.5H26.4v10.1h-7.5v14.6C18.9,222.7,7.6,223.5,7.6,241.9z"}, "props_x5F_decan_x5F_hill":{"path":"M397.7,192.7l-5.6,6.8l7.9,10.1l-7.1,4.5c0,0,8.3,9.8,8.3,30s-8.6,26.7-8.6,26.7l7.1,6.8l-9,10.5l7.1,5.6 L375.9,314l29.7,65.3c0,0,74.7-46.2,74.7-137.4s-72.1-124.3-72.1-124.3l-30,60.8L397.7,192.7z"}, "props_x5F_decan_x5F_tower":{"path":"M362,409.3l5.4,14.6c-28.2,8.7-66.8,17.3-110.1,17.3c-45.5,0-86.6-11.2-115.7-22l4.9-15.2 c0,0,50.3,18.8,106.6,18.8S362,409.3,362,409.3z"}}; var bg = {"bg":{"path":"M89.6,402.2c0,0,67,44.7,168.4,44.7s163.3-39.7,163.3-39.7l-9-22.5c0,0,74.7-53.1,74.7-144.3 s-74.1-128.8-74.1-128.8L423,91.9c0,0-69.8-33.2-166.1-33.2S96.4,95.3,96.4,95.3l14.1,33.2l-61.9,61.9v104.7l59.6,58.6L89.6,402.2z "}}; var style_props = { "fill": "#D0E1EC", "fill-opacity": 1, "stroke": "#D0E1EC", "stroke-width": 1, "stroke-opacity": 1 }; var style_bg = { "fill": "#ebf7fe", "fill-opacity": 1, "stroke": "#369", "stroke-width": 2, "stroke-opacity": 1 }; var style_grass = { "fill": "#098042", "fill-opacity": 1, "stroke": "#804E1F", "stroke-width": 8, "stroke-opacity": 1 }; style_font_section = { "font-size": 6.5, "font-family": "Arial, Helvetica, sans-serif", "cursor":"pointer", "fill": "#696969", "width":"30px" }; style_font_section_filled = { "font-size": 6.5, "font-family": "Arial, Helvetica, sans-serif", "cursor":"pointer", "fill": "#696969" }; style_sections = { "fill": "#fff", "fill-opacity": 1, "stroke": "#36c", "stroke-width": 1, "stroke-opacity": 1, "cursor":"pointer" }; style_section_filled = { "fill": "#A3C266", "fill-opacity": 1, "stroke": "#36c", "stroke-width": 1, "cursor":"pointer" }; style_section_filled_active = { "fill": "#dce8c5", "fill-opacity": 1, "stroke": "#36c", "stroke-width": 1, "cursor":"pointer" }; style_section_current = { "fill": "#A3C266", "fill-opacity": 1, "stroke": "#36c", "stroke-width": 1, "cursor":"pointer" }; style_sections_highlighted = { "fill": "#ffffa0", "fill-opacity": 1, "stroke": "#36c", "stroke-width": 1, "stroke-opacity": 1, "cursor":"pointer" }; style_section_filled_highlighted = { "fill": "#7aa32d", "fill-opacity": 1, "stroke": "#36c", "stroke-width": 1, "cursor":"pointer" }; // container_width was 1800 paper = Raphael("canvas", container_width, container_width); paper.renderfix(); bg_shape = paper.set(); grass_shape = paper.set(); sections = paper.set(); section_extras = paper.set(); section_text = paper.set(); clickable_section = paper.set(); clickable_section_text = paper.set(); highlighted_section = paper.set(); // props & suites if(typeof bg !== 'undefined'){ $.each( bg, function( key, value ) { bg_shape.push(paper.path(value.path)); }); bg_shape.attr(style_bg); } // grass for ballparks if(typeof grass !== 'undefined'){ $.each( grass, function( key, value ) { grass_shape.push(paper.path(value.path)); }); grass_shape.attr(style_grass); } var field = paper.image("/seatingcharts/fields/football_avfms.png",0,0,1054,489); field.attr({"width":255, "height":118});field.transform("R0 T129,186.5"); // props & suites if(typeof props !== 'undefined'){ $.each( props, function( key, value ) { section_extras.push(paper.path(value.path)); }); section_extras.attr(style_props); } var array_key; // sections $.each( section_map, function( key, value ) { array_key = section_key(key); // section shape all_section_names[array_key] = paper.path(value.path).data({"sec":array_key}); sections.push(all_section_names[array_key]); // bbox of section section_box = all_section_names[array_key].getBBox(); // section text all_section_text[array_key] = paper.text(0, 0, clean_out_text(key)).data({"sec":array_key}); all_section_text[array_key].translate(section_box.x+(section_box.width/2),section_box.y+(section_box.height/2)); section_text.push(all_section_text[array_key]); }); sections.attr(style_sections); sections.data("highlighted",false); sections.data("clickable",false); section_text.attr(style_font_section); section_text.data("highlighted",false); section_text.data("clickable",false); // would this replace the other one sections.mousedown(function(e){ var section = this.data("sec"); section = clean_out_text(section); var center_x = (e.pageX - $('#canvas').offset().left)-120+($('#canvas').position().left); var center_y = (e.pageY - $('#canvas').offset().top)-270+($('#canvas').position().top); make_mini_photo_popup(center_x, center_y, section); }); section_text.mousedown(function(e){ var section = this.data("sec"); section = clean_out_text(section); var center_x = (e.pageX - $('#canvas').offset().left)-120+($('#canvas').position().left); var center_y = (e.pageY - $('#canvas').offset().top)-270+($('#canvas').position().top); make_mini_photo_popup(center_x, center_y, section); }); sections.transform("S0.9"); section_extras.transform("S0.9"); // get clickable sections find_sections_with_photos(venue); // move text to front do_to_front(); paper.setViewBox(0,0,500,500,true); zoom_level = 4; $("#canvas svg").css("overflow","visible"); //paper.setSize(800,1200); $("#seat_finder_form input").change(function(){ // show a spinner, starting now var filter = $(this).val(); make_filter_request("211","football",filter); });});
By continuing to use our site, you agree to us using cookies in accordance with our Cookie PolicyClose