JSFiddle

  • iOS card

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

    <div>
       <small>10/12/2019</small>
       Text <span>★★★★</span>
    </div>
    <br />
    <strong>iOS look and feel</strong>
  • table sticky cells

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

          var tables = [].slice.call(document.querySelectorAll('.table'));
          var tableRows = [].slice.call(document.querySelectorAll('.table tr'));
    
          function createAttrs(v) {
            const attrs ...
  • find by key

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

    let array = [{'id': 1, 'name': 'Ion'}, {'id': 2, 'name': 'Maria'}]
    
    object = array.find(entry => entry.id === 2)
    objectIndex = array.findIndex ...
  • mithril.js star rating #9 is the latest revision

    Simple implementation

    'use strict';
    
    var Rating = {};
    
    Rating.controller = function (args) {
      return {
        rating: m.prop(args.rating),
        userSelection: m.prop(args.rating),
        votes ...