Git Product home page Git Product logo

js-console-overlay's Introduction

js-console-overlay

An overlay console for your browser

latest commit

Description

A simple console overlay for your browser.

Usefull when you want to see the logs in a mobile browser while you are developping.

Or if you don't want to open the full-fledged console to display rare occurence of logs.

Features

  • Display console Log, Error, Warn, Debug, Info messages
  • Display Fetch and XMLHttpRequest request
  • Display upload progress for XMLHttpRequest
  • Customization
    • Position
    • Size
  • Auto-clear of old message
  • Show stack-trace on error

Planned features

  • More infos on web-request

Usage

Just insert this in your html, and it's done !

<script src="https://sylrelo.github.io/js-console-overlay/dist/js-console-overlay.min.js"></script>

(You can also manually download js-console-overlay.min.js and serve it yourself, obviously)

You can set some options :

<script>
    // Those are the default value, you can set only the one you're interested with.
    overlayConsole.setOptions({
      // Max displayed messages
      maxMessage: 100,
      // Auto-hide delay in seconds
      autohideDelay: 10,
      // Position of the container
      // Possible values : BOTTOM-LEFT, BOTTOM-RIGHT, TOP-LEFT, TOP-RIGHT
      position: "BOTTOM-LEFT",
      // Left/Right margin in px
      offsetX: 20,
      // Top/Bottom margin in px
      offsetY: 40,
      // Max container height in px
      maxHeight: 200,
      // Max container width in px
      // 0 is equal to (100vw - offsetX)
      maxWidth: 0,
      // Opacity of messages (0.0 - 1.0)
      opacity: 0.8
    })
</script>

A bookmarklet and userscript version will be made available.

js-console-overlay's People

Contributors

sylrelo avatar

Stargazers

 avatar

Watchers

 avatar

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.