jQuery Plugin For Custom Console Log On Webpage console js - Download jQuery Plugin For Custom Console Log On Webpage - console.js

Download jQuery Plugin For Custom Console Log On Webpage – console.js

Posted on

This time I will share jQuery Plugin and tutorial about jQuery Plugin For Custom Console Log On Webpage – console.js, hope it will help you in programming stack.

jQuery Plugin For Custom Console Log On Webpage console js - Download jQuery Plugin For Custom Console Log On Webpage - console.js
File Size: 6.27 KB
Views Total: 1104
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

console.js is a jQuery based console.log() alternative used to display a variety of console logs (normal, error, warning and success) on your screen for better/faster code debugging. The goal of the plugin is to bring the developer console right on the webpage without opening the browser’s developer tool.

How to use it:

1. Add both jQuery JavaScript library and the jQuery console.js script to your html page.

1 <script src="//code.jquery.com/jquery-1.12.1.min.js"></script>
2 <script src="jquery.console.js"></script>

2. Create a container element for the console log.

1 <div id="debug"></div>

3. Create a new Console object with options.

1 var demo = new Console({
2     'element':'#debug',
3     'width':400,
4     'height':300,
5     'bg':'#fafafa'
6 });

4. Output custom console data.

1 demo.log('Initialized!');
2 demo.success('Success!');
3 demo.error('Erroe!');
4 demo.warning('Warning!');

Change log:

2016-06-03

  • Added search feature. More flexible instantiation

This awesome jQuery plugin is developed by tigertooth01. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net