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
| // POST request | |
| var request = new XMLHttpRequest(); | |
| request.open('POST', '/my/url', true); | |
| request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); | |
| request.send(data); | |
| // GET request | |
| var request = new XMLHttpRequest(); | |
| request.open('GET', '/my/url', true); |
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
| //How to open the Script Editor | |
| //Sheets, Docs, and Forms | |
| //Start a new project in Sheets | |
| //Variables are the NOUNS (who, what, where) | |
| var exampleString = 'This is a string'; | |
| var exampleNumber = 123.45; | |
| var exampleArray = []; | |
| var exampleObject = {}; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <base target="_top"> | |
| <?!= HtmlService.createHtmlOutputFromFile('Stylesheet').setSandboxMode(HtmlService.SandboxMode.IFRAME).getContent() ?> | |
| </head> | |
| <body class="container"> | |
| <div class="row"> |
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
| /** | |
| # WeCreate Picture Citation Project for Joanne Schmutz | |
| ### Idea by Joanne Schmutz | |
| ### Coded by [@rheajt](http://jordanrhea.com) | |
| 1. Create a folder for the root of your project | |
| 2. Create a script file and copy each of the below files into the project | |
| 3. Create a spreadsheet in that directory and in the header row name each column as follows: | |
| * uploadedOn | |
| * 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
| function onOpen() { | |
| FormApp.getUi() | |
| .createAddonMenu() | |
| .addItem('Copy text into form', 'importText') | |
| .addToUi(); | |
| } | |
| function importText() { | |
| var commentModal = HtmlService | |
| .createHtmlOutputFromFile('Textbox') |
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 MW_KEY = ''; | |
| function onOpen() { | |
| DocumentApp.getUi() | |
| .createAddonMenu() | |
| .addItem('Get vocabulary words', 'openSidebar') | |
| .addToUi(); | |
| } | |
| function openSidebar() { |
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
| // the name of the label in your Gmail that you want to create a document for | |
| var LABEL = ''; | |
| // number of days to use if you set a trigger | |
| var DAYS = 1; | |
| // email address of person to send the link to your document | |
| var EMAIL = 'TEST@EXAMPLE.COM'; | |
| // the function that creates the document and emails you a link |
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() { | |
| SpreadsheetApp.getUi() | |
| .createAddonMenu() | |
| .addItem('Open Sidebar', 'openSidebar') | |
| .addToUi(); | |
| } | |
| function onInstall() { | |
| onOpen(); | |
| } |
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 doGet() { | |
| return HtmlService.createTemplateFromFile('ReadingLog').evaluate().setTitle('Reading Log'); | |
| } | |
| function getUser() { | |
| var ss = SpreadsheetApp.openById(SPREADSHEET_ID); | |
| var activeUser = Session.getActiveUser().getEmail(); | |
| var studentInfo = ss.getSheetByName(STUDENT_INFO).getDataRange().getValues(); |
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 createFolders(student) { | |
| var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
| var emails = sheet.getRange(2, student, sheet.getLastRow() - 1, sheet.getLastColumn()); | |
| var data = emails.getValues(); | |
| for(var i = 0; i < data.length; i++) { | |
| if(!data[i][2]) { | |