snipt

Ctrl+h for KB shortcuts

HTML

article picker used in NB

<div class="page" style="float:none;"><a style="float:none;" href="index.php?option=com_content&amp;task=element&amp;tmpl=component&amp;object=term_id" title="Select an Article::Click to open a modal window and pick your content item." class="modal hasTip" rel="{handler:'iframe',size:{x:window.getSize().scrollSize.x-80, y: window.getSize().size.y-80}, onShow:$('sbox-window').setStyles({'padding': 0})}">Select an Article</a></div></div>
https://snipt.net/embed/30826a805c0ce33bc828a85735261d1a/
https://snipt.net/raw/30826a805c0ce33bc828a85735261d1a/
30826a805c0ce33bc828a85735261d1a
html
HTML
1
2016-09-27T07:55:17
True
False
False
/api/public/snipt/8879/
article-picker-used-in-nb
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">&quot;page&quot;</span> <span class="na">style=</span><span class="s">&quot;float:none;&quot;</span><span class="nt">&gt;&lt;a</span> <span class="na">style=</span><span class="s">&quot;float:none;&quot;</span> <span class="na">href=</span><span class="s">&quot;index.php?option=com_content&amp;amp;task=element&amp;amp;tmpl=component&amp;amp;object=term_id&quot;</span> <span class="na">title=</span><span class="s">&quot;Select an Article::Click to open a modal window and pick your content item.&quot;</span> <span class="na">class=</span><span class="s">&quot;modal hasTip&quot;</span> <span class="na">rel=</span><span class="s">&quot;{handler:&#39;iframe&#39;,size:{x:window.getSize().scrollSize.x-80, y: window.getSize().size.y-80}, onShow:$(&#39;sbox-window&#39;).setStyles({&#39;padding&#39;: 0})}&quot;</span><span class="nt">&gt;</span>Select an Article<span class="nt">&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</span> </span></pre></div> </td></tr></table>
html, ninjaboard

JavaScript

modal popup autoresize in joomla

{handler:'iframe',size:{x:window.getSize().scrollSize.x-80, y: window.getSize().size.y-80}, onShow:$('sbox-window').setStyles({'padding': 0})}
https://snipt.net/embed/fa112b0a1201a5d20d8df9a4d0e371f1/
https://snipt.net/raw/fa112b0a1201a5d20d8df9a4d0e371f1/
fa112b0a1201a5d20d8df9a4d0e371f1
js
JavaScript
1
2016-09-27T07:43:00
True
False
False
/api/public/snipt/8878/
modal-popup-autoresize-in-joomla
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="p">{</span><span class="nx">handler</span><span class="o">:</span><span class="s1">&#39;iframe&#39;</span><span class="p">,</span><span class="nx">size</span><span class="o">:</span><span class="p">{</span><span class="nx">x</span><span class="o">:</span><span class="nb">window</span><span class="p">.</span><span class="nx">getSize</span><span class="p">().</span><span class="nx">scrollSize</span><span class="p">.</span><span class="nx">x</span><span class="o">-</span><span class="mi">80</span><span class="p">,</span> <span class="nx">y</span><span class="o">:</span> <span class="nb">window</span><span class="p">.</span><span class="nx">getSize</span><span class="p">().</span><span class="nx">size</span><span class="p">.</span><span class="nx">y</span><span class="o">-</span><span class="mi">80</span><span class="p">},</span> <span class="nx">onShow</span><span class="o">:</span><span class="nx">$</span><span class="p">(</span><span class="s1">&#39;sbox-window&#39;</span><span class="p">).</span><span class="nx">setStyles</span><span class="p">({</span><span class="s1">&#39;padding&#39;</span><span class="o">:</span> <span class="mi">0</span><span class="p">})}</span> </span></pre></div> </td></tr></table>
joomla, ninjaboard, tip

JavaScript

JSON formatted parameters

{"latestpost_settings":{"filter":"1","hours":"8,12","days":"1,2,3","weeks":"1","months":"1,6","years":"1"}}
https://snipt.net/embed/e449ca184c2235809bb713871023c703/
https://snipt.net/raw/e449ca184c2235809bb713871023c703/
e449ca184c2235809bb713871023c703
js
JavaScript
1
2016-09-22T11:24:10
True
False
False
/api/public/snipt/8861/
json-formatted-parameters
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="p">{</span><span class="s2">&quot;latestpost_settings&quot;</span><span class="o">:</span><span class="p">{</span><span class="s2">&quot;filter&quot;</span><span class="o">:</span><span class="s2">&quot;1&quot;</span><span class="p">,</span><span class="s2">&quot;hours&quot;</span><span class="o">:</span><span class="s2">&quot;8,12&quot;</span><span class="p">,</span><span class="s2">&quot;days&quot;</span><span class="o">:</span><span class="s2">&quot;1,2,3&quot;</span><span class="p">,</span><span class="s2">&quot;weeks&quot;</span><span class="o">:</span><span class="s2">&quot;1&quot;</span><span class="p">,</span><span class="s2">&quot;months&quot;</span><span class="o">:</span><span class="s2">&quot;1,6&quot;</span><span class="p">,</span><span class="s2">&quot;years&quot;</span><span class="o">:</span><span class="s2">&quot;1&quot;</span><span class="p">}}</span> </span></pre></div> </td></tr></table>
json, ninjaboard, parameters
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.