JSFiddle

  • onfloat layer

    Konva

    var bannerwidth = 300;
    var bannerheight = 250;
    var bound_width = 313;
    var bound_height = 60;
    var type = '' + bannerwidth + 'x' + bannerheight;
    var $banner_stage = new ...
  • Button center

    jQuery 1.9.1, HTML, CSS, JavaScript

    function FixCenter(childrenid){
        var children = $('#'+childrenid);
        if ('undefined' !== typeof children) {
            var parent = children.parent();
            var margin_left = parseInt(parseInt(parent.width ...
  • SVG for IE

    jQuery 1.9.1, HTML, CSS, JavaScript

    <img src="https://vladimir-static-system.adtarget.me/uploads/banner_photos/product-01.svg" alt="img" class="image">
  • Javascript from win-1251 to utf-8

    http://stackoverflow.com/questions/16914085/how-to-convert-utf-8-string-to-urlencoded-win1251-in-javascript

    // "special" chars
    var charEncodeCache = {
      ' ': '%20',
      '+': '%2B',
      '%': '%25',
      '&': '%26',
      '=': '%3D'
    };
    
    function encodeURIComponent1251(str) {
      if(!str) return str;
    
      var result = '';
    
      for(var i = 0 ...
  • rounded

    jQuery 1.7.2, HTML, CSS, JavaScript

    var stage = new Kinetic.Stage({
            container: 'container',
            width: 578,
            height: 200
          });
          var layer = new Kinetic.Layer();
    
          var pentagon = new Kinetic ...
  • Perfums.in.com

    jQuery 1.7.2, HTML, CSS, JavaScript

    jQuery(document).ready(function(){
    	jQuery('#button-cart').click(function () {
            jQuery('#result').html('add-to-cart');
    		console.log('add-to-cart');
            window.GIHhtQfW_AtmUrls = window.GIHhtQfW_AtmUrls || [];
    		window ...