« first day (2603 days earlier)      last day (1514 days later) » 

04:20
@Unbreachable Sure here it is:

function myFunction() {
var oneMonth = 1;
var DocSaveTriggerDay = new Date();
if(DocSaveTriggerDay.getMonth()+oneMonth){
ScriptApp.newTrigger("myFunction")
.timeBased()
.onMonthDay(1)
.create();
var ss = SpreadsheetApp.getActiveSpreadsheet();
var copyVar = ss.copy("Copy " + ss.getName() + " " + (DocSaveTriggerDay)-(oneMonth));
}
/////////////////// Now, find a way to clear the content after the copying is done.
if(copyVar){
var first = ss.getSheetByName("Sheet1");
1 message moved from JavaScript
 
5 hours later…
09:16
How would you write this more elegant?
if (size === 50) {
style.width = windowWidth / 2;
} else if (size === 70) {
style.width = (windowWidth / 3) * 2;
} else if (size === 30) {
style.width = windowWidth / 3;
}
1 message moved from JavaScript
How would you write this more elegant?
if (size === 50) {
style.width = windowWidth / 2;
} else if (size === 70) {
style.width = (windowWidth / 3) * 2;
} else if (size === 30) {
style.width = windowWidth / 3;
}
1 message moved from JavaScript
 
7 hours later…
16:40
hi! ... bye!
 
2 hours later…
```
fetch('https://www.googleapis.com/oauth2/v4/token', {
method: 'POST',
body: tokenRequestBody,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
.then(response => response.json())
.then(jsonData => {gapiToken=jsonData.access_token; startListener(); })
.catch(err => {});

```
1 message moved from JavaScript
 
1 hour later…

« first day (2603 days earlier)      last day (1514 days later) »