function loadData() google.script.run.withSuccessHandler(function(data) let html = '<table border="1" cellpadding="5"><tr>'; if(data.length > 0) data[0].forEach(h => html += `<th>$h</th>`); html += '</tr>'; for(let i=1; i<data.length; i++) html += '<tr>'; data[i].forEach(cell => html += `<td>$cell</td>`); html += '</tr>'; html += '</table>'; document.getElementById('dataDisplay').innerHTML = html; ).getPolyData();
Click File → New → HTML file , name it PolyTrackForm .
function addPolyItem(itemName, category, status, progress, dueDate, notes) const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); sheet.appendRow([ new Date(), itemName, category, status, progress, dueDate, notes ]); return "Added successfully!"; poly track google sites
This is a great request. "Poly Track" isn't a standard Google Sites feature, so to build it, you’ll need to combine (for the UI/container) with Google Sheets + Google Apps Script (for the tracking logic).
function doGet() return HtmlService.createHtmlOutputFromFile('PolyTrackForm') .setTitle('Poly Track Manager') .setSandboxMode(HtmlService.SandboxMode.IFRAME); function loadData() google
loadData(); </script> </body> </html>
<script> document.getElementById('polyForm').addEventListener('submit', function(e) e.preventDefault(); google.script.run .withSuccessHandler(function(msg) document.getElementById('result').innerHTML = "<p style='color:green'>✅ " + msg + "</p>"; document.getElementById('polyForm').reset(); loadData(); ) .addPolyItem( document.getElementById('itemName').value, document.getElementById('category').value, document.getElementById('status').value, document.getElementById('progress').value, document.getElementById('dueDate').value, document.getElementById('notes').value ); ); function doGet() return HtmlService
<!DOCTYPE html> <html> <head> <base target="_top"> <style> body font-family: Arial; padding: 20px; max-width: 600px; margin: auto; input, select, textarea width: 100%; padding: 8px; margin: 6px 0; button background: #1a73e8; color: white; padding: 10px; border: none; width: 100%; #result margin-top: 20px; </style> </head> <body> <h2>➕ Add Poly Track Item</h2> <form id="polyForm"> <label>Item Name</label><input type="text" id="itemName" required> <label>Category</label><select id="category"><option>Polymer</option><option>Polytechnic</option><option>Polygon</option><option>Other</option></select> <label>Status</label><select id="status"><option>Not Started</option><option>In Progress</option><option>Completed</option></select> <label>Progress (%)</label><input type="number" id="progress" min="0" max="100"> <label>Due Date</label><input type="date" id="dueDate"> <label>Notes</label><textarea id="notes"></textarea> <button type="submit">Add to Poly Track</button> </form> <div id="result"></div> <h3>📊 Live Poly Data</h3> <div id="dataDisplay"></div>
macaronics.net 는 그어떠한 동영상, 이미지, 파일등을 직접적으로 업로드 제공을 하지 않습니다. 페이스북, 트위터 등 각종 SNS 처럼 macaronics.net 는 웹서핑을 통하여 각종 페이지위치등을 하이퍼링크, 다이렉트링크, 직접링크등으로 링크된 페이지 주소만을 수집 저장하여 제공하고 있습니다. 저장된 각각의 주소에 연결된 페이지등은 그 페이지에서 제공하는 "서버, 사이트" 상황에 따라 페이지와 내용이 삭제 중단 될 수 있으며 macaronics.net 과는 어떠한 연관 관련이 없음을 알려드립니다. 또한, 저작권에 관련된 문제있는 글이나 기타 저작권에 관련된 문제가 있는 것은 연락주시면 바로 삭제해 드리겠습니다.