From eaaf2f826c6aa534eb21649f51c23ba9528b6552 Mon Sep 17 00:00:00 2001
From: Adrena Oushana Description
Basic HTML, Basic CSS.
Skills Learned: - Introduction to Javascript, Introduction to jQuery, Basic Interaction, CSS Circles, Buttons + Introduction to Javascript, Introduction to jQuery, Basic Interaction, CSS Circles, Buttons
Submitted By: Coder Team @@ -79,13 +79,13 @@
So now we’re going to go someplace previous projects have not gone before: the JS tab. JS +
So now we’re going to go someplace previous projects have not gone before: the JS tab. JS stands for Javascript. Javascript is a programming language that allows you to control how your application functions. You can use Javascript to respond to mouse clicks, perform calculations, or animate things on the screen.
-Javascript is different from HTML and CSS in a big way. You might have noticed that HTML and CSS show exactly what’s written in between their tags and braces. They’re static, once they’re set a certain way, they stay that way until you go back and change them. Javascript, on the other-hand, can actually think. It can look at the what’s going on in a project, (what the mouse is doing, for example) and make calculations or run logical responses that change what’s written in the HTML and CSS. So with Javascript, you can change what things look like or how the they behave.
+Javascript is different from HTML and CSS in a big way. You might have noticed that HTML and CSS show exactly what’s written in between their tags and braces. They’re static, once they’re set a certain way, they stay that way until you go back and change them. Javascript, on the other-hand, can actually think. It can look at the what’s going on in a project, (what the mouse is doing, for example) and make calculations or run logical responses that change what’s written in the HTML and CSS. So with Javascript, you can change what things look like or how the they behave.
-In more advanced projects, Javascript will actually do complex math and calculations to do things like challenge you to a game, animate shapes and +
In more advanced projects, Javascript will actually do complex math and calculations to do things like challenge you to a game, animate shapes and Javascript is pretty powerful. It’s what we will use to make our simple button change our background-color.
This probably looks kinda weird to you. Its syntax, how it’s written, is different than what we’ve been dealing with so far. So let’s walk through it.
@@ -147,7 +147,7 @@If you read this code out as a sentence it would sound something like this: When the document is ready (fully loaded) then do the actions inside the braces.
-To sum it up, this function waits for the web page to be ready for us to do our work. It’s key to all of our web projects that use Javascript because it’s what establishes that our HTML elements exist on the page, before we start to manipulate them in code. So don’t delete this. We will be writing our code inside of it.
+To sum it up, this function waits for the web page to be ready for us to do our work. It’s key to all of our web projects that use Javascript because it’s what establishes that our HTML elements exist on the page, before we start to manipulate them in code. So don’t delete this. We will be writing our code inside of it.
It looks like this:
Loading this jQuery library gives us easy access to a whole bunch of useful things, such as events, CSS selectors, and animation effects that will make doing cool stuff simpler and much quicker than writing it out in raw javascript.
@@ -182,9 +182,9 @@Our code looks like this: