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 that converts a base10 number to base16 number. | |
//This is needed to convert an index from a list to the appropriate hex value for unicode values. | |
@function decToHex($dec,$length) | |
$hexVals: "A","B","C","D","E","F" | |
$base: 16 | |
$q: $dec | |
$result: "" | |
@while $q != 0 | |
$mod: $q % $base | |
$q: floor($q / $base) |
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 class="aside"> | |
<li> | |
<span>flags:</span> | |
<div> | |
g<input type="checkbox" name="flags" value="g" /> | |
i<input type="checkbox" name="flags" value="i" /> | |
m<input type="checkbox" name="flags" value="m" /> | |
y<input type="checkbox" name="flags" value="y" id="y" /> | |
</div> | |
</li> |
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 class="aside"> | |
<li> | |
<span>flags:</span> | |
<div> | |
g<input type="checkbox" name="flags" value="g" /> | |
i<input type="checkbox" name="flags" value="i" /> | |
m<input type="checkbox" name="flags" value="m" /> | |
y<input type="checkbox" name="flags" value="y" id="y" /> | |
</div> | |
</li> |
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
let MyObj = { | |
init(){ | |
let myObj = {}; | |
return myObj; | |
} | |
} |
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
let myObj = MyObj.init({option1:"billy"}); | |
//My obj is now an instance. | |
myObj.myFunction(); | |
// Hi there, billy!! | |
let myObj2 = MyObj.init({option1:"jimmy"}); | |
// another instance of MyObj. | |
myObj2.myFunction(); | |
// Hi there, jimmy!! |
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
let MyObj = { | |
init(name){ | |
let myObj = {}; | |
myObj.myFunction = (){ MyObj.myFunction(name)}; | |
return myObj; | |
}, | |
myFunction(name){ | |
console.log(`Hi there, ${name}!!`); |
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
let MyObj = { | |
init(name){ | |
let myObj = {}; | |
myObj.greet = function(){MyObj.greet(name)}; | |
myObj.depart = function(){MyObj.depart(name)}; | |
return myObj; | |
}, | |
greet(name){ | |
console.log(`Hi there, ${name}!!`); | |
}, |
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
.exampleElement { | |
width: grid-column(6,600); | |
margin-left: grid-gutter(2,600); | |
} |
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
$grid__column-width: ( | |
'300': $grid__column-width--300, | |
'400': $grid__column-width--400, | |
'500': $grid__column-width--500, | |
'600': $grid__column-width--600, | |
'700': $grid__column-width--700 | |
); | |
$grid__gutter-width: ( | |
'300': $grid__gutter-width--300, |
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
// column-numbers | |
$grid__column-number--300: 4; | |
$grid__column-number--400: 12; | |
$grid__column-number--500: 12; | |
$grid__column-number--600: 12; | |
$grid__column-number--700: 16; | |
// column-widths | |
$grid__column-width--300: $grid__width--300 / $grid__column-number--300; | |
$grid__column-width--400: $grid__width--400 / $grid__column-number--400; |
OlderNewer