Skip to content

Commit

Permalink
removing debugging features
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronkruse committed Jan 5, 2024
1 parent bee3937 commit 3d5c4fd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
7 changes: 4 additions & 3 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ figure p {
border-radius: 8px;
border-style: none;
box-sizing: border-box;
color: #000000;
color: #000000d0;
cursor: pointer;
display: inline-block;
font-family: PPEiko-medium, sans-serif;
font-family: PPEiko-black-italic, sans-serif;
font-size: 20px;
font-weight: 500;
height: 40px;
Expand All @@ -195,7 +195,8 @@ figure p {
/* background-color: #f5c73bbb; */
cursor: pointer;
transform: translateY(-5px); /* Move the button up on hover */
box-shadow: 1px 3px 10px rgba(0, 0, 0, 0.4);
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);

}
.button-1:active {
background-color: #f5c53b;
Expand Down
8 changes: 4 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { setupCounter } from "@/counter.js";
import * as d3 from "d3";
import scrollama from "scrollama";
import { figureUpdate } from "@/figure-update.js";
import 'bootswatch/dist/flatly/bootstrap.min.css';
// import 'bootswatch/dist/flatly/bootstrap.min.css';


document.querySelector("#app").innerHTML = `
Expand Down Expand Up @@ -45,9 +45,9 @@ document.querySelector("#app").innerHTML = `
<h1>SO WHERE DO THEY ALL LIVE?</h1>
</div>
<div class="step" data-step="7">
<p>Chickens in the United States are raised in factory farms called concentrated animal feeding operations (CAFOs). We at Earth Genome used our proprietery machine learning tool called Earth Index, to find these CAFOs across the Southern United States. We found hundreds of previously undocumented sites housing thousands of chickens.</p>
<a href="map/index.html" class="button-link">
<button type="button" class="btn btn-warning">Explore the Map</button>
<p>Chickens in the United States are raised in factory farms called concentrated animal feeding operations (CAFOs). We at Earth Genome used our proprietery machine learning tool called Earth Index, to find these CAFOs across the Southern United States. We found thousands of previously undocumented sites housing millions of chickens.</p>
<a href="map/" class="button-link">
<button type="button" class="button-1 btn-warning">Explore the Map</button>
</a>
</div>
</article>
Expand Down
10 changes: 4 additions & 6 deletions src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,22 @@ map.on("load", () => {
});
moveMiniMap(bbox, polyCentroid);

console.log("qf = ", queriedFeatures);
// DEBUGGIBG
debugPoly(bbox, e.features[0]);
// console.log("qf = ", queriedFeatures);
// DEBUGGING
// debugPoly(bbox, e.features[0]);

// getStaticMap(polyCentroid[1], polyCentroid[0]);
});

map.on("mouseleave", "poly-fill", function () {
console.log("hovering");
// console.log("hovering");
document.getElementById("static-frame").classList.remove("active");
});
map.on("zoomend", function () {
console.log(cafosVisible());
document.getElementById("cafo-count").innerHTML = `${cafosVisible()}`;
// document.getElementById("cafo-label").innerHTML = `Identified 🐓 CAFOs Visible`;
});
map.on("moveend", function () {
console.log(cafosVisible());
document.getElementById("cafo-count").innerHTML = `${cafosVisible()}`;
// document.getElementById("cafo-label").innerHTML = `Identified 🐓 CAFOs Visible`;
});
Expand Down

0 comments on commit 3d5c4fd

Please sign in to comment.