JSFiddle

  • Gif player #3 is the latest revision

    Imgur

    // https://github.com/rubentd/gifplayer
    // http://imgur.com/r/gifs/fNxKlX1
    $('#imgur').gifplayer({
    	mode: 'video',
      webm: '//i.imgur.com/fNxKlX1 ...
  • Gif player #1 is the latest revision

    Giphy

    // https://github.com/rubentd/gifplayer
    // http://giphy.com/gifs/brooklyn-saoirse-ronan-movie-6FAxn8i3tEfS0
    $('#giphy').gifplayer({
      gif: 'https://media.giphy.com/media/6FAxn8i3tEfS0/giphy ...
  • Rectangle follow cursor in menu #3 is the latest revision

    http://stackoverflow.com/questions/19348112/javascript-rectangle-follow-cursor-in-menu/

    (function () {
    
        var rect, rect1; // rectangles
        var shadow; // shadow div
        var bpos; // begin position
        var epos; // end position
        var width, shadowWidth ...
  • Scroll by dragging

    No-Library (pure JS), HTML, CSS, JavaScript

    // Scroll by dragging by Zzbaivong (https://github.com/baivong)
    
    function scrollByDragging(container) {
    
      function mouseUp(e) {
        if (e.which !== 3) return ...
  • Scroll by dragging #6 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    // Scroll by dragging by Zzbaivong (https://github.com/baivong)
    
    function scrollByDragging(container, disableH, disableV) {
    
      function mouseUp(e) {
        if (e.which ...
  • Draggable Inner

    No-Library (pure JS), HTML, CSS, JavaScript

    // Draggable Inner by Zzbaivong (https://github.com/baivong)
    
    function draggableInner(drag, container) {
    
      function mouseUp(e) {
        if (e.which !== 3) return ...
  • Generate epub #1 is the latest revision

    application/epub+zip

    var zip = new JSZip(),
      $img = $('#img'),
      $text = $('#text'),
      $type = $('#type'),
      $gen = $('#gen');
    JSZipUtils.getBinaryContent('https://crossorigin.me/' + $img.attr('src ...
  • Convert to ASCII #12 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    // http://stackoverflow.com/a/834529
    
    function convert() {
      var escapable = /[\\\"\x00-\x1f\x7f-\uffff]/g,
        meta = {
          '\b': '\\b',
          '\t': '\\t',
          '\n ...
  • html_entity_decode js #18 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    function html_entity_decode(message) {
      return message.replace(/[<>'"]/g, function(m) {
        return '&' + {
          '\'': 'apos',
          '"': 'quot',
          '&': 'amp',
          '<': 'lt',
          '>': 'gt',
        }[m] + ';';
      });
    }
    
    document.getElementById('form_decode').onsubmit = function(e) {
      e.preventDefault();
      document.getElementById ...
  • api myjson #2 is the latest revision

    myjson.com

    // myjson PUT Example
    // 1. Create valid uri via POST
    // 2. Update data via PUT
    
    var obj = {
        "key": "value",
        "key2": "value2 ...