├── .gitignore
├── .idea
├── WebdevPitampura2019December.iml
├── misc.xml
├── modules.xml
├── vcs.xml
└── workspace.xml
├── Lecture01
├── Intro_to_WebDev.pptx
└── frontend-basics
│ ├── index.html
│ ├── script.js
│ └── style.css
├── Lecture02
└── html-basics
│ ├── audio.mp3
│ ├── formelements.html
│ ├── iframes.html
│ ├── index.html
│ ├── lists.html
│ ├── media.html
│ ├── picture.jpg
│ ├── tables.html
│ ├── text.html
│ └── video.mp4
├── Lecture03
└── css-basics
│ ├── box-model
│ ├── index.html
│ └── style.css
│ ├── combinators
│ ├── index.html
│ └── style.css
│ ├── intro
│ ├── index.html
│ └── style.css
│ ├── pseudo-selectors
│ ├── index.html
│ └── style.css
│ ├── selectors
│ ├── index.html
│ └── style.css
│ └── visibility
│ ├── index.html
│ └── style.css
├── Lecture04
└── css-advanced
│ ├── animations
│ ├── index.html
│ └── style.css
│ ├── collapse-list
│ ├── index.html
│ └── style.css
│ ├── pop-button
│ ├── index.html
│ └── style.css
│ ├── transforms
│ ├── index.html
│ └── style.css
│ └── transitions
│ ├── index.html
│ └── style.css
├── Lecture05
├── 3dcss-cube
│ ├── index.html
│ └── style.css
└── positioning
│ ├── index.html
│ └── style.css
├── Lecture06
├── bomdom
│ ├── index.html
│ └── script.js
├── console
│ ├── console1.txt
│ ├── console2.txt
│ ├── console3.txt
│ └── console4.txt
├── fizzbuzz
│ ├── index.html
│ └── script.js
├── hof
│ ├── index.html
│ └── script.js
├── scopes
│ ├── index.html
│ └── script.js
└── todolist
│ ├── index.html
│ └── script.js
├── Lecture07
├── bootstrap
│ ├── index.html
│ └── style.css
└── css-media-queries
│ ├── index.html
│ ├── media-queries-2
│ ├── index.html
│ └── style.css
│ ├── media-query-flexbox
│ ├── index.html
│ └── style.css
│ └── style.css
├── Lecture08
└── js-2
│ ├── .vscode
│ └── settings.json
│ ├── hof
│ ├── index.html
│ ├── script.js
│ └── script2.js
│ ├── object-create
│ ├── class.js
│ ├── index.html
│ ├── proto-chains.js
│ └── script.js
│ ├── oop
│ ├── OopSample.cpp
│ ├── OopSample.java
│ └── a.out
│ ├── pass-by
│ ├── index.html
│ └── script.js
│ └── this
│ ├── index.html
│ └── script.js
├── Lecture09
├── async-js
│ ├── index.html
│ └── script.js
├── node
│ ├── index.html
│ └── script.js
└── using-jquery
│ ├── index.html
│ ├── jquery-3.4.1.js
│ └── script.js
├── Lecture10
├── browser-multifile
│ ├── index.html
│ ├── lib.js
│ └── main.js
├── file-ops
│ ├── mytext.txt
│ ├── read.js
│ └── write.js
├── file-sort
│ ├── input1.txt
│ ├── input2.txt
│ ├── input3.txt
│ ├── output.txt
│ └── sort.js
├── node-intro
│ └── index.js
├── node-multifile
│ ├── index.html
│ ├── lib.js
│ └── main.js
└── universal-multifile
│ ├── index.html
│ ├── lib.js
│ └── main.js
├── Lecture11
├── node-import
│ ├── google-logo.png
│ ├── package-lock.json
│ ├── package.json
│ └── try-request.js
└── sort-with-promises
│ ├── Fluent_API.pseudocode
│ ├── input1.txt
│ ├── input2.txt
│ ├── input3.txt
│ ├── output.txt
│ ├── output2.txt
│ ├── sort-async-await.js
│ ├── sort-promise-how.js
│ └── sort-promise.js
├── Lecture12
├── .idea
│ ├── Lecture12.iml
│ ├── misc.xml
│ ├── modules.xml
│ ├── vcs.xml
│ └── workspace.xml
└── intro-express
│ ├── google-logo.png
│ ├── package-lock.json
│ ├── package.json
│ ├── server.js
│ └── todolist.js
├── Lecture13
├── ajax-todo
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── index.html
│ │ ├── script-classic.js
│ │ ├── script.js
│ │ └── style.css
│ └── server.js
├── ajax-with-express
│ ├── .idea
│ │ ├── .gitignore
│ │ ├── ajax-with-express.iml
│ │ ├── misc.xml
│ │ ├── modules.xml
│ │ └── vcs.xml
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── a.html
│ │ ├── alert.js
│ │ ├── b.html
│ │ ├── index.html
│ │ └── style.css
│ └── server.js
└── express-middlewares
│ ├── package-lock.json
│ ├── package.json
│ ├── server.js
│ ├── server2.js
│ ├── server3.js
│ └── server4.js
├── Lecture14
└── hbs-rendering
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── jquery.js
│ └── todo.js
│ ├── server.js
│ └── views
│ ├── faq.hbs
│ └── todo.hbs
├── Lecture15
├── mysql-intro
│ ├── README.md
│ ├── package-lock.json
│ ├── package.json
│ └── query.js
└── sequelize-with-mysql
│ ├── package-lock.json
│ ├── package.json
│ ├── read.js
│ └── write.js
├── Lecture16
└── intro-mongodb
│ ├── .gitignore
│ ├── package-lock.json
│ ├── read-promises.js
│ ├── write-promise.js
│ └── write.js
├── Lecture17
├── blog-project
│ ├── controllers
│ │ ├── articles.js
│ │ └── users.js
│ ├── data
│ │ └── db.js
│ ├── package-lock.json
│ ├── package.json
│ ├── routes
│ │ └── api
│ │ │ ├── articles.js
│ │ │ ├── index.js
│ │ │ └── profiles.js
│ └── server.js
└── session-management
│ ├── db.js
│ ├── package-lock.json
│ ├── package.json
│ ├── server.js
│ └── views
│ ├── login.hbs
│ ├── profile.hbs
│ ├── signup.hbs
│ └── viewcounter.hbs
├── Lecture18
└── blog-project
│ ├── README.md
│ ├── controllers
│ ├── articles.js
│ └── users.js
│ ├── data
│ ├── blog.db
│ └── db.js
│ ├── middlewares
│ └── auth.js
│ ├── package-lock.json
│ ├── package.json
│ ├── routes
│ └── api
│ │ ├── articles.js
│ │ ├── index.js
│ │ ├── profiles.js
│ │ ├── user.js
│ │ └── users.js
│ ├── server.js
│ └── utils
│ ├── random.js
│ └── string.js
└── Lecture19
└── websockets
├── package-lock.json
├── package.json
├── public
├── chat.js
├── index.html
├── jquery.js
└── style.css
└── server.js
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .idea/
3 | .vscode/
4 |
5 |
--------------------------------------------------------------------------------
/.idea/WebdevPitampura2019December.iml:
--------------------------------------------------------------------------------
1 |
2 |
sfgs | 13 |dfgn | 14 |dfh | 15 |frj | 16 |fghj | 17 |
dgn | 20 |rytu | 21 |gh | 22 |dghgdh | 23 ||
fgert | 26 |dfdfg | 27 |dgbdgfb | 28 |
Day | 35 |Cars | 36 |
---|---|
Monday | 41 |1000 | 42 |
Tuesday | 45 |2000 | 46 |
a para in the div
15 |a para inside a list item
22 |This is a paragraph
21 |This is a paragraph
23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Lecture03/css-basics/intro/style.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: green; 3 | } 4 | h4 { 5 | color: yellow; 6 | } 7 | -------------------------------------------------------------------------------- /Lecture03/css-basics/pseudo-selectors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |This is a paragraph
21 |One more para
22 | 23 | This is a span of text and 24 | here is another one 25 | 26 | 27 | -------------------------------------------------------------------------------- /Lecture03/css-basics/selectors/style.css: -------------------------------------------------------------------------------- 1 | .right { 2 | text-align: right; 3 | color: red; 4 | } 5 | 6 | .big { 7 | font-size: 20pt; 8 | } 9 | 10 | #one { 11 | background-color: yellow; 12 | } 13 | 14 | div { 15 | font-family: sans-serif; 16 | } 17 | 18 | div.right { 19 | padding-right: 30px; 20 | color: blue; 21 | } 22 | -------------------------------------------------------------------------------- /Lecture03/css-basics/visibility/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /Lecture06/bomdom/script.js: -------------------------------------------------------------------------------- 1 | console.log("hello") 2 | 3 | window.onload = function () { 4 | let name = document.getElementById('name') 5 | let greet = document.getElementById('greet') 6 | let para = document.getElementById('para') 7 | 8 | greet.onclick = function () { 9 | let a = document.createElement('a') 10 | a.setAttribute('href', 'https://codingblocks.com') 11 | a.innerHTML = 'Coding Blocks' 12 | para.appendChild(a) 13 | } 14 | 15 | // console.log(name) 16 | console.log(name.value) 17 | } -------------------------------------------------------------------------------- /Lecture06/console/console1.txt: -------------------------------------------------------------------------------- 1 | let x = 10 2 | undefined 3 | x 4 | 10 5 | typeof x 6 | "number" 7 | x = "hello" 8 | "hello" 9 | let a = [1,2,3] 10 | undefined 11 | a 12 | Array(3) [ 1, 2, 3 ] 13 | 14 | typeof a 15 | "object" 16 | Object 17 | function Object() 18 | 19 | delete a[0] 20 | true 21 | a.length 22 | 3 23 | a 24 | Array(3) [ undefined, 2, 3 ] 25 | 26 | let obj = {a:10, b:true,c:"Hello"} 27 | undefined 28 | obj 29 | Object { a: 10, b: true, c: "Hello" } 30 | 31 | obj.a 32 | 10 33 | delet obj.a 34 | SyntaxError: unexpected token: identifier 35 | debugger eval code:1:6 36 | delet obj[a] 37 | SyntaxError: unexpected token: identifier 38 | debugger eval code:1:6 39 | delete obj.a 40 | true 41 | obj 42 | Object { b: true, c: "Hello" } -------------------------------------------------------------------------------- /Lecture06/console/console2.txt: -------------------------------------------------------------------------------- 1 | 1 + "1" 2 | "11" 3 | "2" + 2 4 | "22" 5 | 1 + "1" + 1 6 | "111" 7 | 1 === "1" 8 | false 9 | 1 == "1" 10 | true 11 | '' === 0 12 | false 13 | '' == 0 14 | true 15 | true == 1 16 | true 17 | true == 0 18 | false 19 | true == 2 20 | false 21 | false == 0 22 | true 23 | false == 2 24 | false 25 | let a = [1,2,3] 26 | undefined 27 | a 28 | Array(3) [ 1, 2, 3 ] 29 | 30 | a.toString() 31 | "1,2,3" -------------------------------------------------------------------------------- /Lecture06/console/console3.txt: -------------------------------------------------------------------------------- 1 | "1" + (1+1) + "1" 2 | "121" 3 | [1,2] + [4,5] 4 | "1,24,5" 5 | "1" + 1+ 1 + "1" 6 | "1111" 7 | let obj = {a:10,b:true,c:"hello"} 8 | undefined 9 | obj 10 | Object { a: 10, b: true, c: "hello" } 11 | 12 | JSON.stringify(obj) 13 | "{\"a\":10,\"b\":true,\"c\":\"hello\"}" 14 | JSON.parse(obj) 15 | SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data 16 | debugger eval code:1:6 17 | obj 18 | Object { a: 10, b: true, c: "hello" } 19 | 20 | JSON.parse() -------------------------------------------------------------------------------- /Lecture06/console/console4.txt: -------------------------------------------------------------------------------- 1 | let obj = {a:10,b:20} 2 | undefined 3 | typeof obj 4 | "object" 5 | let str = JSON.stringify(obj) 6 | undefined 7 | str 8 | "{\"a\":10,\"b\":20}" 9 | typeof str 10 | "string" 11 | let arr = [1,2,3] 12 | undefined 13 | typeof arr 14 | "object" 15 | let obj = {} 16 | SyntaxError: redeclaration of let obj 17 | debugger eval code:1:1 18 | let obj1 = {} 19 | undefined 20 | typeof obj1 21 | "object" 22 | [] + {} 23 | "[object Object]" 24 | +[] -------------------------------------------------------------------------------- /Lecture06/fizzbuzz/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |Some sample text
19 | 20 |Name | 15 |{{user.name}} | 16 |
---|---|
Username | 20 |{{user.username}} | 21 |
{{user.email}} | 26 |
This is a chatting app
15 | 16 | 17 |