From 3d2a6c1c6995171423715eb631ba175470060007 Mon Sep 17 00:00:00 2001 From: Raghvendra-Guest Date: Wed, 25 Mar 2020 23:53:10 +0530 Subject: [PATCH] added kunal folder --- .DS_Store | Bin 14340 -> 10244 bytes KunalAcharya/LoginPageTask/index.html | 77 +++++++++++++++++ KunalAcharya/LoginPageTask/js/index.js | 80 ++++++++++++++++++ .../LoginPageTask/static/css/main.css | 40 +++++++++ KunalAcharya/LoginPageTask/success.html | 5 ++ KunalAcharya/MyDetails.txt | 7 ++ KunalAcharya/README.md | 32 +++++++ 7 files changed, 241 insertions(+) create mode 100644 KunalAcharya/LoginPageTask/index.html create mode 100644 KunalAcharya/LoginPageTask/js/index.js create mode 100644 KunalAcharya/LoginPageTask/static/css/main.css create mode 100644 KunalAcharya/LoginPageTask/success.html create mode 100644 KunalAcharya/MyDetails.txt create mode 100644 KunalAcharya/README.md diff --git a/.DS_Store b/.DS_Store index 4aefbf7abfdb9eeb2aec338403eb6e9c8d8f5e85..e96d3f4ecbf02401a1a479327208a16866c970c5 100644 GIT binary patch delta 1064 zcmdT@O-vI}5T3%eUF`2`moB9Og+lCZX(?f83~B-d|3X3(0#~F!Y)NUc3jQXFg@(5GbMD%w#T~b*sE!NMN4G>_dg11x^LO$xk7n)sO$sFU?^C`r>|_7w z?jDzOR$A~p9mk`zKTqfQbMr7EZ^>&TD0AHsW13~u5)0SATB^+EOO-tPFbR%tEcgB; z4omT8s@31$9k+75aJLT`e=V^xQ7xA$<(piBsU{zu=t(??39JSUJnatSp)jzK7I-64 zuz~_ch))~xqZ|}IFOyefnk8ukjA=3NJI--*G<*o9T=f^E1^#drTO555?sM7A-Nacf z>r&S3zh%vG*|cq9OUwCezK*l(H1^=75a^18;fe%2uNbNNn+5DfM$i-zXw*B<5Dwz9 z-szMqsaVnnQP2eT^bRM3V#{aU!bdHPuT7@&wQXsQW_%LNQ96R7xo=fsI<_!8^3Vjg zWSQiM&G4X1(wuD2$>vD-C!%~b#a_k3s1+W`DIU$L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}_tc6graXq+V<#N;96A4J?vq+WH5n69rj4{!t%Q;nf zg}zI#(9h{jsPP^8E&ZPU!UQE+yqs4-himvAUdLOxg|~4l@8I3M2b%2QPCm$w@L~QC zba{#&C8+ZY{6+o}e}g3kjBQ4Z-R^ne z$lpS)q8hz3)2#E}U+;AzY*pZjv(sC_X){!}sujzc=uM{*PHF_^((@Yd=9RUX8=12a zX_K|9gSD$~#je&A8$9phGD!V}v@u@394~8^UuZ4N=gT}l=@j{@4xuxpqPOz=F}1Rk zD7knoE7TJ4MTy9e*K-rdw6adA*rJNG>$4YGyJ?svg^{&e9Hm7u|BL6L|| z#}LE9e>dR3LF{a+TEF^~CaXt{yG1}bG_3wTvZ2gu=_r`6psjiXm~HAfUsOdQygWD4 zLueCGe-`yjq1^6#K8>_bwZa&bBL8DaG%k(yXi@tXoJ$)C&L1U3q*(K(5i?&m+9NG0 zy)R4;qg161y=B#ZQ{EajsTv83X-_o8UPSUpFS;pm*#7Gu0?vf7YU}^n`X95=vXO7^Oz{6}{r_)1 C6dm6H diff --git a/KunalAcharya/LoginPageTask/index.html b/KunalAcharya/LoginPageTask/index.html new file mode 100644 index 0000000..ddc8dd3 --- /dev/null +++ b/KunalAcharya/LoginPageTask/index.html @@ -0,0 +1,77 @@ + + + + + + + + + Login + + + + + + + + + + + + + +
+
+
+
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + + +
+
+ +
+ +
+ + +
+
+
+
+
+ + \ No newline at end of file diff --git a/KunalAcharya/LoginPageTask/js/index.js b/KunalAcharya/LoginPageTask/js/index.js new file mode 100644 index 0000000..02004b3 --- /dev/null +++ b/KunalAcharya/LoginPageTask/js/index.js @@ -0,0 +1,80 @@ +save = function(){ + var userName = document.getElementById("uName").value; + if (isBlankText(userName)){ + alert("UserName can't be blank!!!!"); + return; + } + var emailId = document.getElementById("email").value; + isValidEmailAdress(emailId); + var phoneNumber = document.getElementById("phone").value; + if(!isValidPhoneNumber(phoneNumber)){ + alert("Please Enter Valid Indian Phone Number"); + return; + } + var password = document.getElementById("password").value; + if (isBlankText(password)){ + alert("Password can't be blak"); + return; + } + if (password.length < 6){ + alert("Please enter password greater than 6 character!!!") + return + } + var confirmedPassword = document.getElementById("cnfPassword").value; + + + if (!isTwoTextSame(password,confirmedPassword)){ + alert("Please enter same password!!!!!") + return; + }; + + if(document.getElementById("belowEighteen").checked){ + var age = "Below 18" + } + if(document.getElementById("eighteen").checked){ + var age = "18" + } + if(document.getElementById("aboveEighteen").checked){ + var age = "Above 18" + } + // window.open("~/success.html") + return; +} + +function isBlankText(text){ + if (text.localeCompare("") == 0){ + return true; + } + return false; +} + +function isTwoTextSame(text1, text2){ + if (text1.localeCompare(text2) == 0){ + return true; + }; + return false; +} + +function isValidPhoneNumber(phoneNumber){ + if (isBlankText(phoneNumber)){ + alert("Phone number cant be blank") + return; + } + var phoneRegex = /^\d{10}$/; + if (phoneRegex.test(phoneNumber)){ + return true; + } + return false; +} + +function isValidEmailAdress(emailId){ + if(isBlankText(emailId)){ + alert("Email can't be blank"); + return; + } + var pattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; + if (pattern.test(emailId)){ + return true; + } + return false; +} \ No newline at end of file diff --git a/KunalAcharya/LoginPageTask/static/css/main.css b/KunalAcharya/LoginPageTask/static/css/main.css new file mode 100644 index 0000000..38f640b --- /dev/null +++ b/KunalAcharya/LoginPageTask/static/css/main.css @@ -0,0 +1,40 @@ + body{ + padding-top:4.2rem; + padding-bottom:4.2rem; + background:rgba(0, 0, 0, 0.76); + } + a{ + text-decoration:none !important; + } + h1,h2,h3{ + font-family: cursive; + } + .signupForm{ + position: relative; + display: -ms-flexbox; + display: flex; + padding: 1rem; + -ms-flex-direction: column; + flex-direction: column; + width: 100%; + pointer-events: auto; + background-color: #fff; + background-clip: padding-box; + border: 1px solid rgba(0,0,0,.2); + border-radius: 1.1rem; + outline: 0; + max-width: 500px; + top: 50%; + left: 50%; + } + .tx-tfm{ + text-transform:uppercase; + } + .mybtn{ + border-radius:50px; + } + + form .error { + color: #ff0000; + } + #second{display:none;} \ No newline at end of file diff --git a/KunalAcharya/LoginPageTask/success.html b/KunalAcharya/LoginPageTask/success.html new file mode 100644 index 0000000..052a117 --- /dev/null +++ b/KunalAcharya/LoginPageTask/success.html @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/KunalAcharya/MyDetails.txt b/KunalAcharya/MyDetails.txt new file mode 100644 index 0000000..f3b9661 --- /dev/null +++ b/KunalAcharya/MyDetails.txt @@ -0,0 +1,7 @@ +Name - Kunal Acharya. +College Name - M.B.M. Engineering College Jodhpur, Rajasthan. +Stream - Electronics And Computer Science. +Year Of Study - 3rd Year. +Passing Year - 2021. +Current Location - Jodhpur Rajasthan. +Home City - Bikaner Rajasthan. diff --git a/KunalAcharya/README.md b/KunalAcharya/README.md new file mode 100644 index 0000000..b353af6 --- /dev/null +++ b/KunalAcharya/README.md @@ -0,0 +1,32 @@ +##Author Kunal Acharya +##Date 2020-03-25 + +Signup Page + +Description + +HTML and Javascript based signup page + +Assumptions + 1.The input Phone Number is Indian (10 digits) + + +Tehnology: + + HTML: + + 1. HTML. + + 2. CSS. + + 3. Javascript. + + +Setup: + + Fork the repository from the github. + + +Run: + + Click on the Index.html file open it on Google-Chrome browser(recommended). \ No newline at end of file