This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| $('#new-to-do-item').keyup(function(e) { | |
| if (e.which === 13) { | |
| var text = $(this).val(); | |
| var listItem = "<li><input type='checkbox'>" + text + "</li>" | |
| $('ul').append(listItem); | |
| } | |
| }); | |
| $('input[type="checkbox"]').click(function() { | |
| console.log(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Hello!</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
| <script src="./my_stuff.js"></script> | |
| </head> | |
| <body> | |
| <h1>Hello World!</h1> | |
| <div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| listenForChecks(); | |
| // Event Listeners | |
| $('#new-to-do-item').keyup(function(e) { | |
| if (e.which === 13) { | |
| var text = $(this).val(); | |
| var listItem = "<li><input type='checkbox'>" + text + "</li>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Dog | |
| def bark | |
| "Ruff" | |
| end | |
| def walk | |
| "walking..." | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Dog | |
| def initialize(name, size) | |
| @name = name | |
| @size = size | |
| end | |
| def bark | |
| "Ruff" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Dog | |
| def initialize(name, size) | |
| @name = name | |
| @size = size | |
| end | |
| def bark | |
| "Ruff" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>Learning CSS</title> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| </head> | |
| <body> | |
| <div id="first" class="content"> | |
| <h1>Hello everyone</h1> | |
| <h3>Here is some less important text.</h3> | |
| <p>Here is some text about nothing really.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| background-color: green; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| h1, h3, p { | |
| font-family: Arial, sans-serif; | |
| color: #3a3a3a; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #first h1 { | |
| color: #60F3FF; | |
| font-style: italic; | |
| } |