JSFiddle

  • Swedbank customized email template

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

    <div style="font-family:Tahoma,sans-serif;color:#9B9B9B;font-size:12px;line-height:1.3em"><p style="margin:0">Vārds Uzvārds</p><p style="margin:0">Monetāro finanšu iestāžu darbības analīzes daļas</p><p style="margin:0">Galvenā uzraudzības eksperte</p><hr width="370" color="#9B9B9B" noshade align="left" size="1" style="width:370px;margin:10px 0;border:none;border-top:solid 1px #9B9B9B"/><p style="margin:0;color:#2B3683;text-transform:uppercase">Finanšu un kapitāla tirgus komisija</p><p style="margin:0">T. +371 9123456, M ...</p></div>
  • STONE languages

    jQuery Compat (edge), HTML, CSS, JavaScript

    $(function() {
        var table_lv = $('table.lv');
        var row_lv = $('tr', table_lv);
        
        //$('table.en').each(function(table) {
            
            $('tr', $('table.en')).each(function(row ...
  • 2D perspective space shooter

    jQuery (edge), HTML, CSS, JavaScript

    // TODO: Animation find average walk. Currently there is a bug, that closer to the bottom the projectile is, the faster ...
  • smashable

    A super simple, yet addicting game. Can you smash the fastest?

    /**
     * Button smashing game
     * @version 0.1a
     * @author Toms "scriptroop" Seisums
     */
    
    $(function() {
        
        var keys = {
            ESCAPE : 27,
            
            F1 : 112,
            F2 : 113,
            F3 ...
  • jQuery proper slideDown/Up

    © @e.teiks

    $(document).ready(function(){
      var isSlidingDown = 0;
      var isSlidingUp = 0;
      $('#trigger').hover(function(){
        if(isSlidingUp == 1){
          $('.test').stop().animate(
            {height:500 ...
  • Backbone stupidStructor

    Looks like good ol' Backbone has no idea how to properly construct objects.

    var Zepto = Backbone.Model.extend({
      
      defaults :
      {
        zeptors : 10
      },
      
      initialize : function()
      {
        document.write( '@initialize: zeptors : ' + this.get('zeptors') + '<br>' );
      }
      
    });
    
    window.onload = function ...
  • Backbone stupidStructor

    Looks like good ol' Backbone has no idea how to properly construct objects.

    var Zepto = Backbone.Model.extend({
      
      zeptors : 0,
      
      initialize : function()
      {
        document.write( '@initialize: zeptors : ' + this.zeptors + '<br>' );
      }
      
    });
    
    window.onload = function()
    {
      var z ...
  • clientWidth

    Calculates clientWidth.

    /* jQuery */
    var pseudo = document.createElement('div');
    
    $(pseudo).css({
        position : 'absolute',
        width : '100%',
        height : '111%', // a little overflow
        top : 0,
        left ...
  • CSS3 Stuff

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

    <p data-color="red">
    <span>rododenders</span>
    <span>hortenzijens</span>
    </p>
  • MemoryWater (Kristalize) form manipulation playground

    jQuery (edge), HTML, CSS, JavaScript

    var modified = 0;
    var friendMail = $('.friend-email').html();
    var startCount = $('.mail:visible').length;
    $('form').change(function() {
        var value = $('#description').val();
        if ...