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
function login(obj){ | |
event.preventDefault() | |
error.innerHTML = ""; | |
loadingStart() | |
if(userInput.value != text){ | |
error.innerHTML = "Captcha ไม่ถูกต้อง!!" | |
loadingEnd() | |
}else{ | |
google.script.run.withSuccessHandler((data)=>{ | |
if(data && data !== undefined && data.length != 0){ |
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
CDN ภาษาไทย DataTAble | |
https://datatables.net/plug-ins/i18n/Thai.html#CDN | |
------------------------------------------------------------------------------------------ | |
language:{ | |
url: "https://cdn.datatables.net/plug-ins/1.11.4/i18n/th.json" | |
}, | |
------------------------------------------------------------------------------------------ |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE html> | |
<html dir='LTR' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'> | |
<head> | |
<b:include data='blog' name='all-head-content'/> | |
<title><data:blog.pageTitle/></title> | |
<!-- Created by Artisteer v4.3.0.60745 --> | |
<meta content='initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width' name='viewport'/> | |
<b:skin><![CDATA[ |
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
Copy Sheet : https://docs.google.com/spreadsheets/d/1l-wdzwGpTwx7WMiHXdo7WKGdQAD1c0_f2z8-R8YVzck/copy | |
window.open("https://www.google.com/", "_blank",); | |
<!--Signin--> | |
<center> | |
<span id="spin1" class="spinner-grow spinner-grow-sm text-danger d-none" role="status" aria-hidden="true"></span> | |
<span id="spin2" class="spinner-grow spinner-grow-sm text-warning d-none" role="status" aria-hidden="true"></span> |
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
function doGet(e) { | |
return render("index"); | |
//return HtmlService.createHtmlOutputFromFile("index").setTitle('ระบบแจ้งอีเมล์โรงเรียน'); | |
} | |
function getCode(code) { | |
var url = "xxxxxxxxx"; | |
var ss = SpreadsheetApp.openByUrl(url); | |
var ws = ss.getSheetByName("การตอบแบบฟอร์ม 1"); | |
var data = ws.getRange(1, 2, ws.getLastRow(), ws.getLastColumn()).getDisplayValues(); |
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
function onFormSubmit() { | |
var form = FormApp.openById('1-P7h5C3FXEW9PDCF6uy6exMIWgKbcT3dg17txH-jsz0'); // ***ใส่ form id*** | |
var fRes = form.getResponses(); | |
var formResponse = fRes[fRes.length - 1]; | |
var itemResponses = formResponse.getItemResponses(); | |
var msg = 'ผลการสอบ:http://gg.gg/exam63'; msg +=//+ |
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
var ss = SpreadsheetApp.getActiveSpreadsheet() | |
var sheet = ss.getSheetByName("แผ่น1"); | |
function doPost(e) { | |
var data = JSON.parse(e.postData.contents) | |
var userMsg = data.originalDetectIntentRequest.payload.data.message.text; | |
var values = sheet.getDataRange().getDisplayValues() | |
let result = { | |
"fulfillmentMessages": [ | |
{ | |
"platform": "line", |
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 lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<base target="_top"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | |
<link href='https://fonts.googleapis.com/css?family=Sarabun' rel='stylesheet' type='text/css'> | |
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
function doGet(e) { | |
return render("index"); | |
//return HtmlService.createHtmlOutputFromFile("index").setTitle('ระบบแจ้งอีเมล์โรงเรียน สพป.ชัยภูมิ เขต 1'); | |
} | |
function getCode(code) { | |
var url = "https://docs.google.com/spreadsheets/d/1fzRHrFv7PEZ86qp_KKO492hbBeliWkjVTc9OczWi9mY/edit"; | |
var ss = SpreadsheetApp.openByUrl(url); | |
var ws=ss.getSheetByName('แผ่น1') | |
var ws1=ss.getSheetByName('เมือง'); |
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
var ss = SpreadsheetApp.openByUrl("##"); | |
var sheet = ss.getSheetByName("แผ่น1"); | |
function doPost(e) { | |
var data = JSON.parse(e.postData.contents) | |
var userMsg = data.originalDetectIntentRequest.payload.data.message.text; | |
var values = sheet.getRange(2, 2, sheet.getLastRow(),sheet.getLastColumn()).getValues(); | |
for(var i = 0;i<values.length; i++){ | |
if(values[i][0] == userMsg ){ |