Skip to content

Commit

Permalink
Merge branch 'scrapper' into pullreq
Browse files Browse the repository at this point in the history
  • Loading branch information
PALLAVIKHEDLE authored Oct 27, 2023
2 parents bd94ad9 + 91ff246 commit 01a4cad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/homePage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import AnalyzerList from "../../api/analyzer";
import InsightTable from "./inSight";
import WordCloud from "./wordCloud";


function HomePage() {
const [urlInput, setUrlInput] = useState("");
const [selectedAlgorithm, setSelectedAlgorithm] = useState("rabin_karp");
Expand Down Expand Up @@ -63,12 +64,14 @@ function HomePage() {
setSelectedAlgorithm(event.target.value);
};


const handleDownload = () => {
// const element = document.getElementById('pdf-container');
// html2pdf(element);
window.print();
};


const handleScrollUp = () => {
setScrollUp(true);
setResetScroll(true);
Expand Down Expand Up @@ -232,9 +235,7 @@ function HomePage() {
<AlgoComparision multialgo={multialgo} />
)}

{multialgo && keywordListData&& <button className="downloadButton" onClick={handleDownload}>
Download
</button>
{multialgo && keywordListData&& <button className="downloadButton" onClick={handleDownload}></button>
}
</div>
);
Expand Down

0 comments on commit 01a4cad

Please sign in to comment.