This file contains hidden or 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
| // ******************* | |
| // Contributors: | |
| // - Andrew Smith (@AndrewSouthpaw) | |
| // - Shaun Mosley (@Shaunm44) | |
| // ******************* | |
| // This setup will allow you to synchronize personal events from one calendar (the "secondary calendar") | |
| // to another calendar, e.g. work (the "primary calendar"), but obfuscate the details. Then your coworkers | |
| // know when you're busy but don't get to see the personal details. | |
| // |
This file contains hidden or 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
| var source_calendars = [ | |
| 'xxx', | |
| ]; | |
| function sync() { | |
| var today = new Date(); | |
| var enddate = new Date(); | |
| enddate.setDate(today.getDate()+90); // how many days in advance to monitor and block off time | |
| var sourceEvents = []; |