Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
dig | 4370b6e89b |
|
@ -0,0 +1,29 @@
|
|||
|
||||
log `
|
||||
window = ${window}o
|
||||
innerHeight = ${`color:blue`}c${window.innerHeight}d${``}cpx
|
||||
${`color:white;background:green`}cOK`
|
||||
|
||||
log.I `
|
||||
Hello ${window}o, tu est grande de ${`color:blue`}c${window.innerHeight}d${``}c pixels !
|
||||
${`color:green`}c Bravo!!`
|
||||
|
||||
log.E `
|
||||
Hello ${window}o tu est grande que de ${window.innerHeight}d pixels !
|
||||
${`color:white;background:red`}c Pas bien!!`
|
||||
|
||||
var bigreen = `color:white;background:green;font-size:1.2em;padding:0 .3em`
|
||||
, bigred = `color:white;background:red;font-size:1.2em;padding:0 .3em`
|
||||
log `${bigreen}cOK`
|
||||
log `${bigred}cKO`
|
||||
log `${window.innerHeight<500 ? bigred : bigreen}c${window.innerHeight<500 ? "trop petiiiiit!s" : "Ok mon grand .."}s`
|
||||
|
||||
// var toLog = window;
|
||||
// log.G`[class ${'color: indigo'}c${toLog.constructor.name}s${''}c]
|
||||
// this = ${window}o
|
||||
// innerWidth = ${`color:blue`}c${window.innerWidth}d${``}cpx
|
||||
// innerHeight = ${`color:blue`}c${window.innerHeight}d${``}cpx
|
||||
// document = ${document}o
|
||||
// title = ${`color:white;background:indigo`}c"${document.title}s"${``}c
|
||||
// `
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import log from '.'
|
||||
import { I: info, E: error, W: warn } from '.'
|
||||
|
||||
|
||||
//let { I: info, E: error, W: warn } = log
|
||||
|
||||
|
||||
log `OK`
|
|
@ -0,0 +1,40 @@
|
|||
require('.')
|
||||
|
||||
var window = {title: 'window stub'}
|
||||
|
||||
log `Simple log`
|
||||
log.S `Success`
|
||||
log.W `Warning`
|
||||
log.I `Info`
|
||||
log.E `Error`
|
||||
//log.G
|
||||
|
||||
|
||||
log `
|
||||
window = ${window}o
|
||||
innerHeight = ${`color:blue`}c${window.innerHeight}d${``}cpx
|
||||
${`color:white;background:green`}cOK`
|
||||
|
||||
log.I `
|
||||
Hello ${window}o, tu est grande de ${`color:blue`}c${window.innerHeight}d${``}c pixels !
|
||||
${`color:green`}c Bravo!!`
|
||||
|
||||
log.E `
|
||||
Hello ${window}o tu est grande que de ${window.innerHeight}d pixels !
|
||||
${`color:white;background:red`}c Pas bien!!`
|
||||
|
||||
var bigreen = `color:white;background:green;font-size:1.2em;padding:0 .3em`
|
||||
, bigred = `color:white;background:red;font-size:1.2em;padding:0 .3em`
|
||||
log `${bigreen}cOK`
|
||||
log `${bigred}cKO`
|
||||
log `${window.innerHeight<500 ? bigred : bigreen}c${window.innerHeight<500 ? "trop petiiiiit!s" : "Ok mon grand .."}s`
|
||||
|
||||
// var toLog = window;
|
||||
// log.G`[class ${'color: indigo'}c${toLog.constructor.name}s${''}c]
|
||||
// this = ${window}o
|
||||
// innerWidth = ${`color:blue`}c${window.innerWidth}d${``}cpx
|
||||
// innerHeight = ${`color:blue`}c${window.innerHeight}d${``}cpx
|
||||
// document = ${document}o
|
||||
// title = ${`color:white;background:indigo`}c"${document.title}s"${``}c
|
||||
// `
|
||||
|
Loading…
Reference in New Issue