-
Notifications
You must be signed in to change notification settings - Fork 0
/
report.html
735 lines (510 loc) · 17 KB
/
report.html
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
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
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
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="static/style.css">
<style>
body {background-color: lightblue;}
/* above 460px the screen background-color is a blue white gradient: */
@media only screen and (min-width: 460px) {
body {
background-color: lightblue;
}
}
/* up to 460px the screen background-color is white: */
@media only screen and (max-width: 460px) {
body {
background-color: white;
}
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="module1.html">Module1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="module2.html">Module2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="module3.html">Module3</a>
</li>
<li class="nav-item">
<a class="nav-link" href="module4.html">Module4</a>
</li>
<li class="nav-item">
<a class="nav-link" href="module5.html">Module5</a>
</li>
<li class="nav-item">
<a class="nav-link" href="features.html">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="report.html">Report</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
<div id="row2">
<div id="paddingRow1" style="padding-top:5vh;"></div>
<h1> WebAssignment1v3 </h1>
<h2> Description<h2>
WebAssignment1v3
<h2> Content with references</h2>
<h3> commands</h3>
<p>
```bash
$ git rm index.html --cached
```
</p>
<p>
filename can then be added to the .gitignore file
<br>
Google Search: [stop tracking a file in git that was previously tracked](https://www.google.com/search?q=stop+tracking+a+file+in+git+that+was+previously+tracked&oq=stop+tracking+a+file+in+git+that+was+previously+tracked&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRigAdIBCDk1NjZqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8)
<br>
[To stop tracking a file that is currently tracked | git-scm.com](https://git-scm.com/docs/gitignore#:~:text=To%20stop%20tracking%20a%20file,being%20reintroduced%20in%20later%20commits.)
<br>
____
<hr>
</p>
<p>
```bash
git update-index --skip-worktree <file>
```
</p>
<p>
To cancel
</p>
<p>
```bash
git update-index --no-skip-worktree <file>
```
</p>
<p>
Update, a better option [How do I make Git forget about a file that was tracked, but is now in .gitignore? | StackOverflow](https://stackoverflow.com/questions/1274057/how-do-i-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore)
</p>
<hr>
____
<p>
code quote:
</p>
<p>
<markdown>
```json
"workbench.colorCustomizations": {
"editorGutter.addedBackground": "#333",
"editorGutter.deletedBackground": "#333",
"editorGutter.modifiedBackground": "#333",
"editor.background": "#333",
}
```
</markdown>
</p>
<p>
modified color to match current vscode settings:
</p>
<p>
```json
"workbench.colorCustomizations": {
"editorGutter.addedBackground": "#202020",
"editorGutter.deletedBackground": "#202020",
"editorGutter.modifiedBackground": "#202020",
"editor.background": "#202020",
}
```
</p>
<p>
Summary:
change background color from:
#333 (light grey / black)
to
#202020 (darker black)
<p>
<p>
Procedure:
Settings > Search: workbench.colorCustomizations > click: edit in settings.json > paste code quote > edit colors to #202020
[VSCode setting to disable git status colors in editor gutter [duplicate] | StackOVerflow](https://stackoverflow.com/questions/45880172/vscode-setting-to-disable-git-status-colors-in-editor-gutter)
</p>
<hr>
____
<p>
```css
.card {
margin: 0 auto; /* Added */
float: none; /* Added */
margin-bottom: 10px; /* Added */
}
```
</p>
<p>
[How to center cards in bootstrap 4? | StackOverflow](https://stackoverflow.com/questions/39031224/how-to-center-cards-in-bootstrap-4)
</p>
<hr>
____
<p>
Select all child elements.
</p>
<p>
```css
parentSelector > * {
// CSS Styles
}
```
</p>
<p>
[How to select all child elements recursively using CSS? | geeks4geeks.org](https://www.geeksforgeeks.org/how-to-select-all-child-elements-recursively-using-css/)
</p>
<hr>
____
<p>
```css
@media only screen and (max-width: 460px) {
body {
background-color: white;
}
}
```
</p>
<p>
[What is a Media Query? | W3Schools.com](https://www.w3schools.com/css/css_rwd_mediaqueries.asp)
</p>
<hr>
____
<p>
On Windows OS, the forward-slash (/) wasn't working, so I switched to back-slash (\) and that fixed it. For example, try using the following:
</p>
<p>
```html
"..\..\index.html"
```
</p>
<p>
[How do I put a hyperlink to "two levels above in the directory tree"? | StackOverflow](https://stackoverflow.com/questions/7051735/how-do-i-put-a-hyperlink-to-two-levels-above-in-the-directory-tree#:~:text=to%20go%20two%20level%20up,to%20go%20more%20levels%20up.&text=You%20can%20use%20..%2Findex.)
</p>
<hr>
____
<h3> Images</h3>
<p>
[HTML Images | W3Schools](https://www.w3schools.com/html/html_images.asp)
</p>
<hr>
____
<h3> Center Oversized Image in div</h3>
<h4> Failed Attempt</h4>
<p>
[How to avoid overflow of a bootstrap card image in card-body?](https://stackoverflow.com/questions/72150450/how-to-avoid-overflow-of-a-bootstrap-card-image-in-card-body)
</p>
<hr>
____
<h4> Successful Attempt</h4>
<p>
```css
.parent {
position: relative;
overflow: hidden;
//optionally set height and width, it will depend on the rest of the styling used
}
.child {
position: absolute;
top: -9999px;
bottom: -9999px;
left: -9999px;
right: -9999px;
margin: auto;
}
```
</p>
<p>
[Center Oversized Image in Div | StackOverflow](https://stackoverflow.com/questions/14562457/center-oversized-image-in-div)
</p>
<hr>
____
<h3> Scale Image Responsively</h3>
<p>
An image can be made responsive by using CSS and setting the width of the image to be a percentage of its parent container, rather than a fixed pixel value. This way, when the size of the parent container changes (e.g. due to different screen sizes), the size of the image will also change proportionally.
</p>
<p>
```css
img {
max-width: 100%;
height: auto;
}
```
</p>
<p>
[How to make images responsive | Browser Stack](https://www.browserstack.com/guide/how-to-make-images-responsive#:~:text=An%20image%20can%20be%20made,image%20will%20also%20change%20proportionally.)
</p>
<hr>
____
<p>
```html
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<!-- Container wrapper -->
<div class="container-fluid">
<!-- Toggle button -->
<button
class="navbar-toggler"
type="button"
data-mdb-toggle="collapse"
data-mdb-target="#navbarCenteredExample"
aria-controls="navbarCenteredExample"
aria-expanded="false"
aria-label="Toggle navigation"
>
<i class="fas fa-bars"></i>
</button>
<!-- Collapsible wrapper -->
<div
class="collapse navbar-collapse justify-content-center"
id="navbarCenteredExample"
>
<!-- Left links -->
<ul class="navbar-nav mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<!-- Navbar dropdown -->
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-mdb-toggle="dropdown"
aria-expanded="false"
>
Dropdown
</a>
<!-- Dropdown menu -->
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><hr class="dropdown-divider" /></li>
<li>
<a class="dropdown-item" href="#">Something else here</a>
</li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true"
>Disabled</a
>
</li>
</ul>
<!-- Left links -->
</div>
<!-- Collapsible wrapper -->
</div>
<!-- Container wrapper -->
</nav>
```
</p>
<p>
[How to center Bootstrap Navbar](https://mdbootstrap.com/how-to/bootstrap/navbar-center/)
</p>
<hr>
____
<p>
```html
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
<form class="d-flex">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
</nav>
```
</p>
<p>
[Bootstrap Documentation > Navbar > Supported content](https://getbootstrap.com/docs/5.0/components/navbar/#supported-content)
</p>
<hr>
____
<h3> Attempt to make Bootstrap Navbar Responsive</h3>
<hr>
____
<a href="https://forum.freecodecamp.org/t/bootstrap-navbar-active-disabled/33111/2">Bootstrap Navbar Active Disabled | freecodecamp.org</a>
<hr>
____
<p>
```html
<div id="topheader">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Brand</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#home">home<span class="sr-only">(current)</span></a></li>
<li><a href="#page1">page 1</a></li>
<li><a href="#page2">page 2</a></li>
<li><a href="#page3">page 3</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Link</a></li>
</ul>
</div>
</div>
</nav>
</div>
```
</p>
<p>
```css
#topheader .navbar-nav li > a {
text-transform: capitalize;
color: #333;
transition: background-color .2s, color .2s;
&:hover,
&:focus {
background-color: #333;
color: #fff;
}
}
#topheader .navbar-nav li.active > a {
background-color: #333;
color: #fff;
}
```
</p>
<p>
```javascript
$( '#topheader .navbar-nav a' ).on( 'click', function () {
$( '#topheader .navbar-nav' ).find( 'li.active' ).removeClass( 'active' );
$( this ).parent( 'li' ).addClass( 'active' );
});
```
</p>
<p>
[Bootstrap Navbar Change Active Class Link [codepen.io]](https://codepen.io/gearmobile/pen/bByZdG)
</p>
<hr>
____
<p>
[How to make a .nav-link inactive?](https://stackoverflow.com/questions/15648329/how-to-make-a-nav-link-inactive)
</p>
<hr>
____
<h3> Fix Bootstrap navbar</h3>
<h4> Summary</h4>
<p>
Add JS CDN link
</p>
<p>
[navbar Bootstrap](https://getbootstrap.com/docs/5.1/components/navbar/)
</p>
<p>
Add JavaScript CDN
</p>
<p>
```javascript
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
```
</p>
<p>
[Bootstrap Documentation](https://getbootstrap.com/)
</p>
<h4> Add reference to Bootstrap</h4>
<a href="https://getbootstrap.com/docs/5.3/components/navbar/">Bootstrap Documentation</a>
<hr>
___
<h2> References</h2>
<p>
center bootstrap div [mdbootstrap](https://mdbootstrap.com/docs/b4/jquery/utilities/horizontal-align/)
</p>
<p>
stop tracking file [How to stop tracking a file in Git?](https://medium.com/@timmouskhelichvili/how-to-stop-tracking-a-file-in-git-88a75e3f421#:~:text=You%20need%20to%20use%20the,it%20in%20the%20working%20directory.)
</p>
<p>
Quantitative Research Methods - Sweeney, J.
</p>
<p>
Web Development - Ryan, C.
</p>
<p>
Intermediate Programming - Alrimawi, F.
</p>
<p>
Human Computer Interaction - Motti Ader, L.
</p>
<p>
Requirements - Richardson, I.
</p>
<hr>
<a href="https://stackoverflow.com/questions/69140350/how-to-display-html-code-without-rendering-on-page#:~:text=You%20can%20show%20HTML%20tags,you%20want%20to%20be%20visible.">How to Add HTML code unrendered</a>
<p>
You can show HTML tags as plain text in HTML on a website or webpage by replacing < with < or &60; and > with > or &62; on each HTML tag that you want to be visible.
</p>
<p>
<a href="https://en.wikipedia.org/wiki/Internet#/media/File:Internet_map_1024_-_transparent,_inverted.png">
internet.png Reference
</a>
<a href="https://en.wikipedia.org/wiki/Internet">
Internet Reference
</a>
</p>
<a href="https://getbootstrap.com/docs/4.0/content/tables/">
Bootstrap Table
</a>
<hr>
<p>
For GitHub Repository on which this code was developed,
Code development documented on my GitHub:
Code Developed at:
</p>
<a href="https://github.com/CoderSales/WebAssignment1v3">
CoderSales / WebAssignment1v3
</a>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>