This file contains 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
<div class="media comment"> | |
<div class="img"></div> | |
<div class="content "></div> | |
</div> | |
<div class="media product featured"> | |
<div class="img"></div> | |
<div class="content"></div> | |
</div> |
This file contains 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
<div class="comment"> | |
<div class="comment__img"></div> | |
<div class="comment__content "></div> | |
</div> | |
<div class="product product--featured"> | |
<div class="product__img"></div> | |
<div class="product__content"></div> | |
</div> |
This file contains 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
sass examples: | |
http://sassmeister.com/gist/0694893ba091121cb482 | |
http://sassmeister.com/gist/f58be57b5f23fab6a1f6 | |
http://sass-lang.com/documentation/Sass/Script/Functions.html | |
specificity wars: | |
https://stuffandnonsense.co.uk/archives/images/specificitywars-05v2.jpg | |
http://i.imgur.com/D2RzCKa.jpg | |
fun links: |
This file contains 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
;(function(){ | |
window.myObject = { | |
sayHello: function () { | |
console.log('Hello world'); | |
} | |
} | |
myObject.sayHello(); | |
}()); |
This file contains 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
<ul> | |
<li>Item 1</li> | |
<li>Item 2</li> | |
. | |
. | |
. | |
<li>Item 10,000</li> | |
</ul> | |
Given the above, write some code that would console.log the list item's innerHTML when any of the list items are clicked. |
This file contains 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
<ul id="foo"> | |
<li>Item 1</li> | |
<li>Item 2</li> | |
. | |
. | |
. | |
<li>Item 10,000</li> | |
</ul> | |
Given the above, write some code that would console.log a list item's contents when any of them are clicked. |
This file contains 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
;(function(){ | |
window.myObject.prototype = { | |
sayHello: function () { | |
console.log('Hello world'); | |
} | |
} | |
myObject.sayHello(); | |
}()); |
This file contains 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
<ul> | |
<li>Item 1</li> | |
<li>Item 2</li> | |
. | |
. | |
. | |
<li>Item 10,000</li> | |
</ul> | |
Given the above, write some code that would console.log the list item's innerHTML when any of the list items is clicked. |
This file contains 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
Javascript - reference https://developer.mozilla.org/en/JavaScript/Reference | |
Comments | |
Variables | |
- can store any value | |
Types | |
Number | |
String | |
Boolean | |
Object | |
Null |
This file contains 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
CSS | |
Css is for presentation | |
External vs Internal vs Inline | |
Selectors (css2) - http://www.w3.org/TR/CSS2/selector.html | |
Universal: * | |
Type: body | |
Descendant: body div | |
Child: body > div | |
Class: .myclass | |
ID: #myId |
OlderNewer