snipt

Ctrl+h for KB shortcuts

CSS

iOS Background Scaling

/** Force iOS to maintain large background sizes **/
-webkit-background-size: 2000px 1200px;
https://snippets.siftie.com/embed/8d2c6ed855315ce87623764b014cda45/
/raw/8d2c6ed855315ce87623764b014cda45/
8d2c6ed855315ce87623764b014cda45
css
CSS
5
2019-03-05T10:22:32
True
False
False
Jul 10, 2012 at 07:39 PM
/api/public/snipt/42360/
ios-background-scaling
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c">/** Force iOS to maintain large background sizes **/</span> </span><span id="L-2"><a name="L-2"></a><span class="nt">-webkit-background-size</span><span class="o">:</span> <span class="nt">2000px</span> <span class="nt">1200px</span><span class="o">;</span> </span></pre></div> </td></tr></table>
css, ios

HTML

jQuery w/ Local fallback

1
2
3
4
5
6
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script><script type="text/javascript">
if (typeof jQuery == 'undefined')
{
    document.write(unescape("%3Cscript src='/js/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
https://snippets.siftie.com/embed/6299568e98a219bf655224f4fb571891/
/raw/6299568e98a219bf655224f4fb571891/
6299568e98a219bf655224f4fb571891
html
HTML
7
2019-03-19T01:18:09
True
False
False
Jul 10, 2012 at 07:40 PM
/api/public/snipt/42355/
jquery-w-local-fallback
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">script</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;text/javascript&quot;</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;http://code.jquery.com/jquery-1.7.2.min.js&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;&lt;</span><span class="nt">script</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;text/javascript&quot;</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="k">if</span> <span class="p">(</span><span class="k">typeof</span> <span class="nx">jQuery</span> <span class="o">==</span> <span class="s1">&#39;undefined&#39;</span><span class="p">)</span> </span><span id="L-3"><a name="L-3"></a><span class="p">{</span> </span><span id="L-4"><a name="L-4"></a> <span class="nb">document</span><span class="p">.</span><span class="nx">write</span><span class="p">(</span><span class="nx">unescape</span><span class="p">(</span><span class="s2">&quot;%3Cscript src=&#39;/js/jquery-1.7.2.min.js&#39; type=&#39;text/javascript&#39;%3E%3C/script%3E&quot;</span><span class="p">));</span> </span><span id="L-5"><a name="L-5"></a><span class="p">}</span> </span><span id="L-6"><a name="L-6"></a><span class="p">&lt;/</span><span class="nt">script</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
fallback, jquery, local