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
// prettier-ignore | |
const europeanCountries = [ | |
['al', 'Albania'], | |
['ad', 'Andorra'], | |
['at', 'Austria'], | |
['by', 'Belarus'], | |
['be', 'Belgium'], | |
['ba', 'Bosnia and Herzegovina'], | |
['bg', 'Bulgaria'], | |
['hr', 'Croatia'], |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> |
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
Empty File<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> |
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
/** | |
* Fade in/out | |
*/ | |
function fade(type, ms, el) { | |
var isIn = type === "in", | |
opacity = isIn ? 0 : 1, | |
interval = 50, | |
duration = ms, | |
gap = interval / duration; |
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
@mixin icon-halo($radius, $color) { | |
position: relative; | |
border-radius: $radius; | |
transition: all .2s ease-in-out; | |
&::before { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
/*! video */ |
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 CSVToArray(strData, strDelimiter) { | |
// Check to see if the delimiter is defined. If not, | |
// then default to comma. | |
strDelimiter = strDelimiter || ','; | |
// Create a regular expression to parse the CSV values. | |
var objPattern = new RegExp( | |
// Delimiters. | |
'(\\' + | |
strDelimiter + | |
'|\\r?\\n|\\r|^)' + |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
/*! scrolling effects */ | |
.action { |
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
/** | |
* Inline svg | |
*/ | |
const allImg = document.querySelectorAll('img'); | |
for (let i = 0; i < allImg.length; i++) { | |
const imgSrc = allImg[i].getAttribute('src'); | |
if (imgSrc.split('.')[1] === 'svg') { | |
let myRequest = new Request(imgSrc); |
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="loader-wrapper"> | |
<div class="loader dot dot--big"> | |
<div class="dot dot--small"></div> | |
</div> | |
<svg width="0px" height="0px"> | |
<filter id="goo"> | |
<feGaussianBlur in="SourceGraphic" stdDeviation="7" result="blur" /> | |
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7" result="goo" /> | |
<feBlend in="SourceGraphic" in2="goo" /> | |
</filter> |
NewerOlder