Omar Patel
Software developer/instructor
Set up a git repository in your project folder on your local machine and make your first commit. Instructions on how to set up a git repository can be found in the lecture slides for Week 3.
Guidelines:
Install Git on your computer
Initiate a git repository in your project folder
Stage your changes
Git WorkFlow
Notes
Margin
Content
border
padding
Notes
border
padding
p {
padding: 1px;
border: 2px solid black;
margin: 0px 2px;
}Notes
border
padding
p {
padding: 1px;
border: 2px solid black;
margin: 0px 2px;
}https://goo.gl/NPgvtr
border
padding
jQuery is a Javascript library used to make life with JavaScript easier for developers. This works by creating shortcut methods made using JavaScript.
border
padding
jQuery works by being included as a single file either in your directory or stored on a server. Either way, you must link to the file somewhere in your HTML. Once you link to the file, you'll have access to all that jQuery has to offer. Plus, it's free.
http://jquery.com/
Download jQuery
OR
Link to jQuery on a hosted CDN
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>Either way, make sure that the link to the jQuery file exists before the link to your script.js
border
padding
https://goo.gl/NPgvtr
border
padding
<script src="js/jquery.js"></script>
<script>
var something = 43;
</script>$("p").text("Hey, I'm just some text being added");
$("#some_container").text("Adding some text.");
$(".gato").text("meow");padding
$( document ).ready(function() {
});$("div");$(".someElement");$("#someOtherElement");Try implementing what you learned into your project. That is:
border
padding
$("div").addClass("someClass");$("div").removeClass("someClass");$("div").css("color", "purple");$( "div" ).prop( "disabled", true );Try implementing what you learned into your project. That is, In your existing script.js file:
Continue building the HTML and CSS for your project. Have at least 50% of the styling to your web application using CSS.
https://goo.gl/NPgvtr
By Omar Patel