├── README.md
├── lecture-2
├── .idea
│ ├── inspectionProfiles
│ │ └── profiles_settings.xml
│ ├── lecture-2.iml
│ ├── modules.xml
│ └── workspace.xml
└── lecture-2.html
├── lecture-3
├── .idea
│ ├── lecture-3.iml
│ ├── modules.xml
│ └── workspace.xml
├── lecture-3.css
└── lecture-3.html
├── lecture-4
├── .idea
│ ├── lecture-4.iml
│ ├── modules.xml
│ └── workspace.xml
├── lecture-4.css
└── lecture-4.html
├── lecture-5-b
├── .idea
│ ├── lecture-5-b.iml
│ ├── modules.xml
│ └── workspace.xml
└── lecture-5-b.html
├── lecture-5
├── .idea
│ ├── lecture-5.iml
│ ├── modules.xml
│ └── workspace.xml
├── lecture-5.css
└── lecture-5.html
├── lecture-6
├── .idea
│ ├── lecture-6.iml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
├── lecture-6.html
└── lecture-6.js
├── lecture-7
├── .idea
│ ├── lecture-7.iml
│ ├── misc.xml
│ ├── modules.xml
│ └── workspace.xml
├── lecture-7.html
└── lecture-7.js
├── lecture-8-b
├── .idea
│ └── workspace.xml
├── lecture-8.html
└── lecture-8.js
└── lecture-8
├── .idea
├── lecture-8.iml
├── misc.xml
├── modules.xml
└── workspace.xml
├── lecture-8.html
└── lecture-8.js
/README.md:
--------------------------------------------------------------------------------
1 | # Web Development Lectures
2 | This repository contains basic concepts of web-development in the form of a few lectures.
3 | It was made as part of a series of web development sessions I gave during my 2nd year.
4 |
5 | ##### Topics Covered
6 | * lecture-2: Basic HTML code
7 | * lecture-3: Basic HTML code with CSS
8 | * lecture-4: HTML and CSS for a 'smilie' to display position-property
9 | * lecture-5: HTML and CSS to display animation-property
10 | * lecture-5-b: HTML and CSS to display responsiveness of web-page
11 | * lecture-6: JS variables,functions and IIFE
12 | * lecture-7: Accessing HTML elements in JS
13 | * lecture-8: Todo list(without local-storage)
14 | * lecture-8-b: 'this' with 'use strict' in default binding
15 |
--------------------------------------------------------------------------------
/lecture-2/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/lecture-2/.idea/lecture-2.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/lecture-2/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lecture-2/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | true
49 | DEFINITION_ORDER
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 | 1532007849603
106 |
107 |
108 | 1532007849603
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
--------------------------------------------------------------------------------
/lecture-2/lecture-2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | HTML
6 |
7 |
8 |
9 |
HTML Tags
10 |

11 |
12 |
13 |
14 |
Semantic Tags
15 |
Semantic tags are those which describe their meaning to both the developer and the browser
16 |
Examples are :- <article> and <section>
17 | semantic tags google link
18 |
19 |
20 |
21 |
22 |
Non-semantic Tags
23 |
Non-semantic tags are do not convey any meaning to either the developer or the browser
24 |
Examples are :- <div> and <span>
25 | non-semantic tags google link
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/lecture-3/.idea/lecture-3.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/lecture-3/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lecture-3/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | true
64 | DEFINITION_ORDER
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 | 1532009578251
132 |
133 |
134 | 1532009578251
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
--------------------------------------------------------------------------------
/lecture-3/lecture-3.css:
--------------------------------------------------------------------------------
1 | h1{
2 | font-family:"DejaVu Sans Mono";
3 | color:sienna;
4 | font-weight:bolder;
5 | }
6 | h2{
7 | font-family:Purisa;
8 | color:chocolate;
9 | }
10 | #a,.c{
11 | text-align: center;
12 | margin:0 auto;
13 | }
14 | body{
15 | border: 2px solid black;
16 | }
17 | p{
18 | font-family:Loma;
19 | }
20 | .c{
21 | display:inline-block;
22 | height:30ex;
23 | /*ex:relative to height of font*/
24 | width:25em;
25 | /*em:relative to size of font*/
26 |
27 | }
28 | #b{
29 | display:flex;
30 | flex-wrap:wrap;
31 | }
32 | a{
33 | color:chocolate;
34 | }
35 | a:hover{
36 | color:green;
37 | }
38 |
--------------------------------------------------------------------------------
/lecture-3/lecture-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CSS
6 |
7 |
8 |
9 |
10 |
HTML Tags
11 |

12 |
13 |
14 |
15 |
16 |
Semantic Tags
17 |
Semantic tags are those which describe their meaning to both the developer and the browser
18 |
Examples are :- <article> and <section>
19 | semantic tags google link
20 |
21 |
22 |
23 |
24 |
Non-semantic Tags
25 |
Non-semantic tags are do not convey any meaning to either the developer or the browser
26 |
Examples are :- <div> and <span>
27 | non-semantic tags google link
28 |
29 |
30 |
31 |
32 |
33 | Was it helpful?
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/lecture-4/.idea/lecture-4.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/lecture-4/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lecture-4/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | true
59 | DEFINITION_ORDER
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 | 1532012161563
127 |
128 |
129 | 1532012161563
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
--------------------------------------------------------------------------------
/lecture-4/lecture-4.css:
--------------------------------------------------------------------------------
1 | #face{
2 | position:absolute;
3 | height:500px;
4 | width:500px;
5 | border:2px solid black;
6 | border-radius:50%;
7 | left:25%;
8 | }
9 | #eye1,#eye2{
10 | position:absolute;
11 | height:100px;
12 | width:100px;
13 | border:2px solid black;
14 | border-radius:50%;
15 | display:inline-block;
16 | background-color: black;
17 | }
18 | #eye{
19 | top:30%;
20 | width:100%;
21 | }
22 | #eye1{
23 | left:10%;
24 |
25 | }
26 | #eye2{
27 | right:10%;
28 | }
29 | #lips{
30 | top:60%;
31 | border-bottom:2px solid red;
32 | position:absolute;
33 | height:100px;
34 | width:100px;
35 | border-radius:50%;
36 | left:40%;
37 | }
38 |
--------------------------------------------------------------------------------
/lecture-4/lecture-4.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Smilie
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/lecture-5-b/.idea/lecture-5-b.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/lecture-5-b/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lecture-5-b/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | true
59 | DEFINITION_ORDER
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 | 1532091604120
127 |
128 |
129 | 1532091604120
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
--------------------------------------------------------------------------------
/lecture-5-b/lecture-5-b.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | task1sir
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/lecture-5/.idea/lecture-5.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/lecture-5/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lecture-5/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | true
59 | DEFINITION_ORDER
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 | 1532087558149
127 |
128 |
129 | 1532087558149
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
--------------------------------------------------------------------------------
/lecture-5/lecture-5.css:
--------------------------------------------------------------------------------
1 | #outer {
2 |
3 | width: 100px;
4 | height: 100px;
5 | margin:0 auto;
6 | box-sizing:border-box;
7 | position:relative;
8 | display:flex;flex-wrap: wrap;
9 | justify-content: center;
10 | animation-name: out-ani;
11 | animation-duration:4s;
12 | animation-iteration-count:infinite;
13 | animation-direction:alternate;
14 | animation-delay:-2s;
15 | }
16 | #inner{
17 | background-color: green;
18 | border-radius:100%;
19 | width:100px; height:100px;
20 | box-sizing: border-box;
21 | animation-name:in-ani;
22 | animation-duration:4s;
23 | animation-iteration-count:infinite;
24 | animation-direction:alternate;
25 | animation-delay:-2s;
26 | }
27 | @keyframes out-ani{
28 | 25%{border-top: 2px solid green;
29 |
30 | }
31 | 50%{
32 | border-top: 2px solid green;
33 | border-right: 2px solid green;
34 | }
35 | 75%{
36 | border-top: 2px solid green;
37 | border-right: 2px solid green;
38 | border-bottom: 2px solid green;
39 | }
40 | 100%{
41 | border: 2px solid green;
42 | background-color:green;
43 | }
44 | }
45 | @keyframes in-ani{
46 | 100%{
47 | background-color:white;
48 | }
49 | }
--------------------------------------------------------------------------------
/lecture-5/lecture-5.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | animate
6 |
7 |
8 |
9 |
10 |
15 |
16 |
--------------------------------------------------------------------------------
/lecture-6/.idea/lecture-6.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/lecture-6/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/lecture-6/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lecture-6/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | true
61 |
62 | true
63 | true
64 |
65 |
66 | true
67 | DEFINITION_ORDER
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 | 1532445495010
135 |
136 |
137 | 1532445495010
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
--------------------------------------------------------------------------------
/lecture-6/lecture-6.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Title
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/lecture-6/lecture-6.js:
--------------------------------------------------------------------------------
1 | //set to ECMAScript 6
2 | //IIFE
3 | (function(){
4 | console.log("first statement of the IIFE");
5 | //CLOSURE and FUNCTION-DECLARATION
6 | function parent(){
7 | var x=5;
8 | function child(){
9 | console.log("due to CLOSURE you can access x: "+ x);
10 | }
11 | return child;
12 | }
13 | parent()();
14 | //FUNCTION-EXPRESSION
15 | var xyz=function(){
16 | console.log("xyz");
17 | };
18 | xyz();
19 | })();
--------------------------------------------------------------------------------
/lecture-7/.idea/lecture-7.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/lecture-7/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/lecture-7/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lecture-7/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | true
59 |
60 | true
61 | true
62 |
63 |
64 | true
65 | DEFINITION_ORDER
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 | 1532447949052
133 |
134 |
135 | 1532447949052
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
--------------------------------------------------------------------------------
/lecture-7/lecture-7.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Accessing HTML
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/lecture-7/lecture-7.js:
--------------------------------------------------------------------------------
1 | (function(){
2 | var a;
3 | document.getElementById('button').onclick=function(){
4 | a= document.getElementById('inp').value;
5 | document.getElementById('result').innerHTML=a;
6 | }
7 |
8 | })();
--------------------------------------------------------------------------------
/lecture-8-b/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | true
59 |
60 | true
61 | true
62 |
63 |
64 | true
65 | DEFINITION_ORDER
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 | 1532581319983
133 |
134 |
135 | 1532581319983
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
--------------------------------------------------------------------------------
/lecture-8-b/lecture-8.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | "use strict" affecting THIS
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/lecture-8-b/lecture-8.js:
--------------------------------------------------------------------------------
1 | (function(){
2 | //ONE
3 | function main(){
4 | "use strict";
5 | function display()
6 | {console.log(this);} //undefined
7 | display();
8 | }
9 | main();
10 | })();
11 | (function(){
12 | //TWO
13 | function main(){
14 | console.log(this); //window
15 | function display()
16 | {"use strict";}
17 | display();
18 | }
19 | main();
20 | })();
21 | (function(){
22 | //THREE
23 | function main(){
24 |
25 | function display()
26 | { "use strict";
27 | console.log(this);} //undefined
28 | display();
29 | console.log(this); //window
30 | }
31 | main();
32 | })();
--------------------------------------------------------------------------------
/lecture-8/.idea/lecture-8.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/lecture-8/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/lecture-8/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lecture-8/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | true
61 |
62 | true
63 | true
64 |
65 |
66 | true
67 | DEFINITION_ORDER
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 | 1532581319983
135 |
136 |
137 | 1532581319983
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
--------------------------------------------------------------------------------
/lecture-8/lecture-8.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | TODO-LIST(without local-storage)
6 |
7 |
8 |
9 |
10 |
11 |
12 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/lecture-8/lecture-8.js:
--------------------------------------------------------------------------------
1 | (function(){
2 |
3 | var list=[];
4 | btn=document.getElementById('btn');
5 | inp=document.getElementById('inp');
6 | res=document.getElementById('res');
7 |
8 | btn.onclick=function(){
9 | list.push(inp.value);
10 | inp.value=null;
11 | res.innerHTML=null;
12 | for(var i=0;i${list[i]}`;
14 | }
15 | btn2.onclick=function(){
16 | res.innerHTML=null;
17 | for(var i=list.length-1;i>=0;i--)
18 | list.pop();
19 | }
20 | })();
--------------------------------------------------------------------------------