diff --git a/README.md b/README.md index 164b72a..ac2e587 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,4 @@ -# ColorFlipperAssignment - -Recreate the color flipper as demonstrated on 9th July session. -Instead of using RGB colorspace, use hex notation - -e.g. White in rgb is rgb(255,255,255) and in hex is #000000 - - -# Instructions to upload - -- Fork the repository -- Create a new branch (with your name) -- Upload files in the new branch. -- Create a pull request. - +# Soumyadeep Das +# BCA 1B +# 211001102090 +#This is used for assignment submission purpose diff --git a/index.html b/index.html new file mode 100644 index 0000000..2bec530 --- /dev/null +++ b/index.html @@ -0,0 +1,21 @@ + + + + + + + Document + + + +
+
+
+

+

+

+
+ + +
+ \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..bc1647c --- /dev/null +++ b/script.js @@ -0,0 +1,13 @@ +function generate() +{ + var a=(Math.floor(Math.random()*16777215)).toString(16); + document.getElementById('output').innerText = a; + document.body.style.backgroundColor = "#" + a; + color.innerHTML = "#" + a; + console.log(a) + + +} +generate() + + diff --git a/style.css b/style.css new file mode 100644 index 0000000..aa3dec7 --- /dev/null +++ b/style.css @@ -0,0 +1,30 @@ +#reg-form{ + background-color:#000000; + color:white; + font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; + font-style:oblique; + font-size: xx-large; + width: 200px; + padding: 100px 100px 100px 100px; + margin: 180px ; + opacity: 1; + border-radius: 40px; + +} + +#i1{ + opacity: 0.9; +} +.button { + background-color: #ffffff; + border: none; + color:black; + padding: 16px 10px; + text-align: center; + text-decoration: none; + display: inline-block; + font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; + font-style:initial; + font-size: 16px; + border-radius: 30px; + }