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": "Memorial Stadium (Indiana)", "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 = 'Memorial Stadium (Indiana) 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 = {"101":{"path":"M109.2,136.6l-2.5,1.1l-2.8-6.4l4.6-2l-9.7-21.8c-7.6,4.8-8.4,5-13.7,8.6l19.8,38.2l10.1-5.8L109.2,136.6z"}, "101.":{"path":"M109.9,100.8c-3,1.7-6,3.5-9.1,5.3l13.4,28.3l8.2-3.4L109.9,100.8z"}, "102":{"path":"M129,128.3l-2.2-6.7l4.7-1.6l-8.7-26c-4.7,2.1-8.8,4.3-13,6.7l12.6,30.2L129,128.3z"}, "102.":{"path":"M137.3,87.6c-4.2,1.8-8.2,3.7-12.3,5.5l9.2,25.4l10.7-2.8L137.3,87.6z"}, "103":{"path":"M149.2,114.6l4.8-1.3l-8.5-29.1c-2.9,1.1-5.6,2.2-8.2,3.4l7.6,28.1L149.2,114.6z"}, "103.":{"path":"M160.3,79.5c-4.3,1.3-8.4,2.8-12.5,4l9.2,28.3l10.2-2.4L160.3,79.5z"}, "104":{"path":"M171.7,108.4l4.9-1.9l-6.2-29.6c-3.4,0.7-6.8,1.7-10.1,2.7l6.8,29.9L171.7,108.4z"}, "104.":{"path":"M186.1,73.9c-4.6,0.7-9.1,1.5-13.5,2.4l8.4,36.4l10.4-1.7L186.1,73.9z"}, "105":{"path":"M197.7,110l-0.7-6l5-0.4l-3.1-31.5c-4.3,0.5-8.5,1.1-12.7,1.8l5.3,37.1L197.7,110z"}, "105.":{"path":"M213.1,81.9c-3.6,0.3-5.9,0.8-5.9,1.4L205,71.5c-1.3,0.1-2.7,0.3-4,0.4l3.8,30.7l9.3-1L213.1,81.9z"}, "106":{"path":"M221.2,100.8h5l-0.3-19.4c-5,0-9.4,0.2-12.8,0.5l1.1,19.7L221.2,100.8z"}, "106.":{"path":"M237.1,81.4c-2.9-0.1-5.8-0.1-8.6-0.1l0.7,19l7.9-0.1L237.1,81.4L237.1,81.4z"}, "107":{"path":"M245,100.1l0.7-18.5c-2.8-0.1-5.7-0.2-8.6-0.2v18.8L245,100.1z"}, "107.":{"path":"M261.5,82.7c-3.2-0.4-7.9-0.7-13.2-0.9l-0.3,19h5l7.4,0.5L261.5,82.7z"}, "108":{"path":"M269.2,101.8l3.5-31.3c-1.5-0.1-3-0.2-4.5-0.3l-3.2,13c-0.8-0.2-2-0.4-3.5-0.6l-1.1,18.6L269.2,101.8z"}, "108.":{"path":"M288.7,73c-4.4-0.9-8.9-1.8-13.7-2.2l-2.9,31.9l5,0.4l-0.6,7l6.7,1.8L288.7,73z"}, "109":{"path":"M290.8,113.8l7.3-39c-3.2-0.5-6.4-1.2-9.5-1.8l-5.5,38.8L290.8,113.8z"}, "109.":{"path":"M314.6,78.7c-4.3-1.1-8.6-2.2-13.2-3.6l-6.2,32.2l4.9,0.8l7.2,2L314.6,78.7z"}, "110":{"path":"M315.9,112.6l9.1-31.2c-3.4-0.9-6.9-1.8-10.5-2.7l-7.2,31.5L315.9,112.6z"}, "110.":{"path":"M337.8,86c-3.2-1.3-6.6-2.7-10.7-4l-9.2,31.5l5.8,1.4l5.8,1.7L337.8,86z"}, "111":{"path":"M339.5,119.4l10.9-27.9c-4.4-1.9-8.3-3.7-12.6-5.5l-8.2,30.5L339.5,119.4z"}, "111.":{"path":"M365.7,98.6c-4.2-2.1-8.6-4.1-13.2-6.2l-10.8,27.9l5.6,1.9l-2.7,6.5l7.2,3.1L365.7,98.6z"}, "112":{"path":"M358.2,134.6l13.7-32.6c-2.1-1.2-4.1-2.3-6.2-3.3L351.9,132L358.2,134.6z"}, "112.":{"path":"M388.2,112.8c-4.1-2.5-9.4-6.1-14.4-9.6L363,129.3l5.6,2.1l-2.9,6.4l-2.5-1.1l-4.5,10.2l17.6,10.2l6.3-10.7 l-8.5-5.6L388.2,112.8z"}, "1":{"path":"M135.9,191 145.6,186.7 122.4,131 114.2,134.4 111.3,135.7 122.4,159.2 120.6,160 114.9,148.4 104.8,154.2 126.1,195.3 133.8,191.9 128.1,177.7 125.3,178.8 122.6,172.2 130.4,169 133.2,175.6 130.5,176.7 z"}, "2":{"path":"M134.1,118.5 136.7,125.7 133.7,126.7 142.6,151.1 140.8,151.7 131.5,127.4 129,128.3 122.4,131 145.6,186.7 150.9,184.4 146.4,170 143.6,171 141.2,164.2 149.2,161.4 151.6,168.1 148.9,169.1 155.7,190.5 164.3,187.9 144.9,115.7 z"}, "3":{"path":"M156.9,111.9 159,118.3 155.9,119.1 163.4,145 161.5,145.5 153.7,119.7 151.1,120.4 149.2,114.6 144.9,115.7 164.3,187.9 171.4,185.7 166.2,163.3 163.4,164.1 161.4,157.2 169.6,154.9 171.5,161.8 168.8,162.6 175.4,190.5 185.1,188.1 167.1,109.5 z"}, "4":{"path":"M181,112.8l-3.1,0.6l5.6,25.4l-1.9,0.4l-5.9-25.3l-2.6,0.5l-1.3-5.9l-4.5,1.1l18,78.7l6.1-1.5l-5.5-27.6 l-2.9,0.6l-1.5-7l8.3-1.8l1.5,7l-2.8,0.6l5.8,32.5c5.1-0.8,3.9-0.6,8.4-1.5l-11.1-78.4L181,112.8z"}, "5":{"path":"M205,102.5l0.8,6.8l-3.2,0.3l3,25.8l-1.9,0.2l-3.3-25.8l-2.7,0.2l-6.3,1l11.1,78.4c1.4-0.3,3.4-0.7,6.4-1.3 l-3.3-33.1l-2.9,0.2l-0.4-6.2l8.5-0.5l0.4,6.2l-3,0.2l2.6,36.1c2.7-0.4,5.6-0.8,8.5-1l-5.1-88.5L205,102.5z"}, "6":{"path":"M229.2,100.4l0.3,7.4h-3.2l0.8,26h-1.9l-1.2-26h-2.7l-0.1-7.1l-7,0.7l5.1,88.5c2.7-0.2,5.4-0.4,8-0.4 l-2.7-35.7l-2.9,0.1l-0.3-6.2l8.5-0.3l0.3,6.2l-3,0.1l2,35.8c2.6,0,5.2,0,7.9,0v-89.2L229.2,100.4z"}, "7":{"path":"M253,100.8l-0.1,7.1h-2.7l-1.2,26h-1.9l0.8-26h-3.2l0.3-7.7l-7.9,0.1v89.2c2.6,0,5.2,0,7.8,0.1l0.6-35.6h-3 v-7.2h8.5v7.2h-2.9l-1.3,35.6c2.8,0,5.7,0.1,8.5,0.2l5.1-88.5L253,100.8z"}, "8":{"path":"M276.5,110l-2.7-0.2l-3.1,25.8l-1.9-0.2l2.7-25.9l-3.2-0.2l0.8-7.5l-8.8-0.6l-5.1,88.5 c2.4,0.1,4.8,0.2,7.1,0.3l3.3-34.4l-3-0.2l0.6-7.1l8.5,0.7l-0.6,7.1l-2.9-0.2l-3.7,32.6l7.5,1.2l11-77.9L276.5,110z"}, "9":{"path":"M300.1,108.2 298.9,115.2 296.2,114.7 290.7,140.1 288.8,139.8 294,114.3 290.8,113.8 283.2,111.8 272.1,189.6 278.6,190.7 285.2,157.4 282.3,156.9 283.5,149.8 291.9,151.3 290.7,158.3 287.8,157.9 281.7,187.2 289.4,189 307.4,110.2 z"}, "10":{"path":"M323.8,114.8 321.8,121.6 319.2,120.8 312,145.5 310.1,145 317,120.2 313.9,119.3 315.9,112.6 307.4,110.2 289.4,189 297,190.8 305.7,162.5 302.8,161.7 304.8,154.8 312.9,157.2 311,164.1 308.2,163.3 301,186 310.1,188.8 329.6,116.5 z"}, "11":{"path":"M344.6,128.8 342.1,127.8 332.5,151.7 330.7,151 340,127 337,125.8 339.5,119.4 329.6,116.5 310.1,188.8 317,190.8 324.4,169.1 321.6,168.1 323.9,161.3 332,164.1 329.6,170.9 326.9,169.9 321,185.4 328.3,188.6 351.9,131.9 z"}, "12":{"path":"M352.9,160.4 351.1,159.6 361.1,135.9 358.2,134.6 351.9,131.9 328.3,188.6 335.1,191.5 342.3,176.4 339.6,175.1 342.5,168.6 350.3,172.1 347.3,178.6 344.7,177.4 337.3,192.2 345.5,195.8 353.2,187.2 350.8,184.8 374.1,160.9 376.3,157.2 358.7,147 z"}, "13":{"path":"M371.9,173.2l-3-3.3l-10.5,10.5l3.4,3.7l-5.8,5.6l-0.9-0.9c-1.6,1.2-8.7,9-8,9.6l1.2,2.6l18.9-12.9l-3.4-6.2 L371.9,173.2z"}, "13.":{"path":"M379,166.6 374.9,162.6 384.5,147.4 390.2,150.5 394.4,156.2 z"}, "13..":{"path":"M395.5,158.2l-16.1,10.5c0,0-3.6,3.4-3.2,3.7c1.8,1.8,3.2,4,4.5,6.3l19.4-13.2 C398.5,162.8,397,160.3,395.5,158.2z"}, "14":{"path":"M349.6,203.6 360.7,198.4 359.5,195.8 369.2,191.7 367.2,188 348.3,200.8 z"}, "14.":{"path":"M362.7,202.9l-0.7-2.7l-12.1,5.1l1.3,3.3l-2.7,1.2c0.8,1.5,1.6,3,2.3,4.7l23.4-9.4c-0.7-2-1.4-4-2.1-6 L362.7,202.9z"}, "14..":{"path":"M406.7,180.1l-21,9.7c1.2,2.9,2.4,5.9,3.5,9.2l21.4-8.6C409.3,186.8,408,183.3,406.7,180.1z"}, "14...":{"path":"M380.6,178.8c1.5,2.8,2.7,5.8,4.2,9l21.1-9.8c-2-4.8-3.9-8.9-5.9-12.5L380.6,178.8z"}, "15":{"path":"M352.7,220.3l14-4.4l-0.8-2.8l10-2.5c-0.6-1.8-1.2-3.6-1.8-5.4l-23.4,9.4C351.5,216.3,352.2,218.3,352.7,220.3 z"}, "15.":{"path":"M364.3,218.7l-11.1,3.5c0.6,2.2,1,4.5,1.4,6.9l11.6-1.7C365.7,223.2,365.1,220.1,364.3,218.7z"}, "15..":{"path":"M415.2,205l-22.2,6.5c0.4,1.6,0.9,3.2,1.3,4.9L417,211C416.4,208.9,415.8,206.9,415.2,205z"}, "15...":{"path":"M389.2,199c1.1,3.2,2.2,6.6,3.2,10.2l22.1-6.5c-1.3-4.4-2.7-8.5-4-12.4L389.2,199z"}, "P16":{"path":"M380.3,231.5l0.3,2.9l10.5-1c-0.1-2-0.2-4-0.3-6l-10.4,1.6c0-1.8-0.7-5.2-1.8-9.4l-8.4,1.5 c0.6,2.8,1,6.7,1.3,11.1L380.3,231.5z"}, "16":{"path":"M354.6,229.1c0.4,2.5,0.7,5.1,0.9,7.7l11.5-1.1c-0.2-3-0.5-5.9-0.8-8.3L354.6,229.1z"}, "16.":{"path":"M367.1,237.7l-11.5,1.1c0.2,2.9,0.2,5.8,0.2,8.7h11.7C367.4,244.2,367.3,240.9,367.1,237.7z"}, "P16.":{"path":"M372,247.5l19.5-0.3c0-4-0.1-8-0.2-11.9l-10.4,1l0.3,3.1l-9.3,1C372,242.8,372,245.2,372,247.5z"}, "P17":{"path":"M372,249.6c0,2.4-0.1,4.8-0.2,7.1l9.4,1l-0.2,3.5l10.3,0.8c0.1-4,0.2-8,0.2-12.1L372,249.6z"}, "17":{"path":"M355.8,247.5c-0.1,3.9-0.3,7.8-0.6,11.6l12.3,1c0.1-4,0.1-8.3,0-12.6H355.8z"}, "17.":{"path":"M367.4,262.1l-12.4-1c-0.3,2.3-0.6,4.6-0.9,6.8l12.3,2.6C366.8,268.1,367.3,265.2,367.4,262.1z"}, "P17.":{"path":"M380.3,268.2l9.6,1.8c0.1-1.9,0.2-3.9,0.3-5.9l-9.4-0.9l-0.2,2.9l-9.4-1.1c-0.4,4.3-0.9,8.1-1.5,10.8l8.9,2.4 C379.4,274.9,380,271.6,380.3,268.2z"}, "18":{"path":"M354,267.9c-0.5,2.8-1,5.4-1.5,7.9l11.9,2.3c0.1-0.5,1.1-3.4,2-7.6L354,267.9z"}, "18.":{"path":"M366.4,284.1l0.3-2.3l-14.7-4c-0.4,1.7-0.9,3.4-1.4,4.9l23.9,9.5c0.6-1.5,1.1-3.1,1.6-4.6L366.4,284.1z"}, "18..":{"path":"M414.8,294.2l-22-5.8c-1,2.8-2,6.2-3.1,9.8l21.2,8.4C412.3,302.5,413.6,298.4,414.8,294.2z"}, "18...":{"path":"M393.6,286l21.8,5.8c0.5-1.9,1-3.8,1.4-5.6l-22.4-5.2C394.9,281.1,394.5,283,393.6,286z"}, "19":{"path":"M348.5,288l3.1,1.2l-1.3,2.6l11.4,4.9l1.2-2.3l9.1,4.1c0.9-2.1,1.7-4.2,2.5-6.3l-23.9-9.5 C349.9,284.7,349.2,286.5,348.5,288z"}, "19.":{"path":"M359.6,302 360.3,298.9 349.1,294 348.3,296.1 367,309.3 368.8,306.1 z"}, "19..":{"path":"M405.9,319.2l-20.6-9.3c-1.5,3.4-3.3,6.5-4.9,9l18.9,13.4C401.7,328,403.9,323.6,405.9,319.2z"}, "19...":{"path":"M389.7,298.2c-1,3.1-2.1,6.3-3.4,9.4l20.6,9.3c1.4-3.4,2.8-6.8,4-10.3L389.7,298.2z"}, "20":{"path":"M347.1,299.6c-0.3,0.3,7.6,9,7.9,8.7l1.6-0.6l5.1,6.3l-3.4,3.5l10.8,10.5l3.1-3.8l-8.6-9.1l3.4-5.8l-18.6-13.2 L347.1,299.6z"}, "20.":{"path":"M374.5,336.8l-23.6-24.2l2.4-3l-7.7-7.5l-3.5,1.3l32.9,52.2c2.7-1.3,5.5-2.7,8.3-4.1L374.5,336.8z"}, "20..":{"path":"M375.5,334.5 379.2,331 393.6,341 390.1,346.4 384.5,349.9 z"}, "20...":{"path":"M380.4,318.8c-2.5,3.8-4.5,6.3-4.2,6.3l4.8,4.6l14.6,8.9c1.3-2.1,2.6-4.2,3.8-6.4L380.4,318.8z"}, "21":{"path":"M337.9,304.9l6,13.3l2.6-1.2l2.8,6.7l-7.2,3.1l-2.7-5.7l2.5-1.2l-6.3-14.1l-7.3,2.8l22.9,56.8 c3.2-1.1,6.3-2.3,9.8-3.9l-11.5-25.2l1.7-0.8l12.5,25.2c3.7-1.7,7.5-3.4,11.2-5.2L342,303.4L337.9,304.9z"}, "22":{"path":"M319.1,312.1l5.5,13.9l2.6-1.1l2.5,6.8l-7.4,2.8l-2.5-5.8l2.6-1.1l-8.1-20.6l-6.4,2.2l22.1,63.9 c3.6-1.2,7.2-2.5,10.8-3.8l-10.7-25l1.7-0.7l10.7,25.1c3-1.2,5.9-2.1,8.7-3.2l-22.9-56.8L319.1,312.1z"}, "23":{"path":"M301.2,311.5l6.4,21.2l2.7-0.9l1.9,7l-7.6,2.2l-1.9-7l2.7-0.8l-8-25.5l-8,1.2l17.4,71.1c4-1,8.1-2.2,12.2-3.4 l-8.2-25.7l1.8-0.5l8.2,25.7c3-0.9,6.1-1.9,9.2-3l-22.1-63.9L301.2,311.5z"}, "24":{"path":"M282.3,309.9l5.7,27.6l2.8-0.6l1.2,7.1l-7.8,1.4l-1.2-7.1l2.7-0.6l-5.7-31.4l-8.9,1.2l13.1,77.2 c3.6-0.6,7.1-1.3,10.7-2l-5.8-26.6l1.8-0.4l5.8,26.6c3.3-0.7,6.6-1.5,9.9-2.4l-17.4-71.1L282.3,309.9z"}, "25":{"path":"M263.2,308.7l4.9,32.1l2.8-0.4l0.8,7.2l-7.8,1l-0.8-7.2l2.8-0.4l-5.3-34.1c-2.6,0.2-5.3,0.3-8,0.4l7,81.6 c4.3-0.3,8.7-0.7,13-1.3l-4.2-28.2l1.9-0.3l4.2,27.3c3.3-0.4,6.6-0.9,9.9-1.5l-13.1-77.2L263.2,308.7z"}, "26":{"path":"M245.9,307.4l1.3,35h3.8v7.2h-8.9v-7.2h3.8l-1.3-34.9c-2.6,0-5.2,0.1-7.7,0.1v82c3.4,0,6.9,0,10.3-0.1 l-1.1-28.6l1.9-0.1l1.1,28.6c3.5-0.1,7-0.3,10.5-0.6l-7-81.6C250.4,307.3,248.1,307.4,245.9,307.4z"}, "27":{"path":"M229.8,307.4l-2.2,34.9h3.8v7.2h-8.9v-7.2h3.8l2.2-34.9c-2.5-0.1-5.2-0.2-7.7-0.4l-7.5,81.2 c3.4,0.3,6.7,0.6,10.1,0.8l1.7-28.1l1.9,0.1l-1.7,28.1c3.9,0.2,7.7,0.4,11.6,0.4v-82C234.5,307.5,232.2,307.5,229.8,307.4z"}, "28":{"path":"M211.6,305.7l-4.4,35.1l2.8,0.4l-0.8,7.2l-7.8-1l0.8-7.2l2.8,0.4l4.2-32.7l-7.7-1.1l-14,77.4 c3.9,0.8,7.8,1.4,11.7,2l3.8-26.9l1.9,0.3l-3.8,26.9c4.1,0.6,8.2,1.1,12.3,1.5l7.5-81.2C217.6,306.7,214.5,306.3,211.6,305.7z"}, "29":{"path":"M193.4,305.8l-7.5,32.8l2.7,0.6l-1.2,6.2l-7.8-1.4l1.2-7.2l2.8,0.6l6.3-27.9l-7.5-1.9l-18.2,71.3 c3.5,1,7,1.9,10.5,2.7l5.9-26.1l1.8,0.4l-5.9,26.1c3.6,0.8,7.2,1.6,10.8,2.3l14-77.4L193.4,305.8z"}, "30":{"path":"M175.7,305.8l-8.1,27.2l2.7,0.6l-2.2,6.2l-7.8-2.4l2.2-6.2l2.8,0.6l6.3-20.6l-8.8-2.8l-21,63.7 c3.4,1.2,6.8,2.3,10.2,3.3l8.2-25.3l1.8,0.6l-8.2,25.2c3.5,1.1,7,2.1,10.5,3l18.2-71.3L175.7,305.8z"}, "31":{"path":"M154.5,305.7l-7.5,21.1l2.7,0.6l-2.2,6.2l-7.8-2.4l2.2-6.2l2.8,0.6l5.3-14.8l-8.4-3.3L120.1,364 c3.2,1.3,6.4,2.5,9.6,3.7l9.2-24l1.8,0.7l-9.1,24c3.5,1.3,6.9,2.5,10.3,3.7l21-63.7L154.5,305.7z"}, "32":{"path":"M135,304.9l-6.3,14.2l2.7,0.9l-2.9,5.8l-7.4-3.3l2.9-5.8l2.7,0.9l6.1-13.6l-7.6-3L97,354.2 c3.5,1.6,6.9,3.1,10.3,4.5l11.5-24.4l1.7,0.8L109,359.4c3.7,1.6,7.4,3.1,11,4.5l21.6-56.5L135,304.9z"}, "33":{"path":"M117.2,287.4c1.1,3.3,2.4,6.5,3.8,9.8l7.2-2c-1.6-3.1-3.1-6.4-4.4-9.7L117.2,287.4z"}, "34":{"path":"M120,273.9l-6.3,1.9c1,3.8,2.1,7.7,3.5,11.6l6.6-1.9C122.3,281.7,121,277.9,120,273.9z"}, "35":{"path":"M117.7,262.2l-6.5,1.4c0.6,4,1.4,8.1,2.4,12.1l6.3-1.9C119,270.1,118.2,266.2,117.7,262.2z"}, "36":{"path":"M116.8,249.2l-6.8,0.5c0.1,4.6,0.5,9.3,1.2,14l6.5-1.4C117.1,258,116.8,253.7,116.8,249.2z"}, "37":{"path":"M117.7,236.2l-7-0.7c-0.5,4.7-0.7,9.4-0.7,14.2l6.8-0.5C116.8,245,117.1,240.6,117.7,236.2z"}, "38":{"path":"M120.1,223.4l-6.8-2.2c-1.2,4.7-2.1,9.5-2.6,14.3l7,0.7C118.2,232,119,227.7,120.1,223.4z"}, "39":{"path":"M124,211.1l-6.5-2.7c-1.7,4.3-3,8.6-4.1,12.9l6.8,2.2C121.2,219.3,122.4,215.2,124,211.1z"}, "40":{"path":"M127.1,203.4l-6.1-3.2c-1.3,2.7-2.4,5.4-3.5,8.1l6.5,2.7C124.9,208.5,126,206,127.1,203.4z"}}; var props = {"props_press_box":{"path":"M212.6,79.5H264l2.5-16.2c0-4.7-58-4.6-58,0L212.6,79.5z"}, "props_henke_hall":{"path":"M397.2,225.5 433.4,225.5 433.4,272.4 397.2,272.4 z"}, "props_excellence":{"path":"M110.1,302.5c-7.1-35.9-6.9-71.6-0.3-107.2L79.5,181c-19,19-20.2,115.5,0,135.8L110.1,302.5z"},"props_visitors":{"path":"M217.2,296.8 257.5,296.8 257.5,302.3 217.2,302.3 z"}, "props_indiana":{"path":"M217.2,192.6 257.5,192.6 257.5,198.1 217.2,198.1 z"}};var bg = {"bg":{"path":"M51.3,247.5c0-80.9,42.7-101.2,42.7-101.2l-24-45.4c0,0,47.2-59.5,166.9-59.5c104.8,0,165.3,59.5,165.3,59.5 l-14.1,45.4c0,0,51.2,16.9,51.2,102.6c0,82.1-45.7,106.7-45.7,106.7l28.4,49.7c0,0-68.8,46-176.3,46c-121.7,0-180.9-46-180.9-46 l22.6-49.7C87.4,355.6,51.3,316.8,51.3,247.5z"}}; 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":216, "height":100});field.transform("R0 T132,198"); // 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("S1"); section_extras.transform("S1"); // 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("145","football",filter); });});
By continuing to use our site, you agree to us using cookies in accordance with our Cookie PolicyClose