Skip to content

Commit e69f427

Browse files
authored
Update script.gs
Fix issues provided by KorkhovPavel +Add "start" and "finish" to the getCell, getColumn, and getRow HTML headers. -Fix the html title name from "Get Row Data" to "Get Column Data" in get column data mode.
1 parent 4e472c9 commit e69f427

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

script.gs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Author: Teeraphat Kullanankanjana
3-
Version: 0.0.2
3+
Version: 0.0.3
44
*/
55

66
function doGet(e) {
@@ -108,7 +108,7 @@ function doGet(e) {
108108
var cell = sheet.getRange(row, column);
109109
var value = cell.getValue();
110110

111-
var html = "<html><head><title>Get The data </title></head><body><h1>" + value + "</h1></body></html>";
111+
var html = "<html><head><title>Get The data </title></head><body><h1>start</h1><h1>" + value + "</h1><h1>finish</h1></body></html>";
112112
return HtmlService.createHtmlOutput(html);
113113
}
114114

@@ -123,7 +123,7 @@ function doGet(e) {
123123
heading += values[i] + " ";
124124
}
125125

126-
var html = "<html><head><title>Get Row Data</title></head><body><h1>" + heading + "</h1></body></html>";
126+
var html = "<html><head><title>Get Row Data</title></head><body><h1>start</h1><h1>" + heading + "</h1><h1>finish</h1></body></html>";
127127
return HtmlService.createHtmlOutput(html);
128128
}
129129

@@ -137,7 +137,7 @@ else if (mode == "getColumn") {
137137
heading += values[i] + " ";
138138
}
139139

140-
var html = "<html><head><title>Get Row Data</title></head><body><h1>" + heading + "</h1></body></html>";
140+
var html = "<html><head><title>Get Column Data</title></head><body><h1>start</h1><h1>" + heading + "</h1><h1>finish</h1></body></html>";
141141
return HtmlService.createHtmlOutput(html);
142142

143143
}

0 commit comments

Comments
 (0)