1(function() { 2 "use strict"; 3 4 riot.tag2( 5 // required 6 "bnvalue", 7 '<span if="{opts.value}"> {opts.value} </span> <yield></yield>', 8 "", 9 'class="bignumber_value"', 10 function(opts) { 11 // console.log("mounted bnvalue"); 12 if (opts.enhance == "true") { 13 this.mixin("d3mixin"); 14 } 15 } 16 ); 17 18 riot.tag2( 19 // required 20 "bncaption", 21 '<div class="bignumber_content"> <span if="{opts.caption}"> {opts.caption} </span> <yield></yield> </div>', 22 "", 23 'class="bn-caption"', 24 function(opts) { 25 // console.log("mounted bncaption"); 26 } 27 ); 28 29 riot.tag2( 30 // required... 31 "bignumber", 32 '<div if="{gotOpts}"> <div if="{opts.preamble}" class="bignumber_content"> {opts.preamble} </div> <div if="{opts.value}" class="bignumber_value"> {opts.value} </div> <div if="{opts.caption}" class="bignumber_content"> {opts.caption} </div> </div> <div if="{!gotOpts}"> <fallback><yield></yield></fallback> </div>', 33 "", 34 'class="bignumber_wrapper"', 35 function(opts) { 36 this.on("before-mount", function() { 37 // console.log("mounted bignumber"); 38 this.gotOpts = this.opts.value && this.opts.caption ? true : false; 39 }); 40 } 41 ); 42 43 riot.tag2( 44 // required. 45 "fallback", 46 "<div> <yield></yield> </div>", 47 "", 48 "", 49 function(opts) { 50 // console.log("mounted fallback"); 51 } 52 ); 53 54 // Main file for bigger-numbers component. 55 // console.info(riot ? "RiotJS is loaded!" : null); 56 57 // Import the compiled Bigger Numbers tags. 58 // Import new compiled, simplified tag. 59 // Import new generic fallback tag. 60 // Mount RiotJS elements. 61 riot.mount("*"); 62 // console.log("mounting...."); 63})(); 64;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.