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
import React from 'react'; | |
import { SvgNavLeft, SvgNavRight } from './Svg'; | |
const Component = () => ( | |
<React.Fragment> | |
<SvgNavLeft fill="#F0F" /> | |
<SvgNavRight /> | |
</React.Fragment> | |
); |
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 srOnlyString = (string, limit, limiter) => { | |
if (string.length <= limit) { | |
return string; | |
} | |
const styles = { | |
position: 'absolute', | |
width: 1, | |
height: 1, | |
margin: -1, |
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
<picture> | |
<source | |
media="(max-width: 979px)" | |
type="image/jpg" | |
srcset=" | |
illu-telephone-center_mobile.png 1x, | |
[email protected] 2x | |
" | |
> | |
<source |
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
[data-imgloaded] { | |
position: relative; | |
} | |
[data-imgloaded] > img[src^=data] { | |
transform: rotate(0); | |
-webkit-filter: blur(15px); | |
filter: blur(15px); | |
} |
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
// Core variables and mixins | |
@import "/vendor/bower/bootstrap/less/variables.less"; | |
@import "/vendor/bower/bootstrap/less/mixins.less"; | |
// Reset and dependencies | |
@import "/vendor/bower/bootstrap/less/normalize.less"; | |
// @import "/vendor/bower/bootstrap/less/print.less"; | |
// @import "/vendor/bower/bootstrap/less/glyphicons.less"; | |
// Core CSS |
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
jQuery(document).ready(function() { | |
/* | |
Snippet from http://stackoverflow.com/a/5918791 | |
*/ | |
navigator.sayswho = (function(){ | |
var N= navigator.appName, ua= navigator.userAgent, tem; | |
var M= ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); | |
if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1]; |
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(){ | |
function createTransitionObject(transition) { | |
var obj = { | |
"-webkit-transition": transition, | |
"MozTransition": transition, | |
"OTransition": transition, | |
"transition": transition | |
} |
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 getWindowHeight = function() { | |
if (typeof(window.innerWidth) == 'number') { | |
windowHeight = window.innerHeight; | |
} else if (document.documentElement && document.documentElement.clientHeight) { | |
windowHeight = document.documentElement.clientHeight; | |
} | |
return windowHeight; | |
}; |
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> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Truncate code</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<style type="text/css"> | |
* { | |
margin:0;padding:0; | |
} |