text
stringlengths
1
81
start
float64
0
10.1k
duration
float64
0
24.9
the event
3,900.86
2.85
so what received the event it was the
3,901.73
3.72
select drop-down that is what received
3,903.71
4.29
the event is being changed and so this
3,905.45
4.8
is going to be a special keyword that
3,908
4.17
always refers to that that always refers
3,910.25
4.05
to the drop-down menu where I made a
3,912.17
3.93
different selection so if I want to get
3,914.3
3.54
the value of that drop-down menu what it
3,916.1
4.14
is the user actually selected I can just
3,917.84
5.04
say this dot value to mean get that
3,920.24
4.74
drop-down menu and get at the value the
3,922.88
3.81
thing that the user is selected in that
3,924.98
4.08
idea and now much more succinctly than
3,926.69
4.92
before I've been able to implement the
3,929.06
4.56
same kind of idea says hello right now
3,931.61
3.66
in black but if I choose from the
3,933.62
3.48
drop-down menu to change its color to
3,935.27
3.72
something like red for example color
3,937.1
4.23
changes to red if I instead choose blue
3,938.99
4.59
it changes to blue green changes to
3,941.33
4.98
green I choose black it changes back to
3,943.58
5.04
black so now I have this ability to
3,946.31
4.11
detect these other types of events and
3,948.62
4.05
respond to them as well and there are
3,950.42
4.65
many many different events that exist in
3,952.67
4.2
JavaScript there's on-click which we've
3,955.07
4.2
seen already on mouse-over can detect
3,956.87
3.84
like when you mouse over something when
3,959.27
2.64
you're hovering over a particular
3,960.71
2.97
element if you've ever seen web sites
3,961.91
3.54
that somehow respond when your mouse
3,963.68
3.57
moves over something that can be how
3,965.45
4.29
it's implemented on key down and onkeyup
3,967.25
4.23
can respond to keyboard event something
3,969.74
4.32
like when you press a key on the
3,971.48
4.14
keyboard when you press down on the key
3,974.06
3.69
that's on key down and when you lift
3,975.62
3.9
your finger off the key that's on key up
3,977.75
4.14
and there are other events as well many
3,979.52
3.78
more events that are just listed here
3,981.89
3.93
that you can listen for and respond to
3,983.3
4.38
so that you can really interact with the
3,985.82
3.99
user based on what it is that they're
3,987.68
4.23
doing so now let's take a look at an
3,989.81
3.99
example of how we can use some of these
3,991.91
3.96
events to now begin to create a little
3,993.8
4.05
bit of a more interesting application
3,995.87
4.23
we'll go ahead and build a to-do list
3,997.85
4.1
application this time using exclusively
4,000.1
3.78
JavaScript we've seen to-do lists before
4,001.95
3.91
that involve communicating with a server
4,003.88
3.99
making requests and responses will now
4,005.86
4.08
build it to-do list that only uses
4,007.87
4.53
JavaScript to do so so I'll create a new
4,009.94
7.65
file called tasks HTML and we'll use a
4,012.4
7.5
we'll create a head section whose title
4,017.59
5.67
is tasks and a body section and inside
4,019.9
5.1
the body of the page I'll go ahead and
4,023.26
2.79
have a heading that says
4,025
4.08
tasks and underneath that I want an
4,026.05
5.46
unordered list of all of my tasks so
4,029.08
4.05
I'll have an unordered list I'll give it
4,031.51
3.9
an ID of tasks just for good measure so
4,033.13
4.05
I can reference it later but initially
4,035.41
4.32
nothing's going to be in here but what
4,037.18
4.08
I'll have underneath the unordered list
4,039.73
4.92
is a form a form where I can submit a
4,041.26
5.52
new task for example so I'll give myself
4,044.65
4.74
an input field also given an ID the ID
4,046.78
4.83
will be tasks singular for the new task
4,049.39
5.43
that I am typing in the placeholder will
4,051.61
5.1
be new tasks just so the user knows what
4,054.82
3.78
to type in and the type of the input
4,056.71
3.78
field will be text so I have an input
4,058.6
3.54
field where the user can type in some
4,060.49
3.84
new tasks and I'll also add an input
4,062.14
3.93
field for good measure whose type is
4,064.33
3.93
submit that allows the user to submit a
4,066.07
4.83
new task once they've created it so if I
4,068.26
6.09
open up tasks dot HTML here's then what
4,070.9
5.67
I see big heading there is technically
4,074.35
4.23
an unordered list underneath it here but
4,076.57
3.69
there's nothing in that unordered list
4,078.58
3.72
yet so it just shows up as empty then a
4,080.26
3.39
text field where I can type in a task
4,082.3
3.54
and then a submit button where I can
4,083.65
5.85
submit my new task so now I'd like some
4,085.84
5.25
JavaScript such that when I submit this
4,089.5
4.53
form we actually do something so add a
4,091.09
3.69
script tag
4,094.03
5.37
I want this JavaScript to run after the
4,094.78
8.94
Dom content is loaded so we'll go ahead
4,099.4
5.85
and add the usual Dom content loaded
4,103.72
4.65
event listener and now I want to run
4,105.25
5.91
code when the form is submitted so I can
4,108.37
7.949
say document query selector form dot on
4,111.16
7.77
submit equals and then I want to run a
4,116.319
4.29
function and I could use the keyword
4,118.93
2.88
function again but I can just use an
4,120.609
2.371