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
| function onOpen() { | |
| var menuEntries = [ {name: "Create Diary Doc from Sheet", functionName: "createDocFromSheet"}]; | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| ss.addMenu("Fitness Diaries", menuEntries); | |
| } | |
| function createDocFromSheet(){ | |
| var templateid = "1O4afl8SZmMxMFpAiN16VZIddJDaFdeRBbFyBtJvepwM"; // get template file id | |
| var FOLDER_NAME = "Fitness Diaries"; // folder name of where to put completed diaries | |
| // get the data from an individual user |
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 pages = SitesApp.getSite('example.com', 'mysite').getChildren(); | |
| var attachments = pages[0].getAttachments(); | |
| var date = attachments[0].getLastUpdated(); |
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 pages = SitesApp.getSite('example.com', 'mysite').getChildren(); | |
| var attachments = pages[0].getAttachments(); | |
| var description = attachments[0].getDescription(); |
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
| @import "compass"; | |
| $iconSpritePath: '../images/iconSprite.png'; | |
| // 1.0 Color Palette | |
| /* | |
| Logo | |
| $logoGray - Gray found in the RJM logo |
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
| <style type="text/css"> | |
| body | |
| { | |
| background-image: | |
| url("images/blu.gif") | |
| } | |
| </style> |
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
| <style type="text/css"> | |
| body {background-color: yellow} | |
| h1 {background-color: #00ff00} | |
| h2 {background-color: transparent} | |
| p {background-color: rgb(250,0,255)} | |
| </style> |
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
| .over{border:2px dotted red;width:320px;height:20px} | |
| .out{border:0px;width:320px;height:23px;padding-left:2px;padding-top:2px} |
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
| //This onOpen function adds a menu item | |
| function onOpen() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var searchMenuEntries = [ {name: "Update Contacts", functionName: "updateContacts"}]; | |
| ss.addMenu("Contacts", searchMenuEntries); | |
| } | |
| function updateContacts() { | |
| //Here we get the spreadsheet |
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
| /** | |
| * Create and share a personalized Google Doc that shows the user's itinerary. | |
| * | |
| * @param {Object} user An object that contains the user's name and email. | |
| * @param {String[][]} response An array of data for the user's session choices. | |
| */ | |
| function sendDoc_(user, response) { | |
| var doc = DocumentApp.create('Conference Itinerary for ' + user.name) | |
| .addEditor(user.email); | |
| var body = doc.getBody(); |
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
| /** | |
| * A set-up function that uses the conference data in the spreadsheet to create | |
| * Google Calendar events, a Google Form, and a trigger that allows the script | |
| * to react to form responses. | |
| */ | |
| function setUpConference_() { | |
| if (ScriptProperties.getProperty('calId')) { | |
| Browser.msgBox('Your conference is already set up. Look in Google Drive!'); } | |
| var ss = SpreadsheetApp.getActive(); |
NewerOlder