diff --git a/html&javascript/mariam.html/mariam.js/helloworld.html b/html&javascript/mariam.html/mariam.js/helloworld.html new file mode 100644 index 0000000..cb849c1 --- /dev/null +++ b/html&javascript/mariam.html/mariam.js/helloworld.html @@ -0,0 +1,16 @@ + + + + + + + Hello World + + +
+ Hello World +
+ + + \ No newline at end of file diff --git a/html&javascript/mariam.html/mariam.js/helloworld.js b/html&javascript/mariam.html/mariam.js/helloworld.js new file mode 100644 index 0000000..c5ed40b --- /dev/null +++ b/html&javascript/mariam.html/mariam.js/helloworld.js @@ -0,0 +1,13 @@ +function mOver(obj) { + obj.innerHTML = "HELLO WORLD" + let R = [Math.floor(Math.random() * 255) + 1]; + let G = [Math.floor(Math.random() * 255) + 1]; + let B = [Math.floor(Math.random() * 255) + 1]; + const randomNumb = `rgb(${R}, ${G}, ${B})`; + obj.style.backgroundColor = randomNumb; + + } + + function mOut(obj) { + obj.innerHTML = "Hello world" + } \ No newline at end of file diff --git a/html&javascript/readme.md b/html&javascript/readme.md new file mode 100644 index 0000000..9634edb --- /dev/null +++ b/html&javascript/readme.md @@ -0,0 +1,11 @@ +# PREREQUISITE + + 1. Have Any one Browser(Chrome,Edge,Brave,Firefox) + [OPTIONAL] + 2.Have a Text-Editor Example: Vscode + +# RUN + + Either Open index.html file in your browser directly to view it or use live server extension in vscode to view it in + + NB: You can hover on the hello world to view it in a differnt colour and text. \ No newline at end of file