Skip to content

Commit

Permalink
updae
Browse files Browse the repository at this point in the history
  • Loading branch information
mearjuntripathi committed Oct 22, 2024
1 parent abdb560 commit b11592b
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 635 deletions.
2 changes: 1 addition & 1 deletion about-me/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="utf-8"> <!-- begin SEO -->
<title>CV - Your Name / Site Title</title>
<title>About me - Mahipal Singh Sankhla</title>
<meta property="og:locale" content="en-US">
<meta property="og:site_name" content="Your Name / Site Title">
<meta property="og:title" content="CV">
Expand Down
8 changes: 4 additions & 4 deletions books/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

<head>
<meta charset="utf-8"> <!-- begin SEO -->
<title>Markdown - Your Name / Site Title</title>
<title>Books - Mahipal Singh Sankhla</title>
<meta property="og:locale" content="en-US">
<meta property="og:site_name" content="Your Name / Site Title">
<meta property="og:site_name" content="Mahipal Singh Sankhla">
<meta property="og:title" content="Markdown">
<link rel="canonical" href="../markdown/">
<meta property="og:url" content="../markdown/">
<script
type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Person", "name" : "Your Name", "url" : ".", "sameAs" : null } </script>
type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Person", "name" : "Mahipal Singh Sankhla Books", "url" : ".", "sameAs" : null } </script>
<!-- end SEO -->
<link href="../feed.xml" type="application/atom+xml" rel="alternate" title="Your Name / Site Title Feed">
<link href="../feed.xml" type="application/atom+xml" rel="alternate" title="Mahipal Singh Sankhla Books">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
Expand Down
117 changes: 58 additions & 59 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
<head>
<meta charset="utf-8">
<!-- begin SEO -->
<title>Academic Pages is a ready-to-fork GitHub Pages template for academic personal websites - Your Name / Site
Title</title>
<title>Sankhla's Research Lab</title>
<meta property="og:locale" content="en-US">
<meta property="og:site_name" content="Your Name / Site Title">
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.0/css/line.css">
Expand All @@ -18,7 +17,7 @@
{
"@context": "http://schema.org",
"@type": "Person",
"name": "Your Name",
"name": "Mahipal Singh Sankhla",
"url": ".",
"sameAs": null
}</script>
Expand Down Expand Up @@ -251,7 +250,7 @@ <h3 class="author__name">Dr. Mahipal Singh Sankhla</h3>
<img src="./images/pic9.jpeg" alt="Slide 9" style="width: 100%;">
</div>
</div>

<div class="carousel-dots">
<div class="dot active"></div>
<div class="dot"></div>
Expand All @@ -265,7 +264,7 @@ <h3 class="author__name">Dr. Mahipal Singh Sankhla</h3>
</div>
</div>
</div>

<br><br>

<header>
Expand Down Expand Up @@ -497,70 +496,70 @@ <h1 id="create-content--metadata">Organized Conference / Seminar / Workshop / We
</article>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const track = document.querySelector('.carousel-track');
const slides = Array.from(track.children);
const dotsNav = document.querySelector('.carousel-dots');
const dots = Array.from(dotsNav.children);
let currentIndex = 0;
let autoSlideInterval;
document.addEventListener('DOMContentLoaded', () => {
const track = document.querySelector('.carousel-track');
const slides = Array.from(track.children);
const dotsNav = document.querySelector('.carousel-dots');
const dots = Array.from(dotsNav.children);
let currentIndex = 0;
let autoSlideInterval;

// Adjust the track position based on the current slide
function updateSlidePosition() {
track.style.transform = `translateX(-${currentIndex * 100}%)`;
updateDots();
}
// Adjust the track position based on the current slide
function updateSlidePosition() {
track.style.transform = `translateX(-${currentIndex * 100}%)`;
updateDots();
}

// Update active dot
function updateDots() {
dots.forEach((dot, index) => {
dot.classList.toggle('active', index === currentIndex);
});
}
// Update active dot
function updateDots() {
dots.forEach((dot, index) => {
dot.classList.toggle('active', index === currentIndex);
});
}

// Move to the next slide
function nextSlide() {
currentIndex = (currentIndex + 1) % slides.length;
updateSlidePosition();
}
// Move to the next slide
function nextSlide() {
currentIndex = (currentIndex + 1) % slides.length;
updateSlidePosition();
}

// Start the auto-slide interval
function startAutoSlide() {
console.log('Starting auto-slide...');
autoSlideInterval = setInterval(nextSlide, 3000);
}
// Start the auto-slide interval
function startAutoSlide() {
console.log('Starting auto-slide...');
autoSlideInterval = setInterval(nextSlide, 3000);
}

// Stop the auto-slide interval
function stopAutoSlide() {
console.log('Stopping auto-slide...');
clearInterval(autoSlideInterval);
}
// Stop the auto-slide interval
function stopAutoSlide() {
console.log('Stopping auto-slide...');
clearInterval(autoSlideInterval);
}

// Start the auto-slide when the page loads
startAutoSlide();
// Start the auto-slide when the page loads
startAutoSlide();

// Pause auto-slide on mouse enter (hover)
track.addEventListener('mouseenter', () => {
console.log('Mouse entered: Pausing auto-slide');
stopAutoSlide();
});
// Pause auto-slide on mouse enter (hover)
track.addEventListener('mouseenter', () => {
console.log('Mouse entered: Pausing auto-slide');
stopAutoSlide();
});

// Resume auto-slide on mouse leave
track.addEventListener('mouseleave', () => {
console.log('Mouse left: Resuming auto-slide');
startAutoSlide();
});
// Resume auto-slide on mouse leave
track.addEventListener('mouseleave', () => {
console.log('Mouse left: Resuming auto-slide');
startAutoSlide();
});

// Allow users to click on dots to navigate to specific slides
dots.forEach((dot, index) => {
dot.addEventListener('click', () => {
console.log(`Dot ${index + 1} clicked`);
currentIndex = index;
updateSlidePosition();
stopAutoSlide(); // Optional: Stop auto-slide on manual navigation
// Allow users to click on dots to navigate to specific slides
dots.forEach((dot, index) => {
dot.addEventListener('click', () => {
console.log(`Dot ${index + 1} clicked`);
currentIndex = index;
updateSlidePosition();
stopAutoSlide(); // Optional: Stop auto-slide on manual navigation
});
});
});
});
});

</script>
<script src="./assets/js/main.min.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions patent/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

<head>
<meta charset="utf-8"> <!-- begin SEO -->
<title>Blog posts - Your Name / Site Title</title>
<title>Blog posts - Mahipal Singh Sankhla</title>
<meta property="og:locale" content="en-US">
<meta property="og:site_name" content="Your Name / Site Title">
<meta property="og:site_name" content="Mahipal Singh Sankhla">
<meta property="og:title" content="Blog posts">
<link rel="canonical" href="../year-archive/">
<meta property="og:url" content="../year-archive/">
<script
type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Person", "name" : "Your Name", "url" : ".", "sameAs" : null } </script>
type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Person", "name" : "Mahipal Singh Sankhla", "url" : ".", "sameAs" : null } </script>
<!-- end SEO -->
<link href="../feed.xml" type="application/atom+xml" rel="alternate" title="Your Name / Site Title Feed">
<link href="../feed.xml" type="application/atom+xml" rel="alternate" title="Mahipal Singh Sankhla | Patent">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
Expand Down
Loading

0 comments on commit b11592b

Please sign in to comment.