diff --git a/Contributing.md b/Contributing.md index 3badc74..64931bb 100644 --- a/Contributing.md +++ b/Contributing.md @@ -4,6 +4,28 @@ Thank you for your interest in contributing to **AmbuFlow**! Weโ€™re excited to --- +## How to run the project: + +1. Go to Backend folder and run command: +```bash +npm install +``` + +2. Make mongodb database. + +3. Go to server.js file and give your mongodb connection URL. + +4. Run command: +```bash +node server.js +``` + +5. Split terminal and go to index.html and open it with live server. + +6. make sure that both Backend and index.html file run togethere. + +--- + ## ๐Ÿš€ Getting Started 1. **Fork the repo:** diff --git a/README.md b/README.md index b45669f..0eea959 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,26 @@ git push origin feature/your-feature-name ``` 5. **Open a Pull Request**: Go to your forked repo on GitHub and click "New Pull Request." + +## How to run the project: + +1. Go to Backend folder and run command: +```bash +npm install +``` + +2. Make mongodb database. + +3. Go to server.js file and give your mongodb connection URL. + +4. Run command: +```bash +node server.js +``` + +5. Split terminal and go to index.html and open it with live server. + +6. make sure that both Backend and index.html file run togethere. ## ๐Ÿ›  Contribution Guidelines: diff --git a/script.js b/script.js index a7b8b4e..b2ce396 100644 --- a/script.js +++ b/script.js @@ -9,7 +9,7 @@ function changeContent(page) { var links = document.querySelectorAll(".menu ul li a"); // Remove "active" class from all links - links.forEach((link) => link.classList.remove("active")); + links.forEach((link) => link.classList.remove("active"));`` // Add "active" class to the current page link var activeLink = document.getElementById(page + "-link"); @@ -22,6 +22,16 @@ function changeContent(page) { console.log(page + "-link"); } +const currentLanguage = window.gtranslateSettings.current_language; +const ambuFlowText = document.querySelector(".main_heading h2[data-link_h2='AmbuFlow...']"); + +if (currentLanguage === 'gu' || currentLanguage === 'hi') { + ambuFlowText.style.display = 'none'; // Hide text for Gujarati and Hindi +} else { + ambuFlowText.style.display = 'block'; // Show text for other languages +} + + // Function that runs when the window loads window.onload = function () { // Assuming you are using the URL or some global variable to determine the page