From 3e1f8dd1b629f3eb19f7ba9d8c5f0ebd763eb7e6 Mon Sep 17 00:00:00 2001 From: Joe Sanjo Date: Tue, 20 Feb 2024 15:02:03 +0530 Subject: [PATCH] added a new page and js --- main.js | 7 +++++++ mainpage.html | 17 +++++++++++++++++ sample.html | 46 +++++++++++++++++++++++++++++----------------- style.css | 0 4 files changed, 53 insertions(+), 17 deletions(-) create mode 100644 main.js create mode 100644 mainpage.html create mode 100644 style.css diff --git a/main.js b/main.js new file mode 100644 index 0000000..793e570 --- /dev/null +++ b/main.js @@ -0,0 +1,7 @@ +const button = document.getElementById("submit") + +button.addEventListener("click", () =>{ + button.textContent = "Submitted"; + window.location.href = "mainpage.html" +}); + diff --git a/mainpage.html b/mainpage.html new file mode 100644 index 0000000..ba57731 --- /dev/null +++ b/mainpage.html @@ -0,0 +1,17 @@ + + + + + + + + + + + +

HELLO!

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem, sit voluptates laboriosam, a doloribus explicabo adipisci culpa nisi architecto itaque soluta magni est quos commodi iure, consectetur accusantium asperiores blanditiis.

+ + + + \ No newline at end of file diff --git a/sample.html b/sample.html index ca056e4..3ce15f4 100644 --- a/sample.html +++ b/sample.html @@ -1,17 +1,29 @@ -
-
- Avatar -
- -
- - - - - - - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..e69de29