client/data/custom_templates.js
author ymh <ymh.work@gmail.com>
Sun, 14 Jul 2024 22:00:08 +0200
changeset 666 9d6550026232
parent 484 cfe440ade6d6
permissions -rw-r--r--
Added tag V00.13.04 for changeset 69d13e7dd286

var custom_templates = {}

custom_templates['nodeeditor_audio'] = function(obj) {
    obj || (obj = {});
    var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
    function print() { __p += __j.call(arguments, '') }
    with (obj) {
    __p += '<h2>\n    <span class="Rk-CloseX">&times;</span>\n    ';
     if (options.show_node_tooltip_color) { ;
    __p += '\n        <span class="Rk-UserColor" style="background: ' +
    __e(node.color) +
    ';"></span>\n    ';
     } ;
    __p += '\n    <span class="Rk-Display-Title">\n        ';
     if (node.uri) { ;
    __p += '\n            <a href="' +
    __e(node.uri) +
    '" target="_blank">\n        ';
     } ;
    __p += '\n        ' +
    __e(node.title) +
    '\n        ';
     if (node.uri) { ;
    __p += '</a>';
     } ;
    __p += '\n    </span>\n</h2>\n';
     if (node.uri && options.show_node_tooltip_uri) { ;
    __p += '\n     <audio width="320" height="240" controls>\n        <source src="' +
    __e(node.uri) +
    '" type="video/mp4">\n     </video> \n';
     } ;
    __p += '\n    <a href="#?idnode=' +
    __e(node._id) +
    '">' +
    __e(renkan.translate("Link to the node")) +
    '</a>\n';

    }
    return __p
};