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 attempts; | |
function doAjaxRequest() { | |
attempts = 0; | |
doAjaxRequestLoop(); | |
} | |
function doAjaxRequestLoop() { | |
attempts += 1; | |
if (attempts > 10) { | |
alert('too many attempts.'); |
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
$some-variable = 10px | |
body | |
width: "calc(100% - %s)" % $some-variable | |
// To use multiple variables wrap the values into round brackets. | |
$some-variable = 10px | |
$another-variable = 5px |
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
/* | |
The HTML structure should be something like this: | |
<div class="box"> | |
<div class="box__content"> | |
// Images or whatever inside | |
</div> | |
</div> |
NewerOlder