Giter Site home page Giter Site logo

ticker-log's Introduction

ticker-log's People

Contributors

jonbri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ticker-log's Issues

reset settings

with api, reset to default properties

write addition to "channel" unit test by making sure console.log matches up with the log channel but not the debug channel.
Then make sure console.debug works

pause -> only show log if none currently exist

If there are already log nodes visible you don't need to actually print out the "pause" message when toggling pause mode.

If there are no nodes currently visible, show the "pause" message

new folder structure

- root
    - ticker-log.js
    - ticker-log.min.js
    - tests.js # combine js files and put css in index.html
    - index.html
    - screenshot
    - ticker-log.gif
    - jsdoc
        - jsdoc stuff
    - bin
    - package.json
    - README.md

embed starparam

so ticker-log doesn't need to bother with complicated url parsing

Can also remove a bunch of unit tests after this

settle on one css class

function _renderText(sText) {
var div = document.createElement('div');
div.className = '_ticker';
assignStyle(div, oConfig.logStyle);
div.className += ' _ticker_log';
div.innerHTML = sText;
var iText = _calculateTop();
if (iText < (oConfig.logStartTop / 2)) {
iText = oConfig.logStartTop;
}
div.style.top = iText + 'px';
document.body.appendChild(div);
}

clicking on anything but ticker logs

(or ticker textarea)

listen to that event during init

if in pause mode from clicking on a log, and this event happens, un-pause

also to close textarea?

feature: "add" macros with 1-9 keys

feature where the consumer could auto-insert their own debugging lines.

They get 1-9.

Must be done through api of course.

ex:
_ticker.add(1, function() {
// read vars and stuff from closures
this.print('foo');
});

putting setTimeout0 after each ticker print looks bad

The output being a nice "ticker-tape" steady thing breaks!

so, perhaps, rather than the setTimeout, each iteration should check location...if you haven't changed location, don't print...just skip that iteration

if that happens many times in a row (many setInterval stops) then...(?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.