Note that there are some explanatory texts on larger screens.

plurals
  1. POFinding html of a jquery file
    primarykey
    data
    text
    <p>I have three big problems, for which I have opened two topics already. This is my last issue, which is very easy for people like you, but certainly not easy for people like me (I have no idea of jquery or whatsoever)...</p> <p>So, this is the problem: I have a (working?) script, but I can't use it because I don't have the HTML code of it. Could you please help me out by giving this code? Thanks in advance lads!</p> <p>FYI: this is a downloaded script called "Modalpreview', but it has no HTML file in the downloaded folder. </p> <pre><code> (function($){ var $defaults = { fade: 'fast', allowHtml: false, opacity: '0.7', text: { preview: 'Preview', close: 'Close' } }; var $o = $.extend($defaults, $options); var _o = $(document.createElement('div')).css({ display: 'none', opacity: $o.opacity }).attr('id','overlay'); $('body').append(_o); return this.each(function(){ var _c = $(this); var _f = $(this).parents('form'); var _b = _f.find('input[type=submit]'); var _t = $(document.createElement('div')).addClass('preview_txt'); var _h = $(document.createElement('p')).addClass('preview_header').text($o.text.preview+':'); var _k = $(document.createElement('div')).addClass('preview_inputwrapper'); var _d = $(document.createElement('div')).addClass('preview_div').css({ display:'none' }); var _p = $(document.createElement('input')).attr({ value:$o.text.preview, type: 'button' }).addClass('preview_btn'); /* var _s = _b.clone(true).click(function() { _f.find('*[name=submit]').attr('name','_submit'); _f.submit(); }); */ var _e = $(document.createElement('input')).attr({ value:$o.text.close, type: 'button' }).addClass('edit_btn'); _k.append(_e); _d.append(_h).append(_t).append(_k); _o.after(_d); _p.click(function() { if (_c.val().length &lt; 1) { return; } _o.fadeIn($o.fade); var _i = (!$o.allowHtml) ? $$.removeTags(_c.val()) : _c.val(); _t.html($$.parse(_i)); _e.click(function() { _o.fadeOut($o.fade); _d.fadeOut($o.fade,function() { _t.empty(); }); _c.focus(); }); _d.fadeIn($o.fade); }); _b.before(_p); }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload