Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
// TyneMCE options : | |
// - editor style | |
function add_editor_styles() { | |
add_editor_style( 'css/editor-style.css' ); | |
} | |
add_action( 'init', 'add_editor_styles' ); | |
// - add custom style | |
add_filter( 'mce_buttons_2', 'mce_editor_buttons' ); | |
function mce_editor_buttons( $buttons ) { |
.no-select-text { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} |
/** | |
* Template.JS v 0.1 | |
* @author Andreev Sergey | |
* @corp USERSTORY | |
*/ | |
(function($) { | |
/** | |
* Template engine class | |
* @param {string} tpl template name | |
* @param {array} o @optional options array |
<meta name="format-detection" content="telephone=no"> |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": true, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": true, | |
"quotes": "single", |
.list-cd {margin-right: 0,5em;} | |
.list-cd::after {content: ', '; position: absolute;} | |
.list-cd:after {content: '.';} |
.no-event { | |
pointer-events: none; // IE9, IE10, webkit, fireFox | |
} |
$('.elm').click(function(e) { | |
e.preventDefault(); | |
e.stopPropagation(); // stop other event for this elm | |
}); |
(function($){ | |
var hasTouch = /android|iphone|ipad/i.test(navigator.userAgent.toLowerCase()), | |
eventName = hasTouch ? 'touchend' : 'click'; | |
/** | |
* Bind an event handler to the "double tap" JavaScript event. | |
* @param {function} doubleTapHandler | |
* @param {number} [delay=300] | |
*/ |