//quick view source in new window links $.fn.addSourceLink = function(style){ return $(this).each(function(){ var link = $('View Source'), src = src = $('
').append( $(this).clone() ).html(), page = $( "
" + "
" + "Close"+ "
jQuery Mobile Source Excerpt
"+ "
"+ "
"+ "
" ) .appendTo( "body" ) .page(); $('View Source') .buttonMarkup({ icon: 'arrow-u', iconpos: 'notext' }) .click(function(){ var codeblock = $('
'); src = src.replace(/&/gmi, '&').replace(/"/gmi, '"').replace(/>/gmi, '>').replace(/