Skip to content

Instantly share code, notes, and snippets.

View siggiarni's full-sized avatar

Sigurður Árni Svanbergsson siggiarni

View GitHub Profile
<body ontouchstart="">
...
</body>
<!-- https://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari -->
@siggiarni
siggiarni / notranslate.html
Last active August 29, 2015 14:21
Prevent the Google translate bar from displaying
<!-- http://davidwalsh.name/prevent-chrome-from-translating-page -->
<meta name="google" value="notranslate">

Browsers Checklist

Desktop

Mac

  • Safari
  • Chrome
  • Firefox
  • Opera
Turn off certificate checking
$ npm config set strict-ssl false
Turn it back on
$ npm config set strict-ssl true
<p>
Device width: <span id="device-width"></span>
</p>
<script>
var findDeviceWidth = function() {
var width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
document.getElementById('device-width').innerHTML = width;
};
window.onresize = findDeviceWidth;
#21cfc5
#f9c697
#e31519
background-image: linear-gradient(to left, red 50%, blue 0%);
background-position: bottom;
background-repeat: repeat-x;
background-size: 2px 1px;
::-ms-tooltip {
display: none;
}
/* apply a natural box layout model to all elements, but allowing components to change */
/* http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
html {
box-sizing: border-box;
}
*,
*:before,
*:after
{
box-sizing: inherit;