Skip to content

Commit

Permalink
Merge pull request #963 from Meetpidev/update
Browse files Browse the repository at this point in the history
Update README.md and Contributing.md file
  • Loading branch information
vimistify authored Oct 19, 2024
2 parents 0ac4475 + 180c240 commit 7152f57
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
12 changes: 11 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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
Expand Down

0 comments on commit 7152f57

Please sign in to comment.