diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2024-11-16 11:16:29 -0500 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2024-11-16 11:16:29 -0500 |
| commit | 238bd4f013781880e6df7463ba3daff9ee2add72 (patch) | |
| tree | c291ce2cc9cec8d2dc4a62c1a2a04143e04e1120 | |
| parent | 077c5ce0f1bcd55fb2d30e33b33b59bddb0c3dd5 (diff) | |
fixed display
| -rw-r--r-- | dashboard_website/__pycache__/router.cpython-312.pyc | bin | 22599 -> 22563 bytes | |||
| -rw-r--r-- | dashboard_website/clean.csv | 37 | ||||
| -rw-r--r-- | dashboard_website/static/js/dashboard.js | 4 |
3 files changed, 34 insertions, 7 deletions
diff --git a/dashboard_website/__pycache__/router.cpython-312.pyc b/dashboard_website/__pycache__/router.cpython-312.pyc Binary files differindex e7fee93..47e0edf 100644 --- a/dashboard_website/__pycache__/router.cpython-312.pyc +++ b/dashboard_website/__pycache__/router.cpython-312.pyc diff --git a/dashboard_website/clean.csv b/dashboard_website/clean.csv index 68647b4..adeccd6 100644 --- a/dashboard_website/clean.csv +++ b/dashboard_website/clean.csv @@ -27,15 +27,15 @@ A1,42.3516484100978,-71.0502519831223,Big Milk in Seaport,UNVISITED,False A2,42.3520419242066,-71.049845025894,Boston Children's Museum,UNVISITED,False A3,42.3536537919241,-71.0487334497937,The Barking Crab,UNVISITED,False A4,42.3523217459454,-71.0673045171718,Poe Statue,UNVISITED,False -A5,42.3376126502488,-71.0110287056158,Castle Island,UNVISITED,False +A5,42.3376126502488,-71.0110287056158,Castle Island,VISITED,False A6,42.349761691446,-71.0786270716553,Boston Marathon Finish Line ,UNVISITED,False -A7,42.3369191552988,-71.0761440244297,Mike's City Diner,UNVISITED,False +A7,42.3369191552988,-71.0761440244297,Mike's City Diner,VISITED,False A8,42.3511608848167,-71.0441426847922,Rainbow deer,UNVISITED,False A9,42.3534524348227,-71.0724498522888,Alexander Hamilton Statue,UNVISITED,False A10,42.3488587894749,-71.0824239022112,boylston apple store,UNVISITED,False A11,42.3441257842049,-71.0453356387658,The Lawn on D,UNVISITED,False A12,42.3508130265764,-71.078519602788,google store,UNVISITED,False -A13,42.3256232678311,-71.068928609528,Bully Boy Distillery,UNVISITED,False +A13,42.3256232678311,-71.068928609528,Bully Boy Distillery,VISITED,False A14,42.343401575839,-71.0723400958892,Metropolis,UNVISITED,False A15,42.3418000978675,-71.0805717059923,5 horse tavern,UNVISITED,False A16,42.3495454003321,-71.0703298469279,The Saunders Castle & The Tower,VISITED,True @@ -48,7 +48,7 @@ A22,42.3507106261158,-71.0384159866313,Yankee Specialty foods,UNVISITED,False A23,42.3420007997466,-71.0663661528146,More Amore European Nails,UNVISITED,False A24,42.3517847704231,-71.0768065613648,jonquils,UNVISITED,False B1,42.3681833607447,-71.076103006054,Cambridgeside Galleria Mall 2nd floor,UNVISITED,False -B2,42.3342450467797,-71.0909292538721,Boston police headquarters? Round parking area behind,UNVISITED,False +B2,42.3342450467797,-71.0909292538721,Boston police headquarters? Round parking area behind,VISITED,False B3,42.3948750559622,-71.0794721759675,LEGO Discovery Center Boston,UNVISITED,False B4,42.374617100935,-71.0569263281522,USS Constitution,UNVISITED,False B5,42.381968142694,-71.1061582141367,Aeronaut Brewing Company,UNVISITED,False @@ -105,10 +105,37 @@ C26,42.3827445834174,-71.0120255027858,Porazzo Rink,UNVISITED,False X1,42.4113612201938,-70.9945465747411,Get Air Trampoline Park,UNVISITED,True X2,42.3602422183426,-71.1385784089462,Jump On In ,UNVISITED,True X3,42.4075713149875,-71.0692812576439,Sky Zone Trampoline Park,UNVISITED,True -X4,42.2238605735387,-71.023558840833,Space Zero,UNVISITED,True +X4,42.2238605735387,-71.023558840833,Space Zero,DISABLED,True X5,42.3650978635908,-71.0588325736553,Central rock gym Downtown,UNVISITED,True X6,42.33723905046,-71.0563997258694,Rock Spot Climbing: South Boston,UNVISITED,True X7,42.3818194310464,-71.1056084094838,bouldering project,UNVISITED,True X8,42.4266798098292,-71.0733795155297,rock spot malden,UNVISITED,True X9,42.3502121686776,-71.1146511723878,Rock Spot Climbing: Brookline,UNVISITED,True X10,42.4076371093627,-71.0670926181766,MetroRock Norman,UNVISITED,True +D5,42.329135747361,-71.1111117891946,Boston Makers,UNVISITED,False +D8,42.3473041158456,-71.0951149179881,Landsdowne Pub,UNVISITED,False +D9,42.3473277311398,-71.094463502368,Loretta's,UNVISITED,False +D11,42.3567971479692,-71.1438883960876,Roadrunner,UNVISITED,False +D13,42.3266901439028,-71.1646545848555,Chestnut Hill T stop ,UNVISITED,False +D14,42.3469707548384,-71.1233015355344,JFK Birthplace,UNVISITED,False +D15,42.3355249784933,-71.1684408588135,Boston College,UNVISITED,False +D16,42.3454896859303,-71.1270067185969,Far Out Ice Cream,UNVISITED,False +D19,42.343250742213,-71.1231240036231,Buffalo exchange,UNVISITED,False +D21,42.3397177794717,-71.1207927403302,Grainne O'Malley's Tavern,UNVISITED,False +D25,42.3661332997336,-71.1260794972626,Harvard Stadium,UNVISITED,False +D26,42.3466698576074,-71.0972318193727,Fenway Park ,UNVISITED,False +D32,42.350079,-71.130615,Taco Bell ,UNVISITED,False +D33,42.350674,-71.114418,Taco Bell ,UNVISITED,False +D34,42.342426,-71.121941,Taco Bell ,UNVISITED,False +E1,42.3234009401274,-71.0583117660977,Musuem of Bad Art,VISITED,False +E3,42.2789036035991,-71.0124526696037,Wollaston Yacht Club,DISABLED,False +E6,42.315960135501,-71.0341983240849,JFK library,VISITED,False +E7,42.3261760883331,-71.0624671039302,Olive garden,VISITED,False +E8,42.2857696418478,-71.091771016947,Regal Pizza,DISABLED,False +E9,42.3051919837795,-71.0897909607491,Franklin Park Zoo,DISABLED,False +E12,42.2621947153988,-71.0790076147282,Turners pond,DISABLED,False +E15,42.35453886322,-71.0613622573286,WNDR Museum Boston,UNVISITED,False +E17,42.308334196155,-71.0474250550083,Malibu Beach,VISITED,False +E18,42.3014883434152,-71.0446332597539,The Rainbow Swash,VISITED,False +E19,42.3190753669835,-71.0565884029934,Banshee Bar,VISITED,False +MUSEUMOFSCIENCE,42.3676823790382,-71.0709401397231,FOUND ITEMS HERE,UNVISITED,False diff --git a/dashboard_website/static/js/dashboard.js b/dashboard_website/static/js/dashboard.js index f5ca3b3..a2e0b45 100644 --- a/dashboard_website/static/js/dashboard.js +++ b/dashboard_website/static/js/dashboard.js @@ -188,12 +188,12 @@ function drawClues(){ popupdiv.innerHTML += "<button id=\"visitbutton_"+clues[i]['clue_name']+"\" style='margin-left:2px' onclick=\"toggle_visit_clue('"+clues[i]['clue_name']+"')\""+(clues[i]['clue_status'] == "DISABLED" ? "disabled" : "")+">"+toggleVisitText+"</button>"; popupdiv.innerHTML += "<button id=\"enablebutton_"+clues[i]['clue_name']+"\" style='margin-left:2px' onclick=\"toggle_enable_clue('"+clues[i]['clue_name']+"')\""+(clues[i]['clue_status'] == "VISITED" ? "disabled" : "")+">"+toggleDisableText+"</button>"; popupdiv.innerHTML += "<button id=\"requirebutton_"+clues[i]['clue_name']+"\" style='margin-left:2px' onclick=\"toggle_required_clue('"+clues[i]['clue_name']+"')\">"+(clues[i]['clue_required'] ? "Un-require" : "Require")+"</button></br>"; - popupdiv.innerHTML += "<div style='color:grey'>Assigned team: <select style='color:grey' id='assignedteam_"+clues[i]['clue_name']+"' onchange=\"assignedTeamChanged('"+clues[i]['clue_name']+"', this.value);\"><option value='0'>None</option> <option value='1'>Team 1</option> <option value='2'>Team 2</option> <option value='3'>Team 3</option></select></span>"; + popupdiv.innerHTML += "<div style='color:grey'>Assigned team: <select style='color:grey' id='assignedteam_"+clues[i]['clue_name'].replace(" ", "_")+"' onchange=\"assignedTeamChanged('"+clues[i]['clue_name']+"', this.value);\"><option value='0'>None</option> <option value='1'>Team 1</option> <option value='2'>Team 2</option> <option value='3'>Team 3</option></select></span>"; var clueMarker = L.marker([clues[i]['latitude'], clues[i]['longitude']], {icon: tempIcon}).bindPopup(popupdiv); clue_rels[clues[i]['clue_name']] = clueMarker; if (clues[i]['clue_status'] == "UNVISITED") unvisited_clues_m.addLayer(clueMarker); else visited_clues_m.addLayer(clueMarker); - popupdiv.querySelector("#assignedteam_"+clues[i]['clue_name']).selectedIndex = clues[i]['assigned_team']; + popupdiv.querySelector("#assignedteam_"+clues[i]['clue_name'].replace(" ", "_")).selectedIndex = clues[i]['assigned_team']; } } |
