<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 22:07:25 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) Getting Video For Everybody working without encoding an OGG - Kit</title>
      <link>https://snipplr.com/view/21666/getting-video-for-everybody-working-without-encoding-an-ogg</link>
      <description>&lt;p&gt;Video For Everybody is a great way to use the `&lt;video&gt;` tag with fallbacks for QuickTime or Flash for users with old browsers, but it requires that every video be encoded twice (once for the MP4 and once for the OGG).&#13;
&#13;
This code (which requires Mootools but could be easily rewritten to avoid that requirement) allows you to provide a better experience for users of very old Flash Players (which don't support H.264 playback) and working video for Firefox users (without encoding any OGG files).&#13;
&#13;
The code should be run onDomReady, and only if there's a `&lt;video&gt;` element on the page. Due to my requirements, this code only addresses the first `&lt;video&gt;` element on the page.&#13;
&#13;
The video element should be enclosed in a `&lt;div&gt;` or other suitable container.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Oct 2009 21:13:32 UTC</pubDate>
      <guid>https://snipplr.com/view/21666/getting-video-for-everybody-working-without-encoding-an-ogg</guid>
    </item>
    <item>
      <title>(PHP) Auto-generate thumbnail in equivalent location (unless one has been manually created) - Kit</title>
      <link>https://snipplr.com/view/21592/autogenerate-thumbnail-in-equivalent-location-unless-one-has-been-manually-created</link>
      <description>&lt;p&gt;Not particularly novel, but quite clean. Allows you to put images in any location on the server and saves having to generate thumbnails at upload time.&#13;
&#13;
The URL to this file should be:&#13;
&#13;
`&lt;filename.php&gt;/&lt;request&gt;/&lt;path&gt;`&#13;
&#13;
Valid request types:&#13;
&#13;
* `view` â€” View the image full-size (don't scale)&#13;
* `preview` â€” View the image at a medium scale&#13;
* `thumb` â€” Show a thumbnail of the image&#13;
&#13;
Images can be JPEGs or PNGs. Broken URLs redirect to a designated 404 image.&#13;
&#13;
Thumbnails and previews will be stored using an identical folder hierarchy inside the `thumbnails` and `previews` folders inside the images folder.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Oct 2009 01:22:21 UTC</pubDate>
      <guid>https://snipplr.com/view/21592/autogenerate-thumbnail-in-equivalent-location-unless-one-has-been-manually-created</guid>
    </item>
  </channel>
</rss>
