Skip to content

talmobi/info.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 

Repository files navigation

Info.js

JavaScript Text/Info display (based on stats.js look/theme)

This class provides a simple info box.

Screenshots

Usage

var info = new Info();
info.setMode(0); // 0: info box 1, 1: info box 2

// Align top-left
info.domElement.style.position = 'absolute';
info.domElement.style.left = '0px';
info.domElement.style.top = '0px';

document.body.appendChild( info.domElement );

setInterval( function () {

	info.setInfo1('Some text: ' + Math.floor( Math.random() * 10 ));

	info.setInfo2('Some text for\nthe other display mode');

}, 1000);

Change Log

2014 04 10 - Forked from stats.js and cut out all the functionality for simple text displaying.

About

JavaScript Info/Text Display (based on stats.js look)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%