This is a paragraph.
--------------------------------------------------------------------------------
/Debugging Exercise/Exercise1 - HTML/03-solutionQ3.html:
--------------------------------------------------------------------------------
1 |
This is a Heading
2 |
This is a paragraph.
--------------------------------------------------------------------------------
/Debugging Exercise/Exercise1 - HTML/04-q4.html:
--------------------------------------------------------------------------------
1 |
2 | My house is red - a little house;
3 | A happy child am I:
4 | I laugh and play the whole day long,
5 | I hardly ever cry.
6 |
7 | I have a tree, a green, green tree,
8 | To shade me from the sun;
9 | And under it I often sit,
10 | When all my play is done.
11 |
--------------------------------------------------------------------------------
/Debugging Exercise/Exercise1 - HTML/04-solutionQ4.html:
--------------------------------------------------------------------------------
1 |
2 | My house is red - a little house;
3 | A happy child am I:
4 | I laugh and play the whole day long,
5 | I hardly ever cry.
6 |
7 | I have a tree, a green, green tree,
8 | To shade me from the sun;
9 | And under it I often sit,
10 | When all my play is done.
11 |
52 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga
53 | perferendis quia iste nisi ea vero voluptatibus corrupti harum aliquam
54 | modi.
55 |
32 |
33 |
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/Details:
--------------------------------------------------------------------------------
1 | The images used in Modern Chair Project are uploaded in this folder.
2 |
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/chair1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/chair1.png
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/chair2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/chair2.png
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/chair3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/chair3.png
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/chair4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/chair4.png
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/chair5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/chair5.png
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/chair6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/chair6.png
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/color1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/color1.jpg
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/color2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/color2.jpg
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/color3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/color3.jpg
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/color4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/color4.jpg
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/color5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/color5.jpg
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/color6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/color6.jpg
--------------------------------------------------------------------------------
/Homework and all codes/Animations_and_Responsiveness/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Animations_and_Responsiveness/images/favicon.ico
--------------------------------------------------------------------------------
/Homework and all codes/Backend/Homework Questions:
--------------------------------------------------------------------------------
1 | 1) What is idempotent? Out of 4 requests of HTTP, which are idempotent?
2 | 2) What is process.exit(1) in Backend Class 2 in config folder.
3 | 3) What is cookie parser? Why we need cookie parser?
4 | 4) Explore verify,compare and sign functions used in auth app.
5 | 5) Why header is considered as most secure way to fetch token?
6 | 6) Study about cookie hijacking and token hijacking.
7 | 7) What is difference between Relational and Non relational DB? Out of these 2, MongoDB comes under?
8 | 8) Why name of the image changed when we uploaded on cloudinary?
9 | 9) Add upper limit of 5MB as validation in videoupload of FileUpload Project.
10 | 10) Compress image by defining height and width of image.
11 |
--------------------------------------------------------------------------------
/Homework and all codes/CSS/1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | Document
10 |
23 |
24 |
25 |
Lorem ipsum dolor sit amet consectetur adipisicing elit. Porro a ipsam voluptatibus, est reiciendis et aperiam Lorem ipsum dolor sit amet consectetur adipisicing elit. Inventore, voluptate.
28 |
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nam obcaecati cumque repudiandae deleniti iusto veritatis explicabo cupiditate nobis ut maxime natus, incidunt odit nihil officia impedit ratione inventore? Sapiente, aperiam.
30 |
31 |
--------------------------------------------------------------------------------
/Homework and all codes/CSS/Homework Questions:
--------------------------------------------------------------------------------
1 | 1) What are universal, nested and attribute selectors?
2 | 2) Explore font-family,font-weight,font-style,emphasis and importance,add external fonts (google fonts).
3 | 3) Make a box of size 100x100 px and then put in 1000 words content. What will happen? (Think in terms of overflow)
4 | 4) Difference between 1% and 1viewport width.
5 | 5) Make web development bootcamp card.
6 | 6) Explore conic gradients.
7 | 7) How can we add border using shadows?
8 | 8) What is spread radius in shadows?
9 | 9) Position text in all corners and center of an image.
10 | 10) Learn about matrix in 2D transforms.
11 | 11) Why no need to turn on the perspective in case of rotateZ?
12 | 12) Was there a need of giving z-index : -1; in container when we were trying to make sure that Adventure text is visible? (Parallax Effect Website)
13 | 13) Was there a need of position : relative; in container?
14 | 14) Apply external font to Adventure text in Parallax Effect Website. (Poppins , sans serif)
15 | 15) What is the difference between img and background-image tab ? (Maybe check the difference between the print of both of these)
16 | 16) Study grid row , grid column shorthand notations.
17 | 17) Explore some properties - justify content, align content, justify self, justify items, align items, align self, place items, place self
18 | 18) Make : https://codehelp-product-card.netlify.app/
19 | 19) Figma Assignment Link : https://www.figma.com/file/yCb8S93CG1ckFBLeFQy98l/CodeHelp-Figma-Assignment--1
20 | 20) Complete image gallery project using grids.
21 | 21) Attempt CSS Quiz and Debugging Exercises.
22 |
--------------------------------------------------------------------------------
/Homework and all codes/CSS/Positioning_Properties.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
35 |
36 |
37 |
12 | My house is red - a little house;
13 | A happy child am I:
14 | I laugh and play the whole day long,
15 | I hardly ever cry.
16 |
17 | I have a tree, a green, green tree,
18 | To shade me from the sun;
19 | And under it I often sit,
20 | When all my play is done.
21 |
35 |
36 |
--------------------------------------------------------------------------------
/Homework and all codes/HTML/favicon/android-chrome-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/HTML/favicon/android-chrome-192x192.png
--------------------------------------------------------------------------------
/Homework and all codes/HTML/favicon/android-chrome-512x512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/HTML/favicon/android-chrome-512x512.png
--------------------------------------------------------------------------------
/Homework and all codes/HTML/favicon/apple-touch-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/HTML/favicon/apple-touch-icon.png
--------------------------------------------------------------------------------
/Homework and all codes/HTML/favicon/browserconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | #da532c
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Homework and all codes/HTML/favicon/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/HTML/favicon/favicon-16x16.png
--------------------------------------------------------------------------------
/Homework and all codes/HTML/favicon/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/HTML/favicon/favicon-32x32.png
--------------------------------------------------------------------------------
/Homework and all codes/HTML/favicon/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/HTML/favicon/favicon.ico
--------------------------------------------------------------------------------
/Homework and all codes/HTML/favicon/mstile-150x150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/HTML/favicon/mstile-150x150.png
--------------------------------------------------------------------------------
/Homework and all codes/HTML/favicon/site.webmanifest:
--------------------------------------------------------------------------------
1 | {
2 | "name": "",
3 | "short_name": "",
4 | "icons": [
5 | {
6 | "src": "/android-chrome-192x192.png",
7 | "sizes": "192x192",
8 | "type": "image/png"
9 | },
10 | {
11 | "src": "/android-chrome-512x512.png",
12 | "sizes": "512x512",
13 | "type": "image/png"
14 | }
15 | ],
16 | "theme_color": "#ffffff",
17 | "background_color": "#ffffff",
18 | "display": "standalone"
19 | }
20 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript Basics/Homework Questions:
--------------------------------------------------------------------------------
1 | 1) Do we need an active internet connection to write code of JS in console window of Browswer?
2 | 2) Java vs Javascript.
3 | 3) Redeclaration of variable via var keyword is possible or not?
4 | 4) Why was there a strike on variable name?
5 | 5) Do combining and slicing on objects.
6 | 6) Try sorting on objects.
7 | 7) Sort the numbers using callback function such that string nature is ignored.
8 | 8) Explore finally block in error handling.
9 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript Basics/Homework.js:
--------------------------------------------------------------------------------
1 | // Redeclaration of variable using var keyword
2 | var name = 'Love';
3 | function walk(){
4 | var name = 'Bhavya';
5 | console.log(name);
6 | }
7 | walk();
8 | // Combining method on objects present in arrays
9 | let arr1 = [{1:'Bhavya'},{2:'Love'}];
10 | let arr2 = [{3:'Rahul'},{4:'Shardul'}];
11 | let combined = arr1.concat(arr2);
12 | console.log(combined);
13 | // Slicing method on objects present in arrays
14 | let sliced = combined.slice(1,3);
15 | console.log(sliced);
16 | // Sorting in objects
17 | let arr3 = [{2:'Bhavya'},{3:'Love'},{1:'Rahul'}];
18 | arr3.sort((a, b) => {
19 | const keyA = parseInt(Object.keys(a)[0]);
20 | const keyB = parseInt(Object.keys(b)[0]);
21 |
22 | return keyA - keyB;
23 | });
24 | console.log(arr3);
25 | // Sorting on numbers
26 | let nums = [10,1,4,40];
27 | nums.sort((a,b)=>(a-b));
28 | console.log(nums);
29 | // Finally block -> Executed regardless of the result of try block
--------------------------------------------------------------------------------
/Homework and all codes/Javascript Basics/JS1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 |
10 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript Basics/JS1.js:
--------------------------------------------------------------------------------
1 | // Print on console
2 | console.log('Hello jee');
3 |
4 | // Variable in JS
5 | let a = 5;
6 | console.log(a);
7 | let b = 'Bhavya';
8 | console.log(b);
9 |
10 | // Constants in JS
11 | const c = 5;
12 | // c=6; // This gives an error
13 |
14 | // Dyanamic Typing
15 | let number = 5;
16 | number = 'Sir';
17 | console.log(number); // Sir will be printed here
18 |
19 | // Operators in JS
20 | // Arithemetic Operators
21 | let x = 2;
22 | let y = 3;
23 | console.log(x+y);
24 | console.log(x-y);
25 | console.log(x*y);
26 | console.log(x/y);
27 | console.log(x%y);
28 | console.log(x**y);
29 | // Comparasion operators
30 | console.log(x>y);
31 | console.log(x>=y);
32 | console.log(x=18) ? 'I can vote' : 'I can not vote';
39 | console.log(status);
40 |
41 | // Control statements
42 | // if else
43 | let marks = 96;
44 | if(marks >= 90){
45 | console.log('Grade = A');
46 | }
47 | else if(marks >= 80){
48 | console.log('Grade = B');
49 | }
50 | else{
51 | console.log('Grade = C');
52 | }
53 | // switch case
54 | let num = 2;
55 | switch(num){
56 | case 1 : console.log('a'); break;
57 | case 2 : console.log('b');break;
58 | default : console.log('d');
59 | }
60 |
61 | // Loops
62 | // for loop
63 | for(let i = 0;i<5;i++){
64 | console.log(i);
65 | }
66 | // while loop
67 | let i = 0;
68 | while(i<5){
69 | console.log(i);
70 | i++;
71 | }
72 | // do while loop
73 | let j = 0;
74 | do{
75 | console.log(j);
76 | j++;
77 | }
78 | while(j<10);
79 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript Basics/JS2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript Basics/JS2.js:
--------------------------------------------------------------------------------
1 | // Creation of object
2 | const rectangle = {
3 | length:1,
4 | breadth:2,
5 | // Defining the method
6 | // draw : function(){
7 | // console.log('draw');
8 | // }
9 | draw(){
10 | console.log('draw');
11 | }
12 | }
13 | // Factory function
14 | function createRectangle(l,b){
15 | let rectangle = {
16 | length:l,
17 | breadth:b
18 | }
19 | return rectangle;
20 | };
21 | let a = createRectangle(5,6);
22 | console.log(a.length);
23 | // Constructor function
24 | function Rectangle(l,b){
25 | this.length = l;
26 | this.breadth = b;
27 | this.draw = function(){
28 | console.log('drawing');
29 | }
30 | }
31 | let rectangleObj = new Rectangle(5,6);
32 | console.log(rectangleObj.length);
33 | console.log(rectangleObj.breadth);
34 | // Dyanamic nature of object
35 | let obj = {
36 | a : 1,
37 | b : 2
38 | }
39 | obj.c = 3;
40 | delete obj.c;
41 | // Iterating through objects
42 | let rectangle1 = {
43 | length : 2,
44 | breadth : 4
45 | }
46 | // for in loop
47 | for(let key in rectangle1){
48 | console.log(key,rectangle1[key]);
49 | }
50 | // for of loop
51 | for(let key of Object.entries(rectangle1)){
52 | console.log(key);
53 | }
54 | // Way to find whether a particular property exist in object or not
55 | if('color' in rectangle1){
56 | console.log('Present');
57 | }
58 | else{
59 | console.log('Absent');
60 | }
61 | // Object cloning
62 | // Iteration
63 | let src = {value : 10};
64 | let dest = {};
65 | for(let key in src){
66 | dest[key] = src[key];
67 | }
68 | // Assign
69 | let dest1 = Object.assign({},src);
70 | // Spread
71 | let dest2 = {...src};
--------------------------------------------------------------------------------
/Homework and all codes/Javascript Basics/JS3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript Basics/JS4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript Basics/JS4.js:
--------------------------------------------------------------------------------
1 | // Creating functions in Javascript
2 | // Method - 1
3 | function run(){
4 | console.log('running');
5 | }
6 | // function invoke
7 | run();
8 | // Method - 2
9 | // Named function assignment
10 | let stand = function walk(){
11 | console.log('walking');
12 | }
13 | stand();
14 | // Anonymous function assignment
15 | let stand1 = function (){ // function name not present
16 | console.log('walking1');
17 | }
18 | stand1();
19 | // Dyanamic nature in JS
20 | function sum(a,b){
21 | let total = 0;
22 | for(let val of arguments){
23 | total += val;
24 | }
25 | return total;
26 | }
27 | console.log(sum(1,2,3,4,5));
28 | // Rest operator
29 | function sum(...args){
30 | console.log(args);
31 | }
32 | sum(1,2,3,4,5);
33 | // Default parameters
34 | function sum(a,b=2,c=3){
35 | return a + b + c;
36 | }
37 | console.log(sum(1));
38 | // Getter and setter
39 | let person = {
40 | fName : 'Bhavya',
41 | lName : 'Bhalla',
42 | get fullName(){
43 | return `${person.fName} ${person.lName}`;
44 | },
45 | set setName(val){
46 | // if(typeof(val) !== String){
47 | // throw new Error("You have not passed a string sir");
48 | // }
49 | let parts = val.split(' ');
50 | this.fName = parts[0];
51 | this.lName = parts[1];
52 | }
53 | }
54 | console.log(person.fullName);
55 | person.setName = 'Love Babbar';
56 | console.log(person.fullName);
57 | // Error handling
58 | try{
59 | person.setName = 1;
60 | }
61 | catch(e){
62 | alert('You have not passed a string');
63 | }
64 |
65 | // Reducing an array
66 | let arr = [1,2,3,4];
67 | let totalSum = arr.reduce((accumulator,currentValue)=>accumulator + currentValue,0);
68 | console.log(totalSum);
69 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/Counter.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Counter APP
7 |
8 |
9 |
10 |
11 |
12 |
Increment and Decrement
13 |
14 |
15 |
18 |
19 |
-1
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/Counter.js:
--------------------------------------------------------------------------------
1 | const countValue = document.querySelector('#counter');
2 | const increment = () => {
3 | let value = countValue.innerText;
4 | // Here the text will be in form of string and hence convert it to integer
5 | intValue = parseInt(value);
6 | intValue = intValue + 1;
7 | countValue.innerText = intValue;
8 | }
9 | const decrement = () => {
10 | let value = countValue.innerText;
11 | // Here the text will be in form of string and hence convert it to integer
12 | intValue = parseInt(value);
13 | intValue = intValue - 1;
14 | countValue.innerText = intValue;
15 | }
16 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/DOM_ClassI.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 |
This is a header
10 |
This is a heading
11 |
12 |
13 |
14 |
15 |
16 |
17 | Hello World
18 |
19 |
20 |
21 |
22 |
Hello World
23 |
24 |
25 |
26 |
27 | This is red in color and has background color aqua
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/DOM_ClassII.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/DOM_ClassIII.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/DOM_ClassIII.js:
--------------------------------------------------------------------------------
1 | // Performance
2 |
3 | // Initial code
4 | const t1 = performance.now();
5 | for(let i = 1;i<=10;i++){
6 | let newElement = document.createElement('p');
7 | newElement.textContent = 'This is para - ' + i;
8 | document.body.appendChild(newElement);
9 | }
10 | const t2 = performance.now();
11 | console.log(t2-t1);
12 | // Optimizing code
13 | const t3 = performance.now();
14 | let myDiv = document.createElement('div');
15 | for(let i = 1;i<=10;i++){
16 | let element = document.createElement('p');
17 | element.textContent = 'This is para - ' + i;
18 | myDiv.appendChild(element);
19 | }
20 | document.body.appendChild(myDiv);
21 | const t4 = performance.now();
22 | console.log(t4-t3);
23 | // Using document fragment
24 | const t5 = performance.now();
25 | let fragment = document.createDocumentFragment();
26 | for(let i = 1;i<=10;i++){
27 | let element = document.createElement('p');
28 | element.textContent = 'This is para - ' + i;
29 | fragment.appendChild(element);
30 | }
31 | document.body.appendChild(fragment);
32 | const t6 = performance.now();
33 | console.log(t6-t5);
34 | // setTimeout method
35 | setTimeout(function(){
36 | console.log('Hello jee');
37 | },4000);
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/DOM_ClassIV.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/Homework Question:
--------------------------------------------------------------------------------
1 | 1) Study outerHTML (Rarely used)
2 | 2) Study remove method to remove the child element as it does not require parent element to be known already.
3 | 3) Explore dispatchEvent
4 | 4) How to enable event listener in target phase?
5 | 5) Watch Philip Roberts video on event loop
6 | 6) get/post/put/delete in API
7 | 7) classes and export modules in JS.
8 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/Homework.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 |
10 |
Hello Jee
11 |
12 |
13 |
14 |
Hello jee
15 |
16 |
17 |
Hello Sir Jee
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/Homework.js:
--------------------------------------------------------------------------------
1 | // Outer HTML
2 | let element = document.querySelector('.para');
3 | // Comment all the below code to make sure change function runs
4 | function change(){
5 | element.outerHTML = '
Hello jee
';
6 | }
7 | // // Remove method
8 | // let childElement = document.querySelector('.child');
9 | // childElement.remove();
10 | // // dispatchEvent
11 | // let event1 = new Event('Click');
12 | // let element1 = document.querySelector('.para1');
13 | // element.dispatchEvent(event1);
14 | // // Importing a function
15 | // import sum from './add.js';
16 | // const result = sum(2,3);
17 | // console.log(result);
18 | // // Importing a class
19 | // import {Person} from './person.js';
20 | // const john = new Person('John',30);
21 | // john.sayHello();
22 |
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/ShareModal.js:
--------------------------------------------------------------------------------
1 | const modal = document.querySelector('.modal');
2 | const overlay = document.querySelector('.overlay');
3 |
4 | // Modal open function
5 | function openModal(){
6 | modal.classList.add('active');
7 | // overlay is the blurry filter
8 | overlay.classList.add('overlayactive');
9 | }
10 | // Modal close function
11 | function closeModal(){
12 | modal.classList.remove('active');
13 | overlay.classList.remove('overlayactive');
14 | }
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/add.js:
--------------------------------------------------------------------------------
1 | // exporting a function
2 | export default function sum(a,b){
3 | return a + b;
4 | }
--------------------------------------------------------------------------------
/Homework and all codes/Javascript DOM Manipulation and Modern Javascript/person.js:
--------------------------------------------------------------------------------
1 | export class Person{
2 | constructor(name,age){
3 | this.name = name;
4 | this.age = age;
5 | }
6 | sayHello(){
7 | console.log(`Hello, My name is ${this.name} and age is ${this.age}`);
8 | }
9 | }
--------------------------------------------------------------------------------
/Homework and all codes/Javascript Mini Projects/Homework Questions:
--------------------------------------------------------------------------------
1 | 1) Password Generator
2 | --> Apply box shadow to div of strength showing color.
3 | 2) Weather App
4 | --> code catch block of fetchUserWeatherInfo
5 | --> Difference between JSON String and JSON Object. ALso understand difference between res.json() and JSON.parse().
6 | --> Show an alert when no geolocation service supported.
7 | --> Implement catch block of fetchSearchWeatherInfo.
8 |
--------------------------------------------------------------------------------
/Homework and all codes/React/Homework Questions:
--------------------------------------------------------------------------------
1 | 1) Explore about props.className.
2 | 2) Why const is written in const [title,setTitle] = useState(props.title);
3 | 3) setTitle('popcorn') is immediate or take some time i.e. scheduled?
4 | 4) Update window size on UI after dragging.
5 | 5) Study documentation of forms. Explore fieldset and legend tag in forms in react.
6 | 6) Style form app : https://codehelp-form-demo.netlify.app/
7 | 7) In signup form, when we click eye button, both the password becomes text. Fix this.
8 | 8) Study about state,action and action.payload in reducers in redux.
9 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Discord Clone/Details:
--------------------------------------------------------------------------------
1 | 1) Code for Discord Clone without Responsiveness code.
2 | 2) You need to install the node modules folder
3 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Discord Clone/main.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Discord Clone/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "start": "vite"
4 | },
5 | "devDependencies": {
6 | "autoprefixer": "^10.4.14",
7 | "postcss": "^8.4.24",
8 | "tailwindcss": "^3.3.2",
9 | "vite": "^4.3.9"
10 | },
11 | "dependencies": {
12 | "feather": "^0.0.6"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Discord Clone/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | },
6 | }
7 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Discord Clone/tailwind.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('tailwindcss').Config} */
2 | module.exports = {
3 | content: ["*"],
4 | theme: {
5 | extend: {},
6 | },
7 | plugins: [],
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Homework Questions:
--------------------------------------------------------------------------------
1 | 1) In box section of Razorpay Clone, add the properties which comes when hover is done.
2 | 2) Code footer section of Razorpay website.
3 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/Details:
--------------------------------------------------------------------------------
1 | 1) Here is the code for razorpay clone without responsiveness
2 | 2) You need to add the node modules folder as well
3 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/CTABg.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/Details:
--------------------------------------------------------------------------------
1 | Here are all the images that we used in the Razorpay Clone.
2 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/Xicon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/autopay-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/buisness-banking.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/buisness-banking.png
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/capital-credit-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/comanies.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/comanies.png
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/core-features-sectionBg.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/dashboard-reporting-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/facebook-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/fake-company-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/fake-company-logo.png
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/favicon.png
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/feature-section-2BG.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/feature-section1-dottedrows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/feature-section1-dottedrows.png
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/features-wave.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/features2-wave.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/footer-certificate-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/footer-certificate-1.png
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/footer-certificate-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/footer-certificate-2.jpg
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/github-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/hero-illustration.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/hero-illustration.jpg
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/hero-shape.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/industry-support-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/instagram-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/instant-activation-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/instant-settlement-bg.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/instant-settlement-bghover.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/instant-settlement-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/instantsettlement-bg.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/linkedin-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/magic-checkout-bg.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/payment-button-bg.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/payment-button.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/payment-buttons-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/payment-gateway.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/payment-suite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/payment-suite.png
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/payouts-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/quotes.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/route-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/secure-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/simple-pricing.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/smart-collect-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/subscriptions-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/testimonial.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/testimonial.jpg
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/twitter-icon.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/upi-autopay-bg.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/x-flame-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/x-flame-1.png
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/images/x-flame-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/Homework and all codes/Tailwind CSS/Razorpay Clone/images/x-flame-2.png
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/main.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "start": "vite"
4 | },
5 | "devDependencies": {
6 | "autoprefixer": "^10.4.14",
7 | "postcss": "^8.4.24",
8 | "tailwindcss": "^3.3.2",
9 | "vite": "^4.3.9"
10 | },
11 | "dependencies": {
12 | "feather": "^0.0.6"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | },
6 | }
7 |
--------------------------------------------------------------------------------
/Homework and all codes/Tailwind CSS/Razorpay Clone/tailwind.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('tailwindcss').Config} */
2 | module.exports = {
3 | content: ["*"],
4 | theme: {
5 | extend: {fontFamily: {
6 | mullish: ["Mulish", "sans-serif"],
7 | },
8 | colors: {
9 | deepBlue: "#02042a",
10 | lightBlue: "#2b84ea",
11 | lightBlue300: "#4b94ed",
12 | lightBlue500: "#0b72e7",
13 | greenLight: "#61cea6",
14 | grayText: "#818597",
15 | lightGray: "#e2e2e2",
16 | grayBlue: "#344a6c",
17 | deepBlueHead: "#162f56",
18 | gray2: "#525a76",
19 | },},
20 | },
21 | plugins: [],
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/Homework and all codes/readme-style:
--------------------------------------------------------------------------------
1 |
38 |
--------------------------------------------------------------------------------
/index Web Dev Batch.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SaurabSharma09/Dot-Batch-All-Content/92a71a9c2e3bb48d48b87d8363c046df7bcb2888/index Web Dev Batch.docx
--------------------------------------------------------------------------------