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
FOR /R %d IN (.svn) DO rmdir /s /q “%d” |
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> | |
<!-- Helpful things to keep in your <head/> | |
// Brian Blakely, 360i | |
// http://twitter.com/brianblakely/ | |
--> | |
<head> | |
<!-- According to Heather Champ, former community manager at flickr, | |
you should not allow search engines to index your "Contact Us" |
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="container"> | |
<div class="sidebar"> | |
test | |
</div> | |
<div class="content"> | |
test<br /> | |
test | |
test | |
test | |
test |
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 Intent() { | |
const self = this; | |
let timer; | |
this.exec = function (callback, duration, ...args) { | |
self.clear(); | |
timer = setTimeout(callback.bind(this, args), duration || 500); | |
}; | |
this.clear = function() { |
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 regex = /(auto|scroll)/; | |
const parents = function (node, ps) { | |
if (node.parentNode === null) { return ps; } | |
return parents(node.parentNode, ps.concat([node])); | |
}; | |
const style = function (node, prop) { | |
return getComputedStyle(node, null).getPropertyValue(prop); |
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 scrollParent from './scrolll-parent.js'; | |
if (/Android [4-6]/.test(navigator.appVersion)) { | |
window.addEventListener('resize', () => { | |
if (document.activeElement.tagName === 'INPUT') { | |
window.setTimeout(() => { | |
const el = document.activeElement; | |
const rect = el.getBoundingClientRect(); | |
const container = scrollParent(el); |
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 href="http://stackoverflow.com/questions/9804280/how-to-prevent-focus-event-in-ie-when-mousedown-happens/17525223#17525223">http://stackoverflow.com/questions/9804280/how-to-prevent-focus-event-in-ie-when-mousedown-happens/17525223#17525223</a> | |
<br /> | |
<input type="text" id="name"> | |
<div onmousedown="return false" unselectable="on" id="suggest"> | |
<div unselectable="on">mark</div> | |
<div unselectable="on">sam</div> | |
<div unselectable="on">john</div> | |
</div> |
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
let tabbables; | |
function setTabbable(e) { | |
if (e.keyCode === 9) { | |
e.preventDefault(); | |
// the tabbable elements can be changed. | |
tabbables = Array.prototype.slice.call(tabbable(this.currentStepView)); | |
const isFocused = tabbables.some((item, i) => { |
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 scrollHeight() { | |
const body = document.body; | |
const html = document.documentElement; | |
return Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight); | |
} |
OlderNewer