JSFiddle

  • Js Popup #3 is the latest revision

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

    var dnhUrl = "daynhauhoc.com";
    
    function genPopup() {
      var popup = window.open("", "DNH", "width=300,height=100");
    
      if (popup) {
        popup.document.body ...
  • Tiếng SKY #174 is the latest revision

    Teen code Sky code

    // by Zzbaivong - https://baivong.github.io
    
    (function() {
      'use strict';
    
      function bodau(str) {
        str = str.toLowerCase();
    
        str = str.replace(/à|á ...
  • The simplest example of command web app

    Zzbaivong https://baivong.github.io

    // The simplest example of command web app
    // Zzbaivong - https://baivong.github.io
    
    (function($) {
      'use strict';
    
      function focusInput() {
        $input.focus();
      }
    
      function ...
  • Broken blogspot image checker

    jQuery 1.12.2, HTML, CSS, JavaScript

    var isBlogspotOk = true;
    (function() {
      var img = document.createElement('img');
      img.src = 'https://4.bp.blogspot.com/-S16vb1fTOR4/VGMv1bmlWmI/AAAAAAAAYOM/EXPpU8URM48 ...
  • angular image map

    blogtruyen v5

    var listImageCaption = [{
      "url": "http://1.bp.blogspot.com/-fWHzS3523cg/VwVQ5pzqoaI/AAAAAAAAIUg/SpKCE3F9HVY/s0/002.png",
      "speechs": [{
        "coords": "169,293,551 ...
  • notify.jquery.js

    jQuery 1.12.2, HTML, CSS, JavaScript

     // baivong.github.io/
    
     function noty(txt, status) {
       function destroy(time) {
         $noty.fadeOut((time || 0), function() {
           $noty.remove();
         });
         clearTimeout(notyTimeout);
       }
    
       function ...
  • Render image to blob in jQuery #1 is the latest revision

    jQuery 2.2.3, HTML, CSS, JavaScript

    $.ajax({
      url: '//images-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&url=https://i.imgur.com/6pHlLrf.png',
      dataType: 'blob',
      processData: false
    }).done(function(result) {
      $('#result').html('<a href="' + window.URL.createObjectURL(result) + '" target="_blank">Blob link</a>');
    }).fail(function(err) {
      console.error(err);
    });
    
  • Render image to blob in js

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

    document.getElementById("genBlob").onclick = function() {
      var xhr = new XMLHttpRequest();
      xhr.open("GET", "//fiddle.jshell.net/img/logo.png", true);
      xhr ...
  • Quicksort in JavaScript with debug #2 is the latest revision

    Open Dev tool (F12/Ctrl+Shift+I) before Running this script

    // JavaScript: Quicksort
    function quicksort(x, first, last) {
      debugger; // Set breakpoint
    
      var pivot, j, temp, i;
    
      if (first < last) {
        pivot = first;
        i = first;
        j = last;
    
        while (i < j) {
          while (x[i] <= x[pivot] && i < last)
            i++;
          while (x[j] > x[pivot])
            j-- ...
  • isFocus in javascript

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

    var isFocus,
      inputs = document.getElementsByTagName('INPUT');
    
    for (var i = (inputs.length - 1); i >= 0; i--) {
      inputs[i].onfocus = function() {
        isFocus ...