- Sending Newsletter, others settings.

This commit is contained in:
Paolo Arena
2019-12-04 18:21:17 +01:00
parent 6f2e4f891e
commit 4dddff5df1
10 changed files with 257 additions and 87 deletions

View File

@@ -2669,12 +2669,15 @@ export const tools = {
return mywidth
} else {
let myw = mywidth + ((this.getwidth(mythis) - mywidth) * 0.4)
console.log('this.getwidth(mythis) = ', this.getwidth(mythis))
let myw = mywidth + ((this.getwidth(mythis) - mywidth) * 0.6)
console.log('myw1 = ', myw)
if (myw > maxwidth)
myw = maxwidth
if (myw > this.getwidth(mythis) - 20)
myw = this.getwidth(mythis) - 20
console.log('myw = ', myw)
return myw
}
},
@@ -2684,18 +2687,6 @@ export const tools = {
return myw * (myheight / mywidth)
},
getheightscale(mythis, myheight, maxheight) {
if (this.isMobile()) {
return myheight
} else {
let myh = myheight + ((this.getheight(mythis) - myheight) * 0.3)
if (myh > maxheight)
myh = maxheight
return myh
}
},
isIsoDate(str) {
if (!/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(str)) return false
const d = new Date(str)
@@ -2829,6 +2820,9 @@ export const tools = {
isObject(anything) {
//Object.create(null) instanceof Object → false
return Object(anything) === anything
},
isDebug() {
return process.env.DEV
}
// getLocale() {