n3paste.de

::

a haskell happstack pastebin

  • New paste
  • View pastes

  • Login

  • About
  • Most recent pastes (filtered)

    Filter pastes (help):

    08:04 - Thu 2017.05.11

    JavaScript

    Paste: /97S/Show related

    No description.

    require('./bootstrap');
    window.Handlebars = require('handlebars');
    
    window.log = console.log;
    
    window.Handlebars.registerHelper('inc', function (c, num) {
        return new Handlebars.SafeString(Handlebars.escapeExpression((c + num).toString(10)));
    });
    
    let sondenform = $('#sondenform');
    if (sondenform) {
        sondenform = Handlebars.compile(sondenform.html());
        const intervalinput = Handlebars.compile($('#intervalinput').html());
        const projcont = $('#projcontroller');
        const target = $('#sondentarget');
        let lastselected = projcont.find(':selected');
        let numprobes = lastselected.data('num');
        let numintervals = [1, 1, 1, 1]; // observe this. ignore index < numprobes
    
        let renderTpl = () => {