Skip to content

Instantly share code, notes, and snippets.

(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();