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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#nav-1 .sub-menu .sub-menu:after { | |
content: "" ; | |
display: block; | |
width: 0 ; | |
border: 5px solid transparent ; | |
border-right-color: orange; | |
position: absolute; | |
right : 100%; | |
top: 14px; | |
} |
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
<body id="{$runtime.controller}" class="{$runtime.mode}{if $runtime.controller=='categories'} category{$smarty.request.category_id}{/if}{if $runtime.controller=='pages'} page{$smarty.request.page_id}{/if}"> |
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
<body class=" {if $runtime.controller=='index'}home{else}not-home{/if}"> |
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
/* White Icon */ | |
.nav-1-chosen-select { | |
background-image: url('images/menu-icon-white.png'); | |
background-position: 10px center; | |
background-size: 20px; | |
background-repeat: no-repeat; | |
text-indent: 30px; | |
border-radius: 0; | |
} |
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
/*------------------------------------*\ | |
IMPORTS | |
\*------------------------------------*/ | |
@import (less) "quickgrid.less" ; | |
/*------------------------------------*\ | |
VARS | |
\*------------------------------------*/ |
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
/*------------------------------------*\ | |
#SUBSCRIBE | |
\*------------------------------------*/ | |
.module--subscribe { | |
background: #222223; | |
padding: 15px 0 ; | |
color: #fff; |
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
var numSheep = 4; // number of sheep | |
var monthNumber = 1; // counting month | |
var monthsToPrint = 12; // max length of loop | |
while (monthNumber <= monthsToPrint) { // while months is less than the max length | |
numSheep *=4; // multiply the number by 4 | |
console.log("There will be " + numSheep + " sheep after " + monthNumber + " month(s)!" ) ; // output concat. string | |
monthNumber++ ; // increment the month - will only occur below the maximum amount. | |
} |
OlderNewer