function doGet(){ var html=HtmlService.createTemplateFromFile("search"); var check=html.evaluate(); var show =check.setXFrameOptionsMode(Htm1Service.XFrameOptionsMode.ALLOLLOWALL); return show; }
function search(searchtext) { var spreadsheetId = ''; var dataRage = 'Sheet1!A2:E' ; var data = Sheets.Spreadsheets.Values.get(spreadsheetId, dataRage).values;
var ar = []; data.forEach(function(f) { if (~f.indexOf(searchtext) ) { ar . push (f) ; } } ) : return ar; }
function preventFormSubmit() { var forms = document.querySelectorAll('form'); for (var i = 0; i < forms.length; i++) { forms[i].addEventListener( 'submit', function(event) { event.preventDefault(); } ); } } window.addEventListener("load", preventFormSubmit, true);