JSFiddle

  • International Redirect

    jQuery 2.2.4, HTML, CSS, JavaScript

    $(function() {
      $.get('//freegeoip.net/json/' + ipAddress)
        .done(function(data) {
          $('#data').html(JSON.stringify(data));
          if (data.country_code !== 'US') {
            window.location ...
  • Draggable contenteditable #10 is the latest revision

    Drag a contenteditable container around

    $(function() {
        $('span[contenteditable="true"]').on('focus', function (e) {
            $(this).parent().attr('draggable', 'false');
        }).on('blur', function (e) {
            $(this).parent().attr ...
  • RaphaelJS Clickable USA Map #3067 is the latest revision

    Converted with RaphaelJS Converter then added looped to sets making them clickable.

    var rsr = Raphael('rsr', 612, 792, 0, 0);
    
    var CA = rsr.set();
    CA.push(rsr.path("M29.372,112.632c0 ...