Skip to content

Instantly share code, notes, and snippets.

View juannorris's full-sized avatar

Juan Norris juannorris

  • Cordoba, Argentina
View GitHub Profile
@juannorris
juannorris / gantt.css
Created November 3, 2016 14:35
Override Gantt functionality to update visible headers, columns and tasks on horizontal scroll.
/*
Workaround for gantt tooltips not showing when gantt-scrollable has horizontal scroll and its parent has an animation.
*/
.gantt-task-info {
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-duration: 0s;
animation-duration: 0s;
-webkit-animation-name: fadeIn;
animation-name: fadeIn;
@juannorris
juannorris / customHighlight.js
Last active November 17, 2016 15:39
Highlight filter with accent support (ui-select).
/**
* Highlights text that matches given query for ui-select directive.
*
* It matches accents and uppercase/lowercase (with support from `normalize` function).
*/
function customHighlight() {
function escapeRegexp(queryToEscape) {
return ('' + queryToEscape).replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
}
alert("hi");