standardize indentation

This commit is contained in:
David 2015-03-08 14:37:54 -04:00
parent 62d257957b
commit 0b14f2f63d

View File

@ -1,264 +1,261 @@
<html> <html>
<head> <head>
<title>Hack Spots</title> <title>Hack Spots</title>
<meta charset='utf-8'> <meta charset='utf-8'>
<script type="text/javascript" src='js/jquery.js '></script> <script type="text/javascript" src='js/jquery.js '></script>
<script type="text/javascript" src='js/tabletop1.3.4.js'></script> <script type="text/javascript" src='js/tabletop1.3.4.js'></script>
<script type="text/javascript" src='js/sheetsee.js'></script> <script type="text/javascript" src='js/sheetsee.js'></script>
<script type="text/javascript" src='js/leaflet.markercluster.js'></script> <script type="text/javascript" src='js/leaflet.markercluster.js'></script>
<link rel="shortcut icon" href="https://raw.github.com/jlord/hack-spots/master/favico.png"/> <link rel="shortcut icon" href="https://raw.github.com/jlord/hack-spots/master/favico.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.css' rel='stylesheet' /> <link href='http://api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.css' rel='stylesheet' />
<link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic'> <link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic'>
<link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Amatic+SC:400,700'> <link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Amatic+SC:400,700'>
<link media="screen" rel="stylesheet" type="text/css" href="css/style.css"> <link media="screen" rel="stylesheet" type="text/css" href="css/style.css">
<link media="screen" rel="stylesheet" type="text/css" href="css/site.css"> <link media="screen" rel="stylesheet" type="text/css" href="css/site.css">
<link rel="stylesheet" href="css/MarkerCluster.css" /> <link rel="stylesheet" href="css/MarkerCluster.css" />
<link rel="stylesheet" href="css/MarkerCluster.Default.css" /> <link rel="stylesheet" href="css/MarkerCluster.Default.css" />
</head> </head>
<body> <body>
<div id="wrapper"> <div id="wrapper">
<h1>Hack Spots</h1> <h1>Hack Spots</h1>
<div> <div>
<ul class="nav"> <ul class="nav">
<li><strong>The collected favorites of those who hack</strong></li> <li><strong>The collected favorites of those who hack</strong></li>
<li><a href="#info">INFO</a> -</li> <li><a href="#info">INFO</a> -</li>
<li><a href="http://jlord.github.com/sheetsee.js" target="_blank">POWERED BY SHEETSEE.JS</a> -</li> <li><a href="http://jlord.github.com/sheetsee.js" target="_blank">POWERED BY SHEETSEE.JS</a> -</li>
<li><a href="http://www.github.com/jlord/hack-spots" target="_blank">GITHUB</a> -</li> <li><a href="http://www.github.com/jlord/hack-spots" target="_blank">GITHUB</a> -</li>
<li><a href="http://www.twitter.com/jllord" target="_blank">@JLLORD</a></li> <li><a href="http://www.twitter.com/jllord" target="_blank">@JLLORD</a></li>
</ul> </ul>
</div> </div>
<div class="container"> <div class="container">
<div id="rightSide"> <div id="rightSide">
<div id="latestSpot"></div> <div id="latestSpot"></div>
<div id="selectedSpot"></div> <div id="selectedSpot"></div>
</div> </div>
<div id="map"></div> <div id="map"></div>
</div> </div>
<div class="container"> <div class="container">
<input id="tableFilter" type="text" placeholder="filter by.."></input> <input id="tableFilter" type="text" placeholder="filter by.."></input>
<span class="clear button">Clear</span> <span class="resetMap button">Reset Map</span> <span class="clear button">Clear</span> <span class="resetMap button">Reset Map</span>
<span class="noMatches">no matches</span> <span class="noMatches">no matches</span>
<div id="hackSpotsTable"></div> <div id="hackSpotsTable"></div>
</div> </div>
<div id="info" class="container"> <div id="info" class="container">
<h3>Contribute!</h3> <h3>Contribute!</h3>
<div id="theNumberofSpots"></div> <div id="theNumberofSpots"></div>
<p>This website is hooked up to <a href="https://docs.google.com/spreadsheets/d/1hnfQcggYcBYimuO_UOMvwoOi_I9vUvFpkMt4wjrrpLE/edit?usp=sharing" target="_blank">this Google Spreadsheet</a>, which I've shared, so click and add your favorite hack spots to the bottom of the list! For the map you'll need to <strong>get the lat and long</strong> of the spot, you can get that <a href="http://www.latlong.net/" target="_blank">here</a>. The locating of these places is helpful, so please try to fill out all the columns.</p> <p>This website is hooked up to <a href="https://docs.google.com/spreadsheets/d/1hnfQcggYcBYimuO_UOMvwoOi_I9vUvFpkMt4wjrrpLE/edit?usp=sharing" target="_blank">this Google Spreadsheet</a>, which I've shared, so click and add your favorite hack spots to the bottom of the list! For the map you'll need to <strong>get the lat and long</strong> of the spot, you can get that <a href="http://www.latlong.net/" target="_blank">here</a>. The locating of these places is helpful, so please try to fill out all the columns.</p>
<h3>Info</h3> <h3>Info</h3>
<p>When I'm visiting a new city I'd like to know which coffee shops have the best vibes, great coffee and are good for hunkering down and having a good hack. Yelp will tell you where the Starbucks is and Foursquare will tell you where your friend's have <em>been</em> - but did they like it and was it a grab in go place or a hack place? Plus, what about the people I don't follow on Foursquare or who can't check-in when in other countries?</p> <p>When I'm visiting a new city I'd like to know which coffee shops have the best vibes, great coffee and are good for hunkering down and having a good hack. Yelp will tell you where the Starbucks is and Foursquare will tell you where your friend's have <em>been</em> - but did they like it and was it a grab in go place or a hack place? Plus, what about the people I don't follow on Foursquare or who can't check-in when in other countries?</p>
<p>Besides being a list I've wanted to have, it's a fantastic (or I think so) way of using <a href="http://jlord.github.io/sheetsee.js" target="_blank">sheetsee.js</a>, which is a little JavaScript library I've been working on. Sheetsee.js helps you hook a Google Spreadsheet (awesome for data and collaboration!) to a website to make data more visual (maps, tables, charts).</p> <p>Besides being a list I've wanted to have, it's a fantastic (or I think so) way of using <a href="http://jlord.github.io/sheetsee.js" target="_blank">sheetsee.js</a>, which is a little JavaScript library I've been working on. Sheetsee.js helps you hook a Google Spreadsheet (awesome for data and collaboration!) to a website to make data more visual (maps, tables, charts).</p>
<h3>Fork-n-Go</h3> <h3>Fork-n-Go</h3>
<p>This is a work-in-progress example of a fork-n-go project - which means, there is just a <a href="https://github.com/jlord/hack-spots" target="_blank">gh-pages branch in GitHub</a> for this project so when you fork it, you've got a live and hosted website instantly. BAM! Just copy the spreadsheet headers and create your own spreadsheet, swap out the spreadsheet key in index.html and commit those changes. BAM! You've got a live and hosted site with a spreadsheet you control. More on the <a href="http://www.github.com/jlord/hack-spots" target="_blank">readme</a>.</p> <p>This is a work-in-progress example of a fork-n-go project - which means, there is just a <a href="https://github.com/jlord/hack-spots" target="_blank">gh-pages branch in GitHub</a> for this project so when you fork it, you've got a live and hosted website instantly. BAM! Just copy the spreadsheet headers and create your own spreadsheet, swap out the spreadsheet key in index.html and commit those changes. BAM! You've got a live and hosted site with a spreadsheet you control. More on the <a href="http://www.github.com/jlord/hack-spots" target="_blank">readme</a>.</p>
</div> </div>
</div><!-- end wrapper --> </div><!-- end wrapper -->
<script id="hackSpotsTable" type="text/html"> <script id="hackSpotsTable" type="text/html">
<table> <table>
<tr><th class="tHeader">Name</th><th class="tHeader">Address</th><th class="tHeader">City</th><th class="tHeader">State</th><th class="tHeader">Country</th><th class="">Elsewhere</th></tr> <tr><th class="tHeader">Name</th><th class="tHeader">Address</th><th class="tHeader">City</th><th class="tHeader">State</th><th class="tHeader">Country</th><th class="">Elsewhere</th></tr>
{{#rows}} {{#rows}}
<tr id="{{rowNumber}}" class="spotRow"><td>{{name}}</td><td>{{address}}</td><td>{{city}}</td><td>{{state}}</td><td>{{country}}</td><td><a class="button" href="https://maps.google.com/maps?q={{address}},{{city}},{{state}}" target="_blank">G Map</a> <a class="button" href="http://www.yelp.com/search?find_desc={{name}}&find_loc={{city}},{{state}}" target="_blank">Yelp</a></td></tr> <tr id="{{rowNumber}}" class="spotRow"><td>{{name}}</td><td>{{address}}</td><td>{{city}}</td><td>{{state}}</td><td>{{country}}</td><td><a class="button" href="https://maps.google.com/maps?q={{address}},{{city}},{{state}}" target="_blank">G Map</a> <a class="button" href="http://www.yelp.com/search?find_desc={{name}}&find_loc={{city}},{{state}}" target="_blank">Yelp</a></td></tr>
{{/rows}} {{/rows}}
</table> </table>
</script> </script>
<script id="latestSpot" type="text/html"> <script id="latestSpot" type="text/html">
{{#rows}} {{#rows}}
<h4 class="fauxButton">MOST RECENT SPOT</h4> <h4 class="fauxButton">MOST RECENT SPOT</h4>
<h2>{{name}}</h2> <h2>{{name}}</h2>
<p class="colorText">{{address}}<p> <p class="colorText">{{address}}<p>
<p class="colorText">{{city}}, {{state}} {{#postcode}}, {{postcode}} {{/postcode}}</p> <p class="colorText">{{city}}, {{state}} {{#postcode}}, {{postcode}} {{/postcode}}</p>
<ul> <ul>
<li><span class="category">Wifi:</span> {{wifipassword}}</li> <li><span class="category">Wifi:</span> {{wifipassword}}</li>
<li><span class="category">Outlets:</span> {{outlets}}</li> <li><span class="category">Outlets:</span> {{outlets}}</li>
<li><span class="category">Couch:</span> {{couch}}</li> <li><span class="category">Couch:</span> {{couch}}</li>
<li><span class="category">Large Table:</span> {{largetable}}</li> <li><span class="category">Large Table:</span> {{largetable}}</li>
<li><span class="category">Outdoor Seating:</span> {{outdoorseating}}</li> <li><span class="category">Outdoor Seating:</span> {{outdoorseating}}</li>
<li><span class="category">Brewing:</span> {{brewing}}</li> <li><span class="category">Brewing:</span> {{brewing}}</li>
<li><span class="category">Contributed By:</span> <a href="http://www.twitter.com/{{contributerstwitter}}" target="_blank">@{{contributerstwitter}}</a></li> <li><span class="category">Contributed By:</span> <a href="http://www.twitter.com/{{contributerstwitter}}" target="_blank">@{{contributerstwitter}}</a></li>
</ul> </ul>
<ul> <ul>
<li><a href="https://maps.google.com/maps?q={{address}},{{city}},{{state}}" target="_blank">View in Google Maps</a></li> <li><a href="https://maps.google.com/maps?q={{address}},{{city}},{{state}}" target="_blank">View in Google Maps</a></li>
<li><a href="http://www.yelp.com/search?find_desc={{name}}&find_loc={{city}},{{state}}" target="_blank">Find on Yelp</a></li> <li><a href="http://www.yelp.com/search?find_desc={{name}}&find_loc={{city}},{{state}}" target="_blank">Find on Yelp</a></li>
</ul> </ul>
{{/rows}} {{/rows}}
</script> </script>
<script id="theNumberofSpots" type="text/html"> <script id="theNumberofSpots" type="text/html">
<p><strong><span class="red-text">{{numberOfSpots}}</span> hack spots strong!</p> <p><strong><span class="red-text">{{numberOfSpots}}</span> hack spots strong!</p>
</script> </script>
<script id="popUps" type="text/html"> <script id="popUps" type="text/html">
<h2>{{ name }}</h2> <h2>{{ name }}</h2>
</script> </script>
<script id="selectedSpot" type="text/html"> <script id="selectedSpot" type="text/html">
{{#rows}} {{#rows}}
<h4 class="fauxButton">SELECTED SPOT</h4> <h4 class="fauxButton">SELECTED SPOT</h4>
<h2>{{name}}</h2> <h2>{{name}}</h2>
<p class="colorText">{{address}}<p> <p class="colorText">{{address}}<p>
<p class="colorText">{{city}}, {{state}} {{#postcode}}, {{postcode}} {{/postcode}}</p> <p class="colorText">{{city}}, {{state}} {{#postcode}}, {{postcode}} {{/postcode}}</p>
<ul> <ul>
<li><span class="category">Wifi:</span> {{wifipassword}}</li> <li><span class="category">Wifi:</span> {{wifipassword}}</li>
<li><span class="category">Outlets:</span> {{outlets}}</li> <li><span class="category">Outlets:</span> {{outlets}}</li>
<li><span class="category">Couch:</span> {{couch}}</li> <li><span class="category">Couch:</span> {{couch}}</li>
<li><span class="category">Large Table:</span> {{largetable}}</li> <li><span class="category">Large Table:</span> {{largetable}}</li>
<li><span class="category">Outdoor Seating:</span> {{outdoorseating}}</li> <li><span class="category">Outdoor Seating:</span> {{outdoorseating}}</li>
<li><span class="category">Brewing:</span> {{brewing}}</li> <li><span class="category">Brewing:</span> {{brewing}}</li>
</ul> </ul>
<ul> <ul>
<li><a href="https://maps.google.com/maps?q={{address}},{{city}},{{state}}" target="_blank">View in Google Maps</a></li> <li><a href="https://maps.google.com/maps?q={{address}},{{city}},{{state}}" target="_blank">View in Google Maps</a></li>
<li><a href="http://www.yelp.com/search?find_desc={{name}}&find_loc={{city}},{{state}}" target="_blank">Find on Yelp</a></li> <li><a href="http://www.yelp.com/search?find_desc={{name}}&find_loc={{city}},{{state}}" target="_blank">Find on Yelp</a></li>
</ul> </ul>
{{/rows}} {{/rows}}
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
var gData var gData
var URL = "1hnfQcggYcBYimuO_UOMvwoOi_I9vUvFpkMt4wjrrpLE" var URL = "1hnfQcggYcBYimuO_UOMvwoOi_I9vUvFpkMt4wjrrpLE"
Tabletop.init( { key: URL, callback: showInfo, simpleSheet: true } ) Tabletop.init({ key: URL, callback: showInfo, simpleSheet: true })
}) })
// so long, so messy // so long, so messy
function showInfo(gData) {
window.gData = gData
tableOptions = {
"data": gData,
"tableDiv": "#hackSpotsTable",
"filterDiv": "#tableFilter"
}
// make the table, and the search bar
Sheetsee.makeTable(tableOptions)
Sheetsee.initiateTableFilter(tableOptions)
function showInfo(gData) { // when someone clicks on a row, highlight it and
window.gData = gData // re-center the map
tableOptions = { $('.spotRow').live("click", function(event) {
"data": gData, $('.spotRow').removeClass("selectedRow")
"tableDiv": "#hackSpotsTable", var rowNumber = $(this).closest("tr").attr("id")
"filterDiv": "#tableFilter" $('#' + rowNumber).addClass("selectedRow")
} var dataElement = Sheetsee.getMatches(gData, rowNumber, "rowNumber")
// make the table, and the search bar var selectedSpot = Sheetsee.ich.selectedSpot({
Sheetsee.makeTable(tableOptions) rows: dataElement
Sheetsee.initiateTableFilter(tableOptions) })
$('#latestSpot').css("display", "none")
$('#selectedSpot').html(selectedSpot).css("display", "inline")
var selectedCoords = [dataElement[0].lat, dataElement[0].long]
matchGeoJSONbyRowNumber(rowNumber, geoJSON, gData, "#FF4646")
var markerLayer = Sheetsee.addMarkerLayer(geoJSON, map, "<h2>{{ name }}</h2>")
addPopups(map, markerLayer)
map.panTo(selectedCoords, 13)
})
// when someone clicks on a row, highlight it and // so that the first map and info that loads
// re-center the map // is complete and doesn't show rows that are
$('.spotRow').live("click", function(event) { // actively being edited by folk
$('.spotRow').removeClass("selectedRow") function findLatestCompleteSpot(data) {
var rowNumber = $(this).closest("tr").attr("id") var latestCompleteSpot = []
$('#' + rowNumber).addClass("selectedRow") var startWithLatestRow = data.reverse()
var dataElement = Sheetsee.getMatches(gData, rowNumber, "rowNumber") startWithLatestRow.forEach(function(row){
var selectedSpot = Sheetsee.ich.selectedSpot({ if (!row.lat || !row.long || !row.name || !row.address || !row.city || !row.state ) return
rows: dataElement else latestCompleteSpot.push(row)
}) })
$('#latestSpot').css("display", "none") return latestCompleteSpot[0]
$('#selectedSpot').html(selectedSpot).css("display", "inline") }
var selectedCoords = [dataElement[0].lat, dataElement[0].long]
matchGeoJSONbyRowNumber(rowNumber, geoJSON, gData, "#FF4646")
var markerLayer = Sheetsee.addMarkerLayer(geoJSON, map, "<h2>{{ name }}</h2>")
addPopups(map, markerLayer)
map.panTo(selectedCoords, 13)
})
// so that the first map and info that loads // find the latest spot with the most important
// is complete and doesn't show rows that are // info filled in (to prevent map breaking if
// actively being edited by folk // someone is currently editing spreadsheet)
function findLatestCompleteSpot(data) { var theLatestSpot = findLatestCompleteSpot(gData)
var latestCompleteSpot = [] var latestSpot = Sheetsee.ich.latestSpot({
var startWithLatestRow = data.reverse() rows: theLatestSpot
startWithLatestRow.forEach(function(row){ })
if (!row.lat || !row.long || !row.name || !row.address || !row.city || !row.state ) return $('#latestSpot').html(latestSpot)
else latestCompleteSpot.push(row)
})
return latestCompleteSpot[0]
}
// find the latest spot with the most important function highlightLastMarker(geoJSON, highlightColor) {
// info filled in (to prevent map breaking if geoJSON[0].properties["marker-color"] = highlightColor
// someone is currently editing spreadsheet) return geoJSON
var theLatestSpot = findLatestCompleteSpot(gData) }
var latestSpot = Sheetsee.ich.latestSpot({
rows: theLatestSpot
})
$('#latestSpot').html(latestSpot)
function highlightLastMarker(geoJSON, highlightColor) { // create geoJSON with coordinates and other
geoJSON[0].properties["marker-color"] = highlightColor // useful bits from the original data
return geoJSON var optionsJSON = ["name", "address", "city", "rowNumber"]
} var geoJSONnoHL = Sheetsee.createGeoJSON(gData, optionsJSON)
// change the color of the most recently added spot's marker
var geoJSON = highlightLastMarker(geoJSONnoHL, "#FF4646")
// create geoJSON with coordinates and other // create map, tilelayer (map background), markers and popups
// useful bits from the original data var map = Sheetsee.loadMap("map")
var optionsJSON = ["name", "address", "city", "rowNumber"] Sheetsee.addTileLayer(map, 'examples.map-20v6611k')
var geoJSONnoHL = Sheetsee.createGeoJSON(gData, optionsJSON) var markerLayer = Sheetsee.addMarkerLayer(geoJSON, map)
// change the color of the most recently added spot's marker addPopups(map, markerLayer)
var geoJSON = highlightLastMarker(geoJSONnoHL, "#FF4646")
// create map, tilelayer (map background), markers and popups // design the popups to have the content and
var map = Sheetsee.loadMap("map") // interactions that we want
Sheetsee.addTileLayer(map, 'examples.map-20v6611k') function addPopups(map, markerLayer) {
var markerLayer = Sheetsee.addMarkerLayer(geoJSON, map) markerLayer.eachLayer(function(marker) {
addPopups(map, markerLayer) var popupContent = Sheetsee.ich.popUps(marker.feature.opts)
marker.bindPopup(popupContent, {closeButton: false,})
})
markerLayer.on('click', function(e) {
// clear any selected rows
$('.spotRow').removeClass("selectedRow")
// get row number of selected marker
var rowNumber = e.layer.feature.opts.rowNumber.toString()
// find that row in the table and make consider it selected
$('#' + rowNumber).addClass("selectedRow")
// using row number, find that marker in the geoJSON, give it
// the selected marker color
matchGeoJSONbyRowNumber(rowNumber, geoJSON, gData, "#FF4646")
// var markerLayer = Sheetsee.addMarkerLayer(geoJSON, map, 13)
// addPopups(map, markerLayer)
// using row number, get the data for the selected spot
var dataElement = Sheetsee.getMatches(gData, rowNumber, "rowNumber")
// take those details and re-write the selected spot section
var selectedSpot = Sheetsee.ich.selectedSpot({
rows: dataElement
})
$('#latestSpot').css("display", "none")
$('#selectedSpot').html(selectedSpot).css("display", "inline")
})
}
// design the popups to have the content and $('.resetMap').click(function() {
// interactions that we want $('.spotRow').removeClass("selectedRow")
function addPopups(map, markerLayer) { markerLayer = Sheetsee.addMarkerLayer(geoJSON, map, "<h2>{{ name }}</h2>")
markerLayer.eachLayer(function(marker) { addPopups(map, markerLayer)
var popupContent = Sheetsee.ich.popUps(marker.feature.opts) $('#latestSpot').css("display", "inline")
marker.bindPopup(popupContent, {closeButton: false,}) $('#selectedSpot').css("display", "none")
}) })
markerLayer.on('click', function(e) {
// clear any selected rows
$('.spotRow').removeClass("selectedRow")
// get row number of selected marker
var rowNumber = e.layer.feature.opts.rowNumber.toString()
// find that row in the table and make consider it selected
$('#' + rowNumber).addClass("selectedRow")
// using row number, find that marker in the geoJSON, give it
// the selected marker color
matchGeoJSONbyRowNumber(rowNumber, geoJSON, gData, "#FF4646")
// var markerLayer = Sheetsee.addMarkerLayer(geoJSON, map, 13)
// addPopups(map, markerLayer)
// using row number, get the data for the selected spot
var dataElement = Sheetsee.getMatches(gData, rowNumber, "rowNumber")
// take those details and re-write the selected spot section
var selectedSpot = Sheetsee.ich.selectedSpot({
rows: dataElement
})
$('#latestSpot').css("display", "none")
$('#selectedSpot').html(selectedSpot).css("display", "inline")
})
}
$('.resetMap').click(function() { // find total number of spots added
$('.spotRow').removeClass("selectedRow") var numberOfSpots = gData.length
markerLayer = Sheetsee.addMarkerLayer(geoJSON, map, "<h2>{{ name }}</h2>") var theNumberofSpots = Sheetsee.ich.theNumberofSpots({
addPopups(map, markerLayer) numberOfSpots: numberOfSpots
$('#latestSpot').css("display", "inline") })
$('#selectedSpot').css("display", "none") $('#theNumberofSpots').html(theNumberofSpots)
})
// find total number of spots added function matchGeoJSONbyRowNumber(rowNumber, geoJSON, gdata, highlightColor) {
var numberOfSpots = gData.length geoJSON.forEach(function (d) {
var theNumberofSpots = Sheetsee.ich.theNumberofSpots({ if (d.properties["marker-color"] === highlightColor) {
numberOfSpots: numberOfSpots var origColor = gData[0].hexcolor
}) d.properties["marker-color"] = origColor
$('#theNumberofSpots').html(theNumberofSpots) }
for (var key in d.opts) {
function matchGeoJSONbyRowNumber(rowNumber, geoJSON, gdata, highlightColor) { var value = d.opts[key].toString().toLowerCase()
geoJSON.forEach(function (d) { if (key === 'rowNumber' && value.match(rowNumber.toString().toLowerCase())) {
if (d.properties["marker-color"] === highlightColor) { d.properties["marker-color"] = highlightColor
var origColor = gData[0].hexcolor return geoJSON
d.properties["marker-color"] = origColor }
} }
for (var key in d.opts) { })
var value = d.opts[key].toString().toLowerCase() }
if (key === 'rowNumber' && value.match(rowNumber.toString().toLowerCase())) { }
d.properties["marker-color"] = highlightColor </script>
return geoJSON
}
}
})
}
}
</script>
</body> </body>
</html> </html>