Skip to content

Commit

Permalink
home page updated
Browse files Browse the repository at this point in the history
  • Loading branch information
samrit2442 committed Mar 17, 2024
1 parent 053c6c1 commit 5a139a6
Showing 1 changed file with 63 additions and 1 deletion.
64 changes: 63 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,69 @@ <h1 class="title">Kolkata R UseR</h1>

</header>

<p>Welcome to Kolkata R UseR group</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="images/logo2.jpg" class="img-fluid figure-img" width="247"></p>
</figure>
</div>



<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Typing Animation</title>
<style>
#text-container {
font-family: 'Courier New', Courier, monospace;
font-size: 20px;
overflow: hidden;
white-space: pre;
border-right: 2px solid black;
background-color: lightgrey;
}
</style>


<div id="text-container"></div>
<script>
// Array of lines to be typed
var lines = [
"r_user_group %>%",
" filter(str_detect(city, 'city of joy'))%>%",
" group_by_all(occupation) %>%",
" summarise(",
" print(",
" 'Welcome to Kolkata R UseR group!!!'",
" )",
")"
];

// Speed of typing in milliseconds
var speed = 50;

var lineIndex = 0;
var charIndex = 0;
function typeWriter() {
if (lineIndex < lines.length) {
if (charIndex < lines[lineIndex].length) {
document.getElementById("text-container").innerHTML += lines[lineIndex].charAt(charIndex) + "</strong>";
charIndex++;
setTimeout(typeWriter, speed);
} else {
// Move to the next line
document.getElementById("text-container").innerHTML += "<br>"; // Add line break
lineIndex++;
charIndex = 0; // Reset character index for next line
setTimeout(typeWriter, speed);
}
}
}

// Start typing animation
typeWriter();
</script>





Expand Down

0 comments on commit 5a139a6

Please sign in to comment.