Skip to content

Instantly share code, notes, and snippets.

@martos28
martos28 / isIE.js
Created September 4, 2020 10:23 — forked from gaborpinterweb/isIE.js
Detect IE with JavaScript #ie #edge #js #javascript
// Forked from https://codepen.io/gapcode/pen/vEJNZN
// Get IE or Edge browser version
var version = detectIE();
if (version === false) {
document.getElementById('result').innerHTML = '<s>IE/Edge</s>';
} else if (version >= 12) {
document.getElementById('result').innerHTML = 'Edge ' + version;
} else {
@martos28
martos28 / pug while img i++
Created December 6, 2018 13:55
pug while img
- var n = 1
while n <= 6
.item
img(src="images/screenshot-" + n++ + ".png")
@martos28
martos28 / vunits.js
Created September 19, 2016 19:28 — forked from LeaVerou/vunits.js
Static polyfill for vw, vh, vm units
/**
* Polyfill for the vw, vh, vm units
* Requires StyleFix from -prefix-free http://leaverou.github.com/prefixfree/
* @author Lea Verou
*/
(function() {
if(!window.StyleFix) {
return;