This file contains 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> | |
<base target="_top"> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> | |
<script src="https://code.jquery.com/jquery-3.6.0.js"></script> | |
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.0/themes/base/jquery-ui.css"> | |
</head> | |
<body> | |
<div class="container"> |
This file contains 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
//// start Frontend Library code.gs //////////////////////////////////////////////////////////// | |
function includeLibrary(){ | |
return HtmlService.createHtmlOutputFromFile("library-js").getContent(); | |
} | |
//// end Frontend Library code.gs ////////////////////////////////////////////////////////////// | |
//// start Frontend Library library-js.html /////////////////////////////////////////////////// |
This file contains 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
//Code.gs | |
const spreadsheetId = 'Your Google Sheet ID'; | |
const ss = SpreadsheetApp.openById(spreadsheetId); | |
function doGet(e){ | |
return HtmlService.createTemplateFromFile("main").evaluate() | |
.setTitle("User Booking") | |
.addMetaTag('viewport', 'width=device-width, initial-scale=1') | |
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL); | |
} |
This file contains 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
//code.gs | |
const spreadsheetId = 'Your Google Sheet ID'; | |
const ss = SpreadsheetApp.openById(spreadsheetId); | |
function doGet(e){ | |
return HtmlService.createTemplateFromFile("main").evaluate() | |
.setTitle("Admin Booking") | |
.addMetaTag('viewport', 'width=device-width, initial-scale=1') | |
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL); | |
} |
This file contains 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
//Code.gs | |
var ss = SpreadsheetApp.getActive(); | |
var folderId = "Your Google Drive Folder ID"; | |
var sheet = ss.getSheets()[0]; | |
var token='Your Line Token'; | |
function doGet(e) { | |
return HtmlService.createTemplateFromFile("form").evaluate() | |
.setTitle("ฟอร์มรายงานจุดเสี่ยง") | |
.addMetaTag('viewport', 'width=device-width, initial-scale=1') |
This file contains 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
//code.gs | |
const spreadsheetId = '1eFacH7dqvPoT-LzWXQVNmTvpyJJ-B88y-dNlzHiro0U'; | |
const ss = SpreadsheetApp.openById(spreadsheetId); | |
function doGet(e) { | |
var tmp = HtmlService.createTemplateFromFile("index"); | |
return tmp.evaluate() | |
.setTitle("ค้นหาง่ายๆ") | |
.addMetaTag('viewport', 'width=device-width, initial-scale=1') | |
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL); |
This file contains 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
//Code | |
var url = "xxx"; | |
var ss = SpreadsheetApp.openByUrl(url); | |
function doGet(e) { | |
return loadForm() | |
.setTitle("ฟอร์มรีเฟอร์") | |
.addMetaTag('viewport', 'width=device-width, initial-scale=1') | |
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL); |
This file contains 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
//Code.gs | |
var url = "xxx"; | |
var ss = SpreadsheetApp.openByUrl(url); | |
function doGet(e) { | |
var tmp = HtmlService.createTemplateFromFile("uform"); | |
return tmp.evaluate() | |
.setTitle("เลขหนังสือ") | |
.addMetaTag('viewport', 'width=device-width, initial-scale=1') | |
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL); |