diff --git a/src/js/src/tracker/app.html b/src/js/src/tracker/app.html index 13bdcb9..9d9ba8f 100644 --- a/src/js/src/tracker/app.html +++ b/src/js/src/tracker/app.html @@ -26,6 +26,9 @@
  • JSONダウンロード
  • +
  • + PURE CSSライセンス +
  • @@ -39,7 +42,7 @@

    参照

    diff --git a/src/js/src/tracker/app.js b/src/js/src/tracker/app.js index f77468e..5b184b5 100644 --- a/src/js/src/tracker/app.js +++ b/src/js/src/tracker/app.js @@ -199,8 +199,7 @@ setupApp(); // 初期行の変更 - const start = domain.log.getLatest().start; - const time = start.toLocaleTimeString(); + const time = domain.log.getLatest().start.toLocaleTimeString(); q(tracker.ui.initRec, "td.col-position-start").textContent = time; // 現在時刻の初回呼び出し、後は自動で1秒ごとに更新。 @@ -220,13 +219,19 @@ }); q("#save-as-csv").addEventListener('click', (event) => { - const csvWindow = window.open("", "_blank"); + const csvWindow = window.open("", "_blank", "popup,width=640,height=480"); + csvWindow.document.open(); csvWindow.document.write("
    " + domain.log.toCSV() + "
    "); csvWindow.document.close(); - console.log(); }) + q("#license-purecss").addEventListener('click', (event) => { + const csvWindow = window.open("license/PURE-CSS.txt", "_blank", "popup,width=640,height=480"); + }) + + tracker.ui.command.focus(); + function isDeleteButton(element) { return element.classList.contains("delete-event"); } diff --git a/src/js/src/tracker/license/PURE-CSS.txt b/src/js/src/tracker/license/PURE-CSS.txt new file mode 100644 index 0000000..c32969a --- /dev/null +++ b/src/js/src/tracker/license/PURE-CSS.txt @@ -0,0 +1,29 @@ +Software License Agreement (BSD License) +======================================== + +Copyright 2013 Yahoo! Inc. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the Yahoo! Inc. nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file