Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
KLA6 committed Dec 8, 2023
1 parent 87c2472 commit 1555a15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Secondly, to show the `console....` things at a corner on a mobile device screen

## Install
```
<script src="https://cdn.jsdelivr.net/gh/KLA6/[email protected].2/k6_console.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/KLA6/[email protected].3/k6_console.min.js"></script>
<script> new k6_console( {
prefix : '' ,
header : 'K6' ,
Expand Down Expand Up @@ -35,7 +35,7 @@ However, it's recommended to hide the installation part at all in the production
The following is an example in PHP.
```
<? if( $DEBUG ) { ?>
<script src="https://cdn.jsdelivr.net/gh/KLA6/[email protected].2/k6_console.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/KLA6/[email protected].3/k6_console.min.js"></script>
<script> new k6_console() </script>
<? } else { ?>
<script> const CD = null, FCD = FCE = FCW = FCG = FCGE = FCT = FCI = FCL = FCLR = () => {}; </script>
Expand Down
2 changes: 1 addition & 1 deletion k6_console.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class k6_console {
this.mobile = P.mobile || 'bl'; if( this.mobile == 'false' ) this.mobile = false // tl, tr, bl, br, false
this.prod = P.prod || P.production || false

if( ! this.prod ) console.warn( 'k6_console.js:', `Don't forget production: true or const ${this.prefix}CD = null, ${this.prefix}FCD = ${this.prefix}FCE = ${this.prefix}FCW = ${this.prefix}FCG = ${this.prefix}FCGE = ${this.prefix}FCT = ${this.prefix}FCI = ${this.prefix}FCL = ${this.prefix}FCLR = () => {}; for the production mode.` )
if( ! this.prod ) console.warn( 'k6_console.js:', `Don't forget "production: true" or "const ${this.prefix}CD = null, ${this.prefix}FCD = ${this.prefix}FCE = ${this.prefix}FCW = ${this.prefix}FCG = ${this.prefix}FCGE = ${this.prefix}FCT = ${this.prefix}FCI = ${this.prefix}FCL = ${this.prefix}FCLR = () => {}" for the production mode.` )

if( this.mobile ) {
this.FC = document.createElement( 'pre' ); document.addEventListener( 'DOMContentLoaded', () => { document.body.appendChild( this.FC ) } )
Expand Down
2 changes: 1 addition & 1 deletion k6_console.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1555a15

Please sign in to comment.