Skip to content

Commit 6ec5c74

Browse files
committed
fixing the typos
1 parent 3ffbb1d commit 6ec5c74

File tree

27 files changed

+57
-57
lines changed

27 files changed

+57
-57
lines changed

04 - Digital Clock/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const minute = document.getElementById("minute");
33
const seconds = document.getElementById("seconds");
44
const ampm = document.getElementById("ampm");
55

6-
// Add 0 to the begining of number if less than 10
6+
// Add 0 to the beginning of number if less than 10
77
function formatTime(time) {
88
return time.toString().padStart(2, "0");
99
}

06 - Calendar/dycalendar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
tr.appendChild(td);
8080
}
8181

82-
//remaing td of dates for the 2nd row
82+
//remaining td of dates for the 2nd row
8383
count = 1;
8484
while (c <= 6) {
8585
td = document.createElement("td");

07 - Dynamic Form Field/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ add_more_fields.onclick = function(){
88
newField.setAttribute('type', 'text');
99
newField.setAttribute('name', 'survey_options[]');
1010
newField.setAttribute('class', 'survey_options');
11-
newField.setAttribute('siz', 50);
11+
newField.setAttribute('size', 50);
1212
newField.setAttribute('placeholder', 'Another Field');
1313
survey_options.appendChild(newField);
1414
if(input_tags.length >= 2){

101 - Bomb Throw Game/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ setInterval( ()=> {
5656
fireAudio.play(); // sound effect for fire
5757
allPipe.addClass('fire'); // Cannon pipe Animation
5858

59-
// Check User Cannon and Computer cannon are same postion and angle
59+
// Check User Cannon and Computer cannon are same position and angle
6060
if( validAngle && validX ){
6161
$('.game-container').addClass('defended');
6262
canBall.animate({

24 - Word Counter/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ input.addEventListener('keyup', function() {
2626
wordCount.innerHTML = 0;
2727
}
2828

29-
// sentence count using ./!/? as sentense separators
29+
// sentence count using ./!/? as sentence separators
3030
if (words) {
3131
var sentences = input.value.split(/[.|!|?]+/g);
3232
console.log(sentences);

29 - To Do List/script.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ li.appendChild(dateElement);
8585
}
8686

8787
//Edit the list whenever the pencil icon is clicked
88-
function editList (divison) {
88+
function editList (division) {
8989
var editButtons = document.getElementsByClassName('editBtn');
9090
for (let i = 0; i < editButtons.length; i++) {
9191
editButtons[i].style.display = 'none';
9292
}
93-
var item = divison.parentElement.parentElement.firstElementChild;
93+
var item = division.parentElement.parentElement.firstElementChild;
9494
console.log(item);
9595
var inputDivision = document.getElementById('myInput');
9696
inputDivision.value = item.innerHTML;

29 - To Do List/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ footer a:visited {
156156
}
157157
}
158158
#myUL {
159-
/* increases these chnages in it.. */
159+
/* increases these changes in it.. */
160160
max-height: 300px;
161161
overflow-y: auto;
162162
}

36 - Lorem Ipsum Generator/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function loremIpsum(size) {
1515
const lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vehicula odio non risus finibus feugiat.
1616
Donec bibendum, sapien eget volutpat dapibus, urna velit malesuada tortor, et fermentum arcu velit non dui.
1717
Vestibulum condimentum, justo sed rhoncus laoreet, nunc tellus viverra nulla, nec eleifend purus velit non justo.
18-
Proin sit amet venenatis velit, eu varius nunc. Integer eget ligula eu metus elementum sodales.
18+
Proin sit amet venenatis velit, eu various nunc. Integer eget ligula eu metus elementum sodales.
1919
Sed efficitur, mi a rhoncus vehicula, odio orci malesuada elit, at fermentum justo nulla et urna.
2020
Cras auctor, elit at lacinia eleifend, metus ex condimentum purus, ut lacinia tortor lectus id ipsum.
2121
Nunc viverra sit amet justo in lacinia. Vestibulum scelerisque, orci id cursus placerat, purus purus bibendum urna, at scelerisque quam libero sed arcu.

44 - Block Runner/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
</div>
1717

18-
<div class="controlls">
18+
<div class="controls">
1919
<p>Jump: <b>CLICK</b> or <b>SPACE</b> or <b>UP</b> or <b>W</b> (Hold to jump higher)</p>
2020
<p></p>
2121
</div>

49 - Image Utility/assets/bootstrap/js/bootstrap.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

53 - Notes Taking App/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<body>
1414
<h1>Notes Taking App</h1>
1515
<div id="app">
16-
<!-- Added a delete button. It will work when we click it, a delete icon wil appear and existing notes can be deleted by clicking them.
17-
When we are done with deleting we will click it again and the icon will disapper
16+
<!-- Added a delete button. It will work when we click it, a delete icon will appear and existing notes can be deleted by clicking them.
17+
When we are done with deleting we will click it again and the icon will disappear
1818
The deleting will be stopped also if we start adding new notes.-->
1919

2020
<button class="add-note" type="button">+</button>

60 - Reaction Time/script.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ function randcolor(){
1111
function figure(marg){
1212
document.getElementById("fig").style.margin = ""+marg+"px";
1313
}
14-
function shape(siz){
14+
function shape(size){
1515
start = new Date().getTime();
1616

1717
var choice = Math.floor((Math.random()*2)+1);
1818
if(choice==1){
19-
document.getElementById("fig").style.width = ""+siz+"px";
20-
document.getElementById("fig").style.height = ""+siz+"px";
19+
document.getElementById("fig").style.width = ""+size+"px";
20+
document.getElementById("fig").style.height = ""+size+"px";
2121
document.getElementById("fig").style.borderRadius = "50%";
2222

2323
}
2424
if(choice==2){
25-
document.getElementById("fig").style.width = ""+siz+"px";
26-
document.getElementById("fig").style.height = ""+siz+"px";
25+
document.getElementById("fig").style.width = ""+size+"px";
26+
document.getElementById("fig").style.height = ""+size+"px";
2727
document.getElementById("fig").style.borderRadius = "0";
2828
}
2929
}
@@ -34,8 +34,8 @@ function shape(siz){
3434
var timeTaken = (end-start)/1000;
3535
document.getElementById("tTaken").innerHTML = timeTaken;
3636
var marg = Math.floor((Math.random()*600)+50);
37-
var siz = Math.floor((Math.random()*100)+50);
38-
figure(marg,siz);
39-
shape(siz);
37+
var size = Math.floor((Math.random()*100)+50);
38+
figure(marg,size);
39+
shape(size);
4040
randcolor();
4141
}

64 - Particle Effect Animation/script.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ canvas.height = window.innerHeight;
55

66
//particle array to store randomised particle
77
let particleArray;
8-
//get mouse cursor postion
8+
//get mouse cursor position
99
let mouse = {
1010
x: null,
1111
y: null,
@@ -37,7 +37,7 @@ class Particle {
3737
ctx.fillStyle = '#F64C72';
3838
ctx.fill();
3939
}
40-
//check particle position, check mouse positon, move the particle, draw the particle
40+
//check particle position, check mouse position, move the particle, draw the particle
4141
update() {
4242
//if particle position is beyond the screen edge, reverse it
4343
if(this.x > canvas.width || this.x < 0) {
@@ -48,7 +48,7 @@ class Particle {
4848
this.directionY = -this.directionY;
4949
}
5050

51-
// check if currect mouse position overlaps with current mouse position, i.e, collision detection
51+
// check if correct mouse position overlaps with current mouse position, i.e, collision detection
5252
let opacityvalue = 1;
5353
let dx = mouse.x - this.x;
5454
let dy = mouse.y - this.y;

65 - Postmaster Clone/Postman clone.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const customJson = document.getElementById("jsonRadio"); //radio button of json
77
const customParams = document.getElementById("customRadio"); //radio button of custom parameters
88
const finalResponse = document.getElementById("response-box");
99
const JsonBox = document.getElementById("json-box");
10-
//when the user clicks on custom paramters then hide the json request box
10+
//when the user clicks on custom parameters then hide the json request box
1111
const requestJsonBox = document.getElementById("requestJsonBox");
1212
const responseJsonBox = document.getElementById("responseJsonBox");
1313
const parametersBox = document.getElementById("parameter-box");

65 - Postmaster Clone/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h2 class="my-3" id="heading">Get/Post Your Request </h2>
4949
<input type="text" class="form-control" id="url" placeholder="Type or Paste The URL" />
5050
</div>
5151
</div>
52-
<!-- radio button for selction of getting or posting requestType -->
52+
<!-- radio button for selection of getting or posting requestType -->
5353
<fieldset class="form-group my-4">
5454
<div class="row">
5555
<legend class="col-form-label col-sm-2 pt-0">Request Type</legend>

0 commit comments

Comments
 (0)