11 |
YouTube Ads Survey
12 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/21surveyForm/script.js:
--------------------------------------------------------------------------------
1 | document
2 | .getElementById("surveyForm")
3 | .addEventListener("submit", function (event) {
4 | event.preventDefault();
5 |
6 | var name = document.getElementById("name").value;
7 | var age = document.getElementById("age").value;
8 | var gender = document.getElementById("gender").value;
9 | var frequency = document.getElementById("frequency").value;
10 | var ads = document.getElementById("ads").value;
11 |
12 | // Add sparkle animation
13 | var sparkle = document.createElement("div");
14 | sparkle.classList.add("sparkle-animation");
15 | document.body.appendChild(sparkle);
16 |
17 | // Remove sparkle after animation ends
18 | sparkle.addEventListener("animationend", function () {
19 | sparkle.remove();
20 | });
21 | });
22 |
--------------------------------------------------------------------------------
/21surveyForm/style.css:
--------------------------------------------------------------------------------
1 | body {
2 | font-family: Arial, sans-serif;
3 | background-color: #f2f2f2;
4 | }
5 |
6 | .container {
7 | max-width: 400px;
8 | margin: 0 auto;
9 | padding: 20px;
10 | background-color: #fff;
11 | border-radius: 5px;
12 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
13 | }
14 |
15 | h2 {
16 | text-align: center;
17 | color: #333;
18 | }
19 |
20 | .form-group {
21 | margin-bottom: 15px;
22 | }
23 |
24 | .form-group label {
25 | display: block;
26 | margin-bottom: 5px;
27 | font-weight: bold;
28 | color: #555;
29 | }
30 |
31 | .form-group input[type="text"],
32 | .form-group input[type="number"],
33 | .form-group select,
34 | .form-group textarea {
35 | width: 100%;
36 | padding: 8px;
37 | border-radius: 5px;
38 | border: 1px solid #ccc;
39 | transition: border-color 0.3s ease;
40 | }
41 |
42 | .form-group input[type="text"]:focus,
43 | .form-group input[type="number"]:focus,
44 | .form-group select:focus,
45 | .form-group textarea:focus {
46 | outline: none;
47 | border-color: #c4302b;
48 | }
49 |
50 | .submit-btn {
51 | display: block;
52 | width: 100%;
53 | padding: 10px;
54 | margin-top: 20px;
55 | background-color: #c4302b;
56 | color: #fff;
57 | border: none;
58 | border-radius: 5px;
59 | cursor: pointer;
60 | transition: background-color 0.3s ease;
61 | }
62 |
63 | .submit-btn:hover {
64 | background-color: #962820;
65 | }
66 |
67 | .sparkle-animation {
68 | position: fixed;
69 | top: 50%;
70 | left: 50%;
71 | width: 50px;
72 | height: 50px;
73 | background: linear-gradient(
74 | -45deg,
75 | rgba(255, 255, 255, 0.8),
76 | rgba(255, 255, 255, 0)
77 | );
78 | transform: translate(-50%, -50%);
79 | animation: sparkle 1s ease forwards;
80 | z-index: 9999;
81 | pointer-events: none;
82 | }
83 |
84 | @keyframes sparkle {
85 | 0% {
86 | transform: translate(-50%, -50%) scale(0);
87 | opacity: 1;
88 | }
89 | 100% {
90 | transform: translate(-50%, -50%) scale(2);
91 | opacity: 0;
92 | }
93 | }
94 |
--------------------------------------------------------------------------------
/22loginForm/background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devikumavath/27-frontend-project/cc6c176f83643dae1ae85f929a08688027f7b4be/22loginForm/background.jpg
--------------------------------------------------------------------------------
/22loginForm/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
Taj mahel
15 |
16 |
17 |
18 |
24 |
Hawa Mahal
25 |
26 |
27 |
33 |
charminar
34 |
35 |
36 |
42 |
Marine Drive
43 |
44 |
45 |
51 |
Nandi statue
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/7ExpandingCards/logic.js:
--------------------------------------------------------------------------------
1 | const panels = document.querySelectorAll('.panel');
2 |
3 | panels.forEach(panel => {
4 | panel.addEventListener('click' , () => {
5 | removeActiveClasses();
6 | panel.classList.add('active');
7 | } )
8 |
9 |
10 | } )
11 |
12 | function removeActiveClasses(){
13 | panels.forEach(panel => {
14 | panel.classList.remove('active');
15 | })
16 | }
--------------------------------------------------------------------------------
/7ExpandingCards/style.css:
--------------------------------------------------------------------------------
1 | *{
2 | box-sizing: border-box;
3 | }
4 |
5 | body{
6 | font-family: 'Times New Roman', Times, serif;
7 | margin: 0%;
8 | display: flex;
9 | align-items: center;
10 | justify-content: center;
11 | min-height: 100vh;
12 | overflow: hidden;
13 | }
14 |
15 | .container
16 | {
17 | display: flex;
18 | width: 90vw;
19 |
20 | }
21 |
22 | .panel{
23 | background-size: cover;
24 | background-position: center;
25 | background-repeat: no-repeat;
26 | height:80vh;
27 | border-radius: 50px;
28 | flex: 0.5;
29 | position: relative;
30 | transition:flex 0.7s ease-in;
31 | color: white;
32 | cursor: pointer;
33 | margin: 10px;
34 | }
35 |
36 | .panel h3{
37 | position: absolute;
38 | bottom: 20px;
39 | left: 20px;
40 | font-size: 25px;
41 | opacity:0;
42 | }
43 |
44 | .panel.active {
45 | flex:5;
46 | }
47 |
48 | .panel.active h3{
49 | opacity:1;
50 | transition:opacity 0.4s ease-in 0.4s;
51 |
52 | }
53 | @media (max-width:480px)
54 | {
55 | .container{
56 | width: 100vh;
57 |
58 | }
59 |
60 | .panel:nth-of-type(4) , .panel:nth-of-type(5) {
61 | display: none;
62 | }
63 | }
--------------------------------------------------------------------------------
/8Calculator/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
Title
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/8Calculator/script.js:
--------------------------------------------------------------------------------
1 | const display = document.querySelector("#display");
2 | const buttons = document.querySelectorAll("button");
3 |
4 | buttons.forEach((item) => {
5 | item.onclick = () => {
6 | if (item.id == "clear") {
7 | display.innerText = "";
8 | } else if (item.id == "backspace") {
9 | let string = display.innerText.toString();
10 | display.innerText = string.substr(0, string.length - 1);
11 | } else if (display.innerText != "" && item.id == "equal") {
12 | display.innerText = eval(display.innerText);
13 | } else if (display.innerText == "" && item.id == "equal") {
14 | display.innerText = "Empty!";
15 | setTimeout(() => (display.innerText = ""), 2000);
16 | } else {
17 | display.innerText += item.id;
18 | }
19 | };
20 | });
21 |
22 | const themeToggleBtn = document.querySelector(".theme-toggler");
23 | const calculator = document.querySelector(".calculator");
24 | const toggleIcon = document.querySelector(".toggler-icon");
25 | let isDark = true;
26 | themeToggleBtn.onclick = () => {
27 | calculator.classList.toggle("dark");
28 | themeToggleBtn.classList.toggle("active");
29 | isDark = !isDark;
30 | };
31 |
--------------------------------------------------------------------------------
/8Calculator/style.css:
--------------------------------------------------------------------------------
1 | * {
2 | padding: 0;
3 | margin: 0;
4 | box-sizing: border-box;
5 | outline: 0;
6 | transition: all 0.5s ease;
7 | }
8 |
9 | body {
10 | font-family: sans-serif;
11 | }
12 |
13 | a {
14 | text-decoration: none;
15 | color: #fff;
16 | }
17 |
18 | body {
19 | background-image: linear-gradient( to bottom right, rgba(79,51,176,1.0),rgba(210,53,165));
20 | }
21 |
22 | .container {
23 | height: 100vh;
24 | width: 100vw;
25 | display: grid;
26 | place-items: center;
27 | }
28 |
29 | .calculator {
30 | position: relative;
31 | height: auto;
32 | width: auto;
33 | padding: 20px;
34 | border-radius: 10px;
35 | box-shadow: 0 0 30px #000;
36 | }
37 |
38 | .theme-toggler {
39 | position: absolute;
40 | top: 30px;
41 | right: 30px;
42 | color: #fff;
43 | cursor: pointer;
44 | z-index: 1;
45 | }
46 |
47 | .theme-toggler.active {
48 | color: #333;
49 | }
50 |
51 | .theme-toggler.active::before {
52 | background-color: #fff;
53 | }
54 |
55 | .theme-toggler::before {
56 | content: '';
57 | height: 30px;
58 | width: 30px;
59 | position: absolute;
60 | top: 50%;
61 | transform: translate(-50%, -50%);
62 | border-radius: 50%;
63 | background-color: #333;
64 | z-index: -1;
65 | }
66 |
67 | #display {
68 | margin: 0 10px;
69 | height: 150px;
70 | width: auto;
71 | max-width: 270px;
72 | display: flex;
73 | align-items: flex-end;
74 | justify-content: flex-end;
75 | font-size: 30px;
76 | margin-bottom: 20px;
77 | overflow-x: scroll;
78 | }
79 |
80 | #display::-webkit-scrollbar {
81 | display: block;
82 | height: 3px;
83 | }
84 |
85 | button {
86 | height: 60px;
87 | width: 60px;
88 | border: 0;
89 | border-radius: 30px;
90 | margin: 5px;
91 | font-size: 20px;
92 | cursor: pointer;
93 | transition: all 200ms ease;
94 | }
95 |
96 | button:hover {
97 | transform: scale(1.1);
98 | }
99 |
100 | button#equal {
101 | height: 130px;
102 | }
103 |
104 | /* light theme */
105 |
106 | .calculator {
107 | background-color: #fff;
108 | }
109 |
110 | .calculator #display {
111 | color: #0a1e23;
112 | }
113 |
114 | .calculator button#clear {
115 | background-color: #ffd5d8;
116 | color: #fc4552;
117 | }
118 |
119 | .calculator button.btn-number {
120 | background-color: #c3eaff;
121 | color: #000000;
122 | }
123 |
124 | .calculator button.btn-operator {
125 | background-color: #ffd0fb;
126 | color: #f967f3;
127 | }
128 |
129 | .calculator button.btn-equal {
130 | background-color: #adf9e7;
131 | color: #000;
132 | }
133 |
134 | /* dark theme */
135 |
136 | .calculator.dark {
137 | background-color: #071115;
138 | }
139 |
140 | .calculator.dark #display {
141 | color: #f8fafb;
142 | }
143 |
144 | .calculator.dark button#clear {
145 | background-color: #2d191e;
146 | color: #bd3740;
147 | }
148 |
149 | .calculator.dark button.btn-number {
150 | background-color: #1b2f38;
151 | color: #f8fafb;
152 | }
153 |
154 | .calculator.dark button.btn-operator {
155 | background-color: #2e1f39;
156 | color: #aa00a4;
157 | }
158 |
159 | .calculator.dark button.btn-equal {
160 | background-color: #223323;
161 | color: #ffffff;
162 | }
163 |
--------------------------------------------------------------------------------
/9.DetectPressedKey/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Detect key pressed
8 |
9 |
10 |
11 |
12 |
press any key
13 |
14 |
15 |
16 |
17 |
key :
18 |
code :
19 |
20 |
21 |
22 |
23 |
38 |
39 |
--------------------------------------------------------------------------------
/9.DetectPressedKey/logic.js:
--------------------------------------------------------------------------------
1 | document.addEventListener("keydown" , e =>{
2 | console.log(e);
3 |
4 | });
5 |
6 |
7 | //console.log;("hiii")
--------------------------------------------------------------------------------
/9.DetectPressedKey/style.css:
--------------------------------------------------------------------------------
1 | @import url("https://fonts.googleapis.com/css2?family=Mulish&family=Poppins&family=Ubuntu&display=swap");
2 |
3 | * {
4 | margin: 0;
5 | padding: 0;
6 | box-sizing: border-box;
7 | font-family: "Poppins", sans-serif;
8 | }
9 |
10 | body {
11 | display: flex;
12 | align-items: center;
13 | justify-content: center;
14 | min-height: 100vh;
15 | background: #17a2b8;
16 | }
17 |
18 | .text,
19 | .key-code,
20 | .key-name {
21 | font-size: 45px;
22 | color: #17a2b8;
23 | font-weight: 500;
24 | }
25 |
26 | .text {
27 | font-size: 30px;
28 | text-align: center;
29 | }
30 |
31 | .box.active .text {
32 | display: none;
33 | }
34 | .box {
35 | background: #fff;
36 | width: 290px;
37 | padding: 25px;
38 | border-radius: 15px;
39 | }
40 |
41 | .content,
42 | .key-code,
43 | .details {
44 | display: flex;
45 | align-items: center;
46 | justify-content: center;
47 | }
48 |
49 | .box .content {
50 | flex-direction: column;
51 | display: none;
52 | }
53 |
54 | .box.active .content {
55 | display: flex;
56 | }
57 |
58 | .content .key-code {
59 | border: 5px solid #17a2b8;
60 | height: 110px;
61 | width: 110px;
62 | margin-bottom: 15px;
63 | border-radius: 5px solid #17a2b8;
64 | border-radius: 50%;
65 | }
66 |
67 | .text,
68 | .key-code,
69 | .key-name {
70 | font-size: 45px;
71 | color: #17a2b8;
72 | font-weight: 500;
73 | }
74 |
75 | .content .details {
76 | width: 100%;
77 | margin-top: 15px;
78 | justify-content: space-evenly;
79 | }
80 |
81 | .details p {
82 | width: 100%;
83 | font-size: 18px;
84 | text-align: center;
85 | }
86 |
87 | .details p:last-child {
88 | border-left: 1px solid #bfbfbf;
89 | }
90 |
--------------------------------------------------------------------------------
/desktop.ini:
--------------------------------------------------------------------------------
1 | [.ShellClassInfo]
2 | IconResource=C:\WINDOWS\System32\SHELL32.dll,4
3 | [ViewState]
4 | Mode=
5 | Vid=
6 | FolderType=Generic
7 |
--------------------------------------------------------------------------------