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
const html = require('bel'); | |
const labelTexts = [ | |
"Fin de la|Pobreza", | |
'Hambre|Cero', | |
'Salud|y Bienestar', | |
'Educatión|de Calidad', | |
'Igualdad|de Género', | |
'Agua Limpia|y Saneamiento', | |
'Energía Asequible|y No Contaminante', |
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 els = document.getElementsByTagName('use'); | |
Array.prototype.forEach.call(els, function(el) { | |
el.setAttribute('xlink:href', el.getAttribute('xlink:href')); | |
}); |
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 logga() { | |
echo '<script>console.log('; | |
foreach (func_get_args() as $index => $arg) { | |
$type = gettype($arg); | |
if ($type === 'boolean') { | |
$arg = $arg ? 'true' : 'false'; | |
} elseif ($type === 'string') { | |
$arg = '"' . $arg . '"'; |
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
/** | |
* Note: `min-height` flex container won't apply to its flex items in IE 10-11 | |
* More info: http://git.io/NbmO | |
* Can be targeted with selector hack: http://git.io/Nbqx | |
*/ | |
.u-flex { | |
display: flex; | |
} |
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
/* Icon */ | |
.icon { | |
display: block; | |
width: 32px; | |
height: 32px; | |
margin: 50px; | |
border-radius: 3px; | |
background: CornflowerBlue; | |
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
a { | |
color: rebeccapurple; | |
text-decoration: none; | |
outline: 0; | |
} | |
a:hover, | |
a:active { | |
color: rebeccapurple; | |
text-decoration: underline; |
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
/* | |
* Expanding border | |
* Inspired by Scorekeeper - youtu.be/sXqXpwyBI1k | |
*/ | |
.btn { | |
position: relative; | |
display: block; | |
width: 100px; | |
height: 100px; |