JSFiddle

  • Google fonts #3 is the latest revision

    jQuery 1.9.1, HTML, CSS, JavaScript

    $(document).ready( function() {
    
        $.getJSON('https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyCgRMuwZ7bJNJ9vW7KjzhMBdKeKMAwKHe0', function(response) {
            //alert('json object fetched successfully ...
  • Clean HTML entities from string before parse #5 is the latest revision

    jQuery 2.2.0, HTML, CSS, JavaScript

    $(document).ready(function() {
    			var test = '["en_GB","ru_RU"]';
          $('#text1').val(test);
          $('#text2').val(cleanEntities(test));
          try {
          		var locales = $.parseJSON($('#text1').val ...
  • Encode UTF8 test

    jQuery 2.2.2, HTML, CSS, JavaScript

    $(document).ready(function() {
    	$('#chars').on('change', function() {
      	if ('' !== $(this).val()) {
        	$('#result').html(''+b64EncodeUnicode($(this).val()));
        }
      });
    });
    function b64EncodeUnicode(str) {
        return btoa ...
  • rahvaraamat

    Product page script

    $(document).ready(function() {
      $('.add_to_basket').click(function() {
        //console.log('https://www.rahvaraamat.ee/add-to-basket/');
        //__AtmUrls = window.__AtmUrls || [];
        $('#result').html(' https://www ...
  • Download text file button

    Test for crossbrowser solution in the browsers

    var BrowserDetect = {
      init: function() {
        this.browser = this.searchString(this.dataBrowser) || "Other";
        this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator ...
  • Image preloader

    jQuery 1.9.1, HTML, CSS, JavaScript

    $(document).ready(function() {
      var container = $('#container');
      var width = container.width();
      var height = container.height();
    
      var image_params = {
        pos_x: 10,
        pos_y: 10 ...
  • Change banners and borders (with function Line)

    Check banner border render Without change there is border difference between

    var banner_sizes = ['300x250', '160x600', '728x90', '930x130', '980x180'];
    var border_sizes = ['1', '2', '3', '4', '5'];
    var border_radius = ['0','1', '2', '3 ...
  • Change banners and borders

    Check banner border render

    var banner_sizes = ['300x250', '160x600', '728x90', '930x130', '980x180'];
    var border_sizes = ['1', '2', '3', '4', '5'];
    var bannerwidth = 300;
    var bannerheight = 250 ...
  • Base64 encode and decode string #4 is the latest revision

    Encode base64 string

    var Base64 = {
      // private property
      _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
      // public method for encoding
      encode: function(input) {
        var output = "";
        var chr1, chr2, chr3, enc1 ...
  • SHIFT key and rescale

    Press shift key and rescale object in the Konva library

    var $keysPressed = [];
    var $shiftCode = 16;
    var $stage = null;
    var $layer = null;
    var $group = null;
    var $rect = null;
    var $shifted = false ...