Skip to content

Instantly share code, notes, and snippets.

View FrancescoQ's full-sized avatar

Francesco Quagliati FrancescoQ

View GitHub Profile
(function ($) {
$(window).load(function(){
$().hatchShow();
});
jQuery.fn.hatchShow = function(){
$this = $(this);
$this.css('display','inner-block').css('white-space','pre').each(function(){
var t = $(this);
t.wrap("<span class='hatchshow_temp' style='display:block'>");
var pw = t.parent().width();