snipt

Ctrl+h for KB shortcuts

Text only

Lien pour imprimer la page

<a href="javascript:window.print()">imprimer la page</a>
https://snipt.net/embed/9c5a2d1a2915780cf089041e191ce906/
/raw/9c5a2d1a2915780cf089041e191ce906/
9c5a2d1a2915780cf089041e191ce906
text
Text only
1
2019-08-22T05:28:04
True
False
False
Oct 28, 2012 at 05:06 PM
/api/public/snipt/49217/
lien-pour-imprimer-la-page
<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></span><span id="L-1"><a name="L-1"></a>&lt;a href=&quot;javascript:window.print()&quot;&gt;imprimer la page&lt;/a&gt; </span></pre></div> </td></tr></table>
html, js

JavaScript

Script de traduction Google

javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.fr/?text='+t+'&hl=fr&langpair=auto|fr&tbb=1&ie='+e;}else{location.href='http://translate.google.fr/translate?u='+encodeURIComponent(location.href)+'&hl=fr&langpair=auto|fr&tbb=1&ie='+e;};
https://snipt.net/embed/a7fd5c392dbb53b601dce2e5e2994356/
/raw/a7fd5c392dbb53b601dce2e5e2994356/
a7fd5c392dbb53b601dce2e5e2994356
js
JavaScript
1
2016-12-28T01:38:58
True
False
True
Sep 19, 2012 at 06:32 AM
/api/public/snipt/47354/
script-de-traduction-google
<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></span><span id="L-1"><a name="L-1"></a><span class="nx">javascript</span><span class="o">:</span><span class="kd">var</span><span class="o">%</span><span class="mi">20</span><span class="nx">t</span><span class="o">=</span><span class="p">((</span><span class="nb">window</span><span class="p">.</span><span class="nx">getSelection</span><span class="o">&amp;&amp;</span><span class="nb">window</span><span class="p">.</span><span class="nx">getSelection</span><span class="p">())</span><span class="o">||</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">getSelection</span><span class="o">&amp;&amp;</span><span class="nb">document</span><span class="p">.</span><span class="nx">getSelection</span><span class="p">())</span><span class="o">||</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">selection</span><span class="o">&amp;&amp;</span><span class="nb">document</span><span class="p">.</span><span class="nx">selection</span><span class="p">.</span><span class="nx">createRange</span><span class="o">&amp;&amp;</span><span class="nb">document</span><span class="p">.</span><span class="nx">selection</span><span class="p">.</span><span class="nx">createRange</span><span class="p">().</span><span class="nx">text</span><span class="p">));</span><span class="kd">var</span><span class="o">%</span><span class="mi">20</span><span class="nx">e</span><span class="o">=</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">charset</span><span class="o">||</span><span class="nb">document</span><span class="p">.</span><span class="nx">characterSet</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">t</span><span class="o">!=</span><span class="s1">&#39;&#39;</span><span class="p">){</span><span class="nx">location</span><span class="p">.</span><span class="nx">href</span><span class="o">=</span><span class="s1">&#39;http://translate.google.fr/?text=&#39;</span><span class="o">+</span><span class="nx">t</span><span class="o">+</span><span class="s1">&#39;&amp;hl=fr&amp;langpair=auto|fr&amp;tbb=1&amp;ie=&#39;</span><span class="o">+</span><span class="nx">e</span><span class="p">;}</span><span class="k">else</span><span class="p">{</span><span class="nx">location</span><span class="p">.</span><span class="nx">href</span><span class="o">=</span><span class="s1">&#39;http://translate.google.fr/translate?u=&#39;</span><span class="o">+</span><span class="nb">encodeURIComponent</span><span class="p">(</span><span class="nx">location</span><span class="p">.</span><span class="nx">href</span><span class="p">)</span><span class="o">+</span><span class="s1">&#39;&amp;hl=fr&amp;langpair=auto|fr&amp;tbb=1&amp;ie=&#39;</span><span class="o">+</span><span class="nx">e</span><span class="p">;};</span> </span></pre></div> </td></tr></table>
js