This file contains hidden or 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
// Ticker Plugin | |
$.fn.fTicker = function (options) { | |
var $ticker = $(this); | |
var settings = $.extend({ | |
// defaults. | |
timeout: 5000 | |
}, options); | |
$.each($ticker, function () { | |
var $el = $(this).find("ul:first"); | |
if ($el.find("li").length < 2) |
This file contains hidden or 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 takeOverConsole() { | |
var console = window.console; | |
function intercept(method) { | |
var original = console[method]; | |
console[method] = function () { | |
var message = Array.prototype.slice.apply(arguments).join(' '); | |
original.call(console, arguments); | |
var xhr = new XMLHttpRequest(); | |
// xhr.open('get', '/log.php?error=' + message); |
This file contains hidden or 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
// https://stackoverflow.com/a/4020842/893111 | |
Math.max.apply(Math, array.map(o => o.y)) |
OlderNewer