I have this code and it has been working for months but all of a sudden it stopped working and I can't figure out why. It will display nothing when it is embedded on a google site.
function doGet() {
return HtmlService.createHtmlOutputFromFile('220')
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
}
This then should get the .html file in the same script labeled 220.I will show it below.
<!DOCTYPE html>
<html>
<head>
<title>Campus Center Calendar</title>
<meta charset='utf-8' />
</head>
<body>
<p id="demo"></p>
<script>
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth();
month=month+1;
if (month < 10)
month = "0" + month;
var day= date.getDate();
if (day < 10)
day = "0" + day;
var datestring=year+month+day;
document.write('<iframe src="https://calendar.google.com/calendar/embed?height=600&wkst=1&bgcolor=%23FFFFFF&src=mc817dld6jbb91lku4cei8h9n7eriqbl%40import.calendar.google.com&color=%232952A3&ctz=America%2FNew_York&mode=DAY&dates='+datestring+'%2F'+datestring+'&showTz=0&showPrint=0&showTabs=0&showTitle=0&showNav=0&showDate=0&showCalendars=0" style="border-width:0" width="300" height="900" frameborder="0" scrolling="no"><\/iframe>');
</script>
</body>
</html>
This is supposed to let me embed a app script to google sites and when this runs make a iframe with the calendar being displayed in day view with the current date.
THANK YOU FOR THE HELP!