1.1.1 • Published 5 years ago

display-log v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Display.log

Display.log mirrors your console messages over the page.

Can be useful for debugging on mobile phones or if you want to save some screen space by keeping developer console closed.

Screenshot

Usage

Paste the following code snippet after the body tag of your page.

<script src="https://cdn.jsdelivr.net/gh/aleksandr-novikov/display-log@1.1.0/dist/displaylog.min.js"></script>
<script> displayLog.init(); </script>

API

displayLog.init(settings)

Initializes display logger and puts panel on the page.

settings object

PropertyTypeDefaultDescription
bgColorstring'rgba(0, 0, 0, 0.4)'Panel background color
textColorstring'#fff'Color of text messages
fontStylestring'Courier New'Font style
fontSizestring'1em'Font size
paddingstring'0.5vw'Padding of text messages
maxHeightstring'30vh'Maximum console height
closablebooltruePanel can be closed be click

License

Copyright (c) 2019 Aleksandr Novikov. License.

1.1.1

5 years ago