Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Pallavi1926 authored Aug 29, 2024
1 parent b7d8caa commit 44a6ba1
Show file tree
Hide file tree
Showing 34 changed files with 1,386 additions and 0 deletions.
Binary file added assets/banner-1 (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/banner-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/banner-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/banner-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/blog-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/blog-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/blog-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/blog-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/client-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/client-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/client-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gallery-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gallery-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gallery-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gallery-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gallery-5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gallery-6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gallery-7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gallery-8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gallery-9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/header.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/membership.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/session-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/session-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/session-3.jpg
Binary file added assets/session-4.jpg
Binary file added assets/trainer-1.jpg
Binary file added assets/trainer-2.jpg
Binary file added assets/trainer-3.jpg
Binary file added assets/trainer-4.jpg
452 changes: 452 additions & 0 deletions index.html

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
const menuBtn = document.getElementById("menu-btn");
const navLinks = document.getElementById("nav-links");
const menuBtnIcon = menuBtn.querySelector("i");
const bmiBtn = document.getElementById("btn");

menuBtn.addEventListener("click", (e) => {
navLinks.classList.toggle("open");


const isOpen = navLinks.classList.contains("open");
menuBtnIcon.setAttribute("class", isOpen ? "ri-close-line" : "ri-menu-line");

});

navLinks.addEventListener('click', (e) => {
navLinks.classList.remove('open');
menuBtnIcon.setAttribute('class', 'ri-menu-line')

})

const scrollRevealOption = {
distance : '50px',
origin: 'bottom',
duration: 1000,
};

ScrollReveal().reveal(".header__content h1", {
...scrollRevealOption,
})
ScrollReveal().reveal(".header__content h2", {
...scrollRevealOption,
delay: 500,
})
ScrollReveal().reveal(".header__content p", {
...scrollRevealOption,
delay: 1000,
})
ScrollReveal().reveal(".header__content .header__btn", {
...scrollRevealOption,
delay: 1500,
})
ScrollReveal().reveal(".about__card", {
duration:1000,
interval: 500,
})
ScrollReveal().reveal(".trainer__card", {
...scrollRevealOption,
interval: 500,
})
ScrollReveal().reveal(".blog__card", {
...scrollRevealOption,
interval: 500,
})
const swiper = new Swiper(".swiper", {
loop: true,

pagination: {
el: ".swiper-pagination",
},
});

bmiBtn.addEventListener("click", () => {
const height = parseInt(document.getElementById("height").value);
const weight = parseInt(document.getElementById("weight").value);
const result = document.getElementById("output");
let height_status=false, weight_status=false;

if(height === '' || isNaN(height) || height<=0){
document.getElementById('height_error').innerHTML = 'Please provide a valid height';
}else{
document.getElementById('height_error').innerHTML = '';
height_status=true;
}

if(weight === '' || isNaN(weight) || weight<=0){
document.getElementById('weight_error').innerHTML = 'Please provide a valid weight';
}else{
document.getElementById('weight_error').innerHTML = '';
weight_status=true;
}

if(height_status && weight_status){
const bmi = (weight/((height*height)/10000)).toFixed(2);

if(bmi < 18.6){
result.innerHTML = 'Under weight : '+bmi;
}
else if(bmi > 24.9){
result.innerHTML = 'Over weight : '+bmi;
}
else{
result.innerHTML = 'Normal : '+bmi;
}
}else{
alert('The form has errors');
result.innerHTML = '';
}

})

function sendEmail(){
Email.send({
Host : "smtp.gmail.com",
Username : "[email protected]",
Password : "Pallavi@2005??",
To : '[email protected]',
From : document.getElementById("email").value,
Subject : "This is the subject",
Body : "And this is the body"
}).then(
message => alert(message)
);
}
Loading

0 comments on commit 44a6ba1

Please sign in to comment.