From 462eacd4ed99a2e38d8ea7736a19b3f49a2c15e6 Mon Sep 17 00:00:00 2001 From: piyushwattakhare <114810111+piyushwattakhare@users.noreply.github.com> Date: Fri, 15 Mar 2024 16:39:25 +0530 Subject: [PATCH] Hyper Saga(Ekta Narnaware) Team:1)Piyush Wattakhare 2)Jayesh Bhelkar 3)Ekta Narnaware 4)Jayash Manohare Email: ektanarnaware297@gmail.com Domain: Web Development Technology Used:Html, Css,Js Project Description: We tried to develop a multi language learning website , Which will Help you to learn new languages, to improve your language skill. --- index.html | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ script.js | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ styles.css | 29 +++++++++++++++++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 index.html create mode 100644 script.js create mode 100644 styles.css diff --git a/index.html b/index.html new file mode 100644 index 0000000..89464c7 --- /dev/null +++ b/index.html @@ -0,0 +1,55 @@ + + + + + + Language Learning Website + + + +
+

Language Learning Website

+
+ +
+
+

Lessons

+ +
+ +
+
+
+

Pronunciation Practice

+

Record yourself pronouncing the words below and compare with native pronunciation:

+ + + +
+
+

Exercises

+
+ +
+ +
+
+ + + + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..ad64606 --- /dev/null +++ b/script.js @@ -0,0 +1,58 @@ +// Simulated data for lessons, pronunciation practice, and exercises +const lessons = { + english: "English lesson content...", + spanish: "Spanish lesson content..." +}; + +const pronunciationWords = { + english: ["apple", "banana", "cat"], + spanish: ["manzana", "plátano", "gato"] +}; + +const exercises = { + english: "English exercise questions...", + spanish: "Spanish exercise questions..." +}; + +// Function to load lesson content based on selected language +function loadLessonContent(language) { + document.getElementById("lessonContent").textContent = lessons[language]; +} + +// Function to load pronunciation practice words based on selected language +function loadPronunciationWords(language) { + const pronunciationList = document.getElementById("pronunciationList"); + pronunciationList.innerHTML = ""; + pronunciationWords[language].forEach(word => { + const li = document.createElement("li"); + li.textContent = word; + pronunciationList.appendChild(li); + }); +} + +// Function to load exercise content based on selected language +function loadExerciseContent(language) { + document.getElementById("exerciseContent").textContent = exercises[language]; +} + +// Event listener for language selector +document.getElementById("languageSelector").addEventListener("change", function() { + const selectedLanguage = this.value; + loadLessonContent(selectedLanguage); + loadPronunciationWords(selectedLanguage); + loadExerciseContent(selectedLanguage); +}); + +// Simulated recording functionality for pronunciation practice +document.getElementById("startRecording").addEventListener("click", function() { + console.log("Recording started..."); +}); + +document.getElementById("stopRecording").addEventListener("click", function() { + console.log("Recording stopped..."); +}); + +// Simulated checking of exercise answers +document.getElementById("checkAnswers").addEventListener("click", function() { + console.log("Answers checked..."); +}); diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..407ba67 --- /dev/null +++ b/styles.css @@ -0,0 +1,29 @@ +/* Add your styles here */ +header, footer { + background-color: #333; + color: #fff; + text-align: center; + padding: 10px 0; +} + +nav ul { + list-style-type: none; + padding: 0; +} + +nav ul li { + display: inline; + margin-right: 10px; +} + +main { + padding: 20px; +} + +select { + margin-bottom: 10px; +} + +button { + margin-top: 10px; +}