doc/templates.html in timeline_setter-0.3.1 vs doc/templates.html in timeline_setter-0.3.2

- old
+ new

@@ -1 +1 @@ -<!DOCTYPE html> <html> <head> <title>templates.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To &hellip; <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="templates.html"> templates.js </a> <a class="source" href="timeline-setter.html"> timeline-setter.js </a> <a class="source" href="timeline-setter.min.html"> timeline-setter.min.js </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> templates.js </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">&#182;</a> </div> </td> <td class="code"> <div class="highlight"><pre><span class="p">(</span><span class="kd">function</span><span class="p">(){</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="o">=</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="o">||</span><span class="p">{};</span><span class="kd">var</span> <span class="nx">a</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">c</span><span class="p">){</span><span class="kd">var</span> <span class="nx">b</span><span class="o">=</span><span class="k">new</span> <span class="nb">Function</span><span class="p">(</span><span class="s2">&quot;obj&quot;</span><span class="p">,</span><span class="s2">&quot;var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push(&#39;&quot;</span><span class="o">+</span><span class="nx">c</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\/g</span><span class="p">,</span><span class="s2">&quot;\\\\&quot;</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/&#39;/g</span><span class="p">,</span><span class="s2">&quot;\\&#39;&quot;</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/&lt;%=([\s\S]+?)%&gt;/g</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">d</span><span class="p">,</span><span class="nx">e</span><span class="p">){</span><span class="k">return</span><span class="s2">&quot;&#39;,&quot;</span><span class="o">+</span><span class="nx">e</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\&#39;/g</span><span class="p">,</span><span class="s2">&quot;&#39;&quot;</span><span class="p">)</span><span class="o">+</span><span class="s2">&quot;,&#39;&quot;</span><span class="p">}).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/&lt;%([\s\S]+?)%&gt;/g</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">d</span><span class="p">,</span><span class="nx">e</span><span class="p">){</span><span class="k">return</span><span class="s2">&quot;&#39;);&quot;</span><span class="o">+</span><span class="nx">e</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\&#39;/g</span><span class="p">,</span><span class="s2">&quot;&#39;&quot;</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/[\r\n\t]/g</span><span class="p">,</span><span class="s2">&quot; &quot;</span><span class="p">)</span><span class="o">+</span><span class="s2">&quot;__p.push(&#39;&quot;</span><span class="p">}).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\r/g</span><span class="p">,</span><span class="s2">&quot;\\r&quot;</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\n/g</span><span class="p">,</span><span class="s2">&quot;\\n&quot;</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\t/g</span><span class="p">,</span><span class="s2">&quot;\\t&quot;</span><span class="p">)</span><span class="o">+</span><span class="s2">&quot;&#39;);}return __p.join(&#39;&#39;);&quot;</span><span class="p">);</span><span class="k">return</span> <span class="nx">b</span><span class="p">};</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">card</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">&#39;&lt;div class=&quot;TS-card_container TS-card_container_&lt;%= (card.get(&quot;series&quot;) || &quot;&quot;).replace(/W/g, &quot;&quot;) %&gt;&quot;&gt;\n&lt;div class=&quot;TS-css_arrow TS-css_arrow_up TS-css_arrow_color_&lt;%= card.get(&quot;topcolor&quot;) %&gt;&quot;&gt;&lt;/div&gt;\n &lt;div class=&quot;TS-item TS-item_color_&lt;%= card.get(&quot;topcolor&quot;) %&gt;&quot; data-timestamp=&quot;&lt;%= card.get(&quot;timestamp&quot;) %&gt;&quot;&gt;\n &lt;div class=&quot;TS-item_label&quot;&gt;\n &lt;% if (!_.isEmpty(card.get(&quot;html&quot;))){ %&gt;\n &lt;div class=&quot;TS-item_user_html&quot;&gt;\n &lt;%= card.get(&quot;html&quot;) %&gt;\n &lt;/div&gt;\n &lt;% } %&gt;\n &lt;%= card.get(&quot;description&quot;) %&gt;\n &lt;/div&gt;\n &lt;% if (!_.isEmpty(card.get(&quot;link&quot;))){ %&gt;\n &lt;a class=&quot;TS-read_btn&quot; target=&quot;_blank&quot; href=&quot;&lt;%= card.get(&quot;link&quot;) %&gt;&quot;&gt;Read More&lt;/a&gt;\n &lt;% } %&gt;\n\n &lt;div class=&quot;TS-item_year&quot;&gt;\n &lt;span class=&quot;TS-item_year_text&quot;&gt;&lt;%= (card.get(&quot;display_date&quot;) || &quot;&quot;).length &gt; 0 ? card.get(&quot;display_date&quot;) : card.get(&quot;date&quot;) %&gt;&lt;/span&gt;\n &lt;div class=&quot;TS-permalink&quot;&gt;&amp;#8734;&lt;/div&gt;\n &lt;/div&gt;\n &lt;/div&gt;\n&lt;/div&gt;&#39;</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">notch</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">&#39;&lt;div class=&quot;TS-notch TS-notch_&lt;%= timestamp %&gt; TS-notch_&lt;%= series.replace(/W/g, &quot;&quot;) %&gt; TS-notch_color_&lt;%= topcolor %&gt;&quot;&gt;&lt;/div&gt;\n&#39;</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">series_legend</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">&#39;&lt;div class=&quot;TS-series_legend_item TS-series_legend_item_&lt;%= name.replace(/W/g, &quot;&quot;) %&gt;&quot;&gt;\n &lt;span class=&quot;TS-series_legend_swatch TS-series_legend_swatch_&lt;%= color %&gt;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;TS-series_legend_text&quot;&gt;&lt;%= name %&gt;&lt;/span&gt;\n&lt;/div&gt;\n&#39;</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">&#39;&lt;div class=&quot;timeline_setter&quot;&gt;\n &lt;div class=&quot;TS-top_matter_container&quot;&gt;\n &lt;div class=&quot;TS-controls&quot;&gt;\n &lt;a href=&quot;#&quot; class=&quot;TS-zoom TS-zoom_in&quot;&gt;&lt;span class=&quot;TS-controls_inner_text TS-zoom_inner_text&quot;&gt;+&lt;/span&gt;&lt;/a&gt; \n &lt;a href=&quot;#&quot; class=&quot;TS-zoom TS-zoom_out&quot;&gt;&lt;span class=&quot;TS-controls_inner_text TS-zoom_inner_text&quot;&gt;-&lt;/span&gt;&lt;/a&gt; \n &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n &lt;a href=&quot;#&quot; class=&quot;TS-choose TS-choose_prev&quot;&gt;&amp;laquo;&amp;nbsp;&lt;span class=&quot;TS-controls_inner_text&quot;&gt;Previous&lt;/span&gt;&lt;/a&gt; \n &lt;a href=&quot;#&quot; class=&quot;TS-choose TS-choose_next&quot;&gt;&lt;span class=&quot;TS-controls_inner_text&quot;&gt;Next&lt;/span&gt;&amp;nbsp;&amp;raquo;&lt;/a&gt;\n &lt;/div&gt;\n &lt;div class=&quot;TS-series_nav_container&quot;&gt;&lt;/div&gt;\n &lt;/div&gt;\n\n &lt;div class=&quot;TS-notchbar_container&quot;&gt;\n &lt;div class=&quot;TS-notchbar&quot;&gt;&lt;/div&gt;\n &lt;/div&gt;\n &lt;div class=&quot;TS-card_scroller&quot;&gt;\n &lt;div class=&quot;TS-card_scroller_inner&quot;&gt;\n &lt;/div&gt;\n &lt;/div&gt;\n&lt;/div&gt;&#39;</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">year_notch</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">&#39;&lt;div class=&quot;TS-year_notch TS-year_notch_&lt;%= timestamp %&gt;&quot;&gt;\n &lt;span class=&quot;TS-year_notch_year_text&quot;&gt;&lt;%= human %&gt;&lt;/span&gt;\n&lt;/div&gt;\n&#39;</span><span class="p">)})();</span> +<!DOCTYPE html> <html> <head> <title>templates.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To &hellip; <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="templates.html"> templates.js </a> <a class="source" href="timeline-setter.html"> timeline-setter.js </a> <a class="source" href="timeline-setter.min.html"> timeline-setter.min.js </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> templates.js </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">&#182;</a> </div> </td> <td class="code"> <div class="highlight"><pre><span class="p">(</span><span class="kd">function</span><span class="p">(){</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="o">=</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="o">||</span><span class="p">{};</span><span class="kd">var</span> <span class="nx">a</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">c</span><span class="p">){</span><span class="kd">var</span> <span class="nx">b</span><span class="o">=</span><span class="k">new</span> <span class="nb">Function</span><span class="p">(</span><span class="s2">&quot;obj&quot;</span><span class="p">,</span><span class="s2">&quot;var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push(&#39;&quot;</span><span class="o">+</span><span class="nx">c</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\/g</span><span class="p">,</span><span class="s2">&quot;\\\\&quot;</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/&#39;/g</span><span class="p">,</span><span class="s2">&quot;\\&#39;&quot;</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/&lt;%=([\s\S]+?)%&gt;/g</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">d</span><span class="p">,</span><span class="nx">e</span><span class="p">){</span><span class="k">return</span><span class="s2">&quot;&#39;,&quot;</span><span class="o">+</span><span class="nx">e</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\&#39;/g</span><span class="p">,</span><span class="s2">&quot;&#39;&quot;</span><span class="p">)</span><span class="o">+</span><span class="s2">&quot;,&#39;&quot;</span><span class="p">}).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/&lt;%([\s\S]+?)%&gt;/g</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">d</span><span class="p">,</span><span class="nx">e</span><span class="p">){</span><span class="k">return</span><span class="s2">&quot;&#39;);&quot;</span><span class="o">+</span><span class="nx">e</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\\&#39;/g</span><span class="p">,</span><span class="s2">&quot;&#39;&quot;</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/[\r\n\t]/g</span><span class="p">,</span><span class="s2">&quot; &quot;</span><span class="p">)</span><span class="o">+</span><span class="s2">&quot;__p.push(&#39;&quot;</span><span class="p">}).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\r/g</span><span class="p">,</span><span class="s2">&quot;\\r&quot;</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\n/g</span><span class="p">,</span><span class="s2">&quot;\\n&quot;</span><span class="p">).</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\t/g</span><span class="p">,</span><span class="s2">&quot;\\t&quot;</span><span class="p">)</span><span class="o">+</span><span class="s2">&quot;&#39;);}return __p.join(&#39;&#39;);&quot;</span><span class="p">);</span><span class="k">return</span> <span class="nx">b</span><span class="p">};</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">card</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">&#39;&lt;div class=&quot;TS-card_container TS-card_container_&lt;%= (card.get(&quot;series&quot;) || &quot;&quot;).replace(/W/g, &quot;&quot;) %&gt;&quot;&gt;\n&lt;div class=&quot;TS-css_arrow TS-css_arrow_up TS-css_arrow_color_&lt;%= card.get(&quot;topcolor&quot;) %&gt;&quot;&gt;&lt;/div&gt;\n &lt;div class=&quot;TS-item TS-item_color_&lt;%= card.get(&quot;topcolor&quot;) %&gt;&quot; data-timestamp=&quot;&lt;%= card.get(&quot;timestamp&quot;) %&gt;&quot;&gt;\n &lt;div class=&quot;TS-item_label&quot;&gt;\n &lt;% if (!_.isEmpty(card.get(&quot;html&quot;))){ %&gt;\n &lt;div class=&quot;TS-item_user_html&quot;&gt;\n &lt;%= card.get(&quot;html&quot;) %&gt;\n &lt;/div&gt;\n &lt;% } %&gt;\n &lt;%= card.get(&quot;description&quot;) %&gt;\n &lt;/div&gt;\n &lt;% if (!_.isEmpty(card.get(&quot;link&quot;))){ %&gt;\n &lt;a class=&quot;TS-read_btn&quot; target=&quot;_blank&quot; href=&quot;&lt;%= card.get(&quot;link&quot;) %&gt;&quot;&gt;Read More&lt;/a&gt;\n &lt;% } %&gt;\n\n &lt;div class=&quot;TS-item_year&quot;&gt;\n &lt;span class=&quot;TS-item_year_text&quot;&gt;&lt;%= (card.get(&quot;display_date&quot;) || &quot;&quot;).length &gt; 0 ? card.get(&quot;display_date&quot;) : card.get(&quot;date&quot;) %&gt;&lt;/span&gt;\n &lt;div class=&quot;TS-permalink&quot;&gt;&amp;#8734;&lt;/div&gt;\n &lt;/div&gt;\n &lt;/div&gt;\n&lt;/div&gt;&#39;</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">notch</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">&#39;&lt;div class=&quot;TS-notch TS-notch_&lt;%= timestamp %&gt; TS-notch_&lt;%= series.replace(/W/g, &quot;&quot;) %&gt; TS-notch_color_&lt;%= topcolor %&gt;&quot;&gt;&lt;/div&gt;\n&#39;</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">series_legend</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">&#39;&lt;div class=&quot;TS-series_legend_item TS-series_legend_item_&lt;%= name.replace(/W/g, &quot;&quot;) %&gt;&quot;&gt;\n &lt;span class=&quot;TS-series_legend_swatch TS-series_legend_swatch_&lt;%= color %&gt;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;TS-series_legend_text&quot;&gt;&lt;%= name %&gt;&lt;/span&gt;\n&lt;/div&gt;\n&#39;</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">timeline</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">&#39;&lt;div class=&quot;timeline_setter&quot;&gt;\n &lt;div class=&quot;TS-top_matter_container&quot;&gt;\n &lt;div class=&quot;TS-controls&quot;&gt;\n &lt;div class=&quot;TS-zoom-container&quot;&gt;\n &lt;a href=&quot;#&quot; class=&quot;TS-zoom TS-zoom_in&quot;&gt;&lt;span class=&quot;TS-controls_inner_text TS-zoom_inner_text&quot;&gt;+&lt;/span&gt;&lt;/a&gt; \n &lt;a href=&quot;#&quot; class=&quot;TS-zoom TS-zoom_out&quot;&gt;&lt;span class=&quot;TS-controls_inner_text TS-zoom_inner_text&quot;&gt;-&lt;/span&gt;&lt;/a&gt;\n &lt;/div&gt; \n &lt;div class=&quot;TS-choose-container&quot;&gt;\n &lt;a href=&quot;#&quot; class=&quot;TS-choose TS-choose_prev&quot;&gt;&amp;laquo;&amp;nbsp;&lt;span class=&quot;TS-controls_inner_text&quot;&gt;Previous&lt;/span&gt;&lt;/a&gt; \n &lt;a href=&quot;#&quot; class=&quot;TS-choose TS-choose_next&quot;&gt;&lt;span class=&quot;TS-controls_inner_text&quot;&gt;Next&lt;/span&gt;&amp;nbsp;&amp;raquo;&lt;/a&gt;\n &lt;/div&gt;\n &lt;/div&gt;\n &lt;div class=&quot;TS-series_nav_container&quot;&gt;&lt;/div&gt;\n &lt;/div&gt;\n\n &lt;div class=&quot;TS-notchbar_container&quot;&gt;\n &lt;div class=&quot;TS-notchbar&quot;&gt;&lt;/div&gt;\n &lt;/div&gt;\n &lt;div class=&quot;TS-card_scroller&quot;&gt;\n &lt;div class=&quot;TS-card_scroller_inner&quot;&gt;\n &lt;/div&gt;\n &lt;/div&gt;\n&lt;/div&gt;&#39;</span><span class="p">);</span><span class="nb">window</span><span class="p">.</span><span class="nx">JST</span><span class="p">.</span><span class="nx">year_notch</span><span class="o">=</span><span class="nx">a</span><span class="p">(</span><span class="s1">&#39;&lt;div class=&quot;TS-year_notch TS-year_notch_&lt;%= timestamp %&gt;&quot;&gt;\n &lt;span class=&quot;TS-year_notch_year_text&quot;&gt;&lt;%= human %&gt;&lt;/span&gt;\n&lt;/div&gt;\n&#39;</span><span class="p">)})();</span> \ No newline at end of file