This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=// | |
let RegExpToolbox = | |
{ | |
// This regular expression which matches only numbers with up to two decimal | |
// places, and allowing a preceding decimal (without a zero) | |
// but not a trailing decimal. | |
monetaryNumberRegExp:new RegExp( "^(\\d+(?:[\\.]\\d{1,2})?|(?:\\d+)?(?:[\\.]\\d{1,2}))$" ), | |
} | |
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @example | |
* <div class="dots-fill"> | |
* <label class="dots-after"></label> | |
* </div> | |
* @see https://stackoverflow.com/a/5476886/1757334 | |
*/ | |
.dots-fill | |
{ | |
overflow:hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function printDiv( divId ) | |
{ | |
let divContents = document.getElementById( divId ).innerHTML; | |
let printWindow = window.open( '', '', 'height=200,width=400' ); | |
printWindow.document.write( '<html><head><title>Print DIV Content</title></head><body>' ); | |
printWindow.document.write( divContents ); | |
printWindow.document.write( '</body></html>' ); | |
printWindow.document.close(); | |
printWindow.print(); | |
} |