JSFiddle

  • Test validate url with UT Gemius

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

    var write = (function(msg) {
      var output = document.querySelector('#output');
      return function(msg) {
        output.innerHTML += '<li>' + msg + '</li>';
      }
    }());
    
    function validateUrl(str) {
        var urlregex ...
  • Test Konva with broken PNG #3 is the latest revision

    jQuery 1.9.1, HTML, CSS, JavaScript

    $(document).ready(function() {
    	var container = $('#container');
      var stage = new Konva.Stage({
          container: 'container',
          width: parseInt(container.width()),
          height: parseInt(container ...
  • Test Konva with broken PNG

    jQuery 1.9.1, HTML, CSS, JavaScript

    $(document).ready(function() {
    	var container = $('#container');
      var stage = new Konva.Stage({
          container: 'container',
          width: parseInt(container.width()),
          height: parseInt(container ...
  • URL fix

    background-image

    $(document).ready(function() {
    	var test = $('#test');
      var copy = $('#copy');
      var copy_div = $('#copy-div');
      var src = '//static-system.adtarget.me/uploads/creatives/589c12f44d8f6d6f365d026f ...
  • 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 = '[&#34;en_GB&#34;,&#34;ru_RU&#34;]';
          $('#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 ...