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() | |
| .createMenu('MULTI DATA VALIDATION') | |
| .addItem('Open', 'openSidebar') | |
| .addToUi(); | |
| } | |
| function onInstall() { | |
| installEditTrigger(); | |
| 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 onOpen() { | |
| DocumentApp.getUi() | |
| .createMenu('ID-TO-IMAGE') | |
| .addItem('Run', 'runIdToImage') | |
| .addToUi(); | |
| } | |
| function runIdToImage() { | |
| var doc = DocumentApp.getActiveDocument(); | |
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() { | |
| DocumentApp.getUi() | |
| .createMenu('Multiple-Choice-Randomizer') | |
| .addItem('Run', 'randomizer') | |
| .addToUi(); | |
| } | |
| function randomizer() { | |
| var doc = DocumentApp.getActiveDocument(); | |
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 openTab() { | |
| var selection = SpreadsheetApp.getActiveSheet().getActiveCell().getValue(); | |
| var html = "<script>window.open('" + selection + "');google.script.host.close();</script>"; | |
| var userInterface = HtmlService.createHtmlOutput(html); | |
| SpreadsheetApp.getUi().showModalDialog(userInterface, 'Open Tab'); | |
| } |
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 cartSignup(event) { | |
| //this should be the calendar id you get from the settings page | |
| var CALENDAR_ID = '<<YOUR CALENDAR ID>>'; | |
| var responses = event.response.getItemResponses(); | |
| var cartResponses = []; | |
| //loop through the item responses and push them into the empty array |
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 rosterMaker() { | |
| //spreadsheet id of the rosters | |
| var SHEET_ID = FormApp.getActiveForm().getDestinationId(); | |
| var ss = SpreadsheetApp.openById(SHEET_ID); | |
| var form = FormApp.getActiveForm(); | |
| //get only the sheets with 'Roster' in the title | |
| var sheets = ss.getSheets() | |
| .filter(function(sheet) {return sheet.getName().match(/Roster/gi);}); | |
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
| /** | |
| * These simple triggers are available in Sheets, Docs, and Forms | |
| * Most of this information can be found: | |
| * https://developers.google.com/apps-script/guides/triggers/events | |
| */ | |
| function onOpen(e) { | |
| // { | |
| // authMode: 'LIMITED', | |
| // source: 'Spreadsheet' || 'Document' || 'Form', | |
| // user: '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 callColumnsByHeaders() { | |
| var ss=SpreadsheetApp.getActive(); | |
| var sh=ss.getActiveSheet(); | |
| var rg=sh.getDataRange(); | |
| var vA=rg.getValues(); | |
| var hA=vA[0]; //header row | |
| for(var i=1;i<vA.length;i++) | |
| { | |
| var 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
| 1Dfp01ngInSXArtAxyPJibt0erlyBAgJJL_5y8eiKcGw |
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
| // 'Stranger Things' alphabet wall - | |
| // Type or click to make the bulbs light up | |
| -var letters = {"row1":['a','b','c','d','e','f','g','h'],"row2":['i','j','k','l','m','n','o','p','q'],"row3":['r','s','t','u','v','w','x','y','z']} | |
| main.lights | |
| each row, i in letters | |
| ul.row(class=i) | |
| each letter in row | |
| li.item(id='item--' + letter) | |
| span.bulb | |
| span.letter= letter |