[ | |
{ | |
"url": "http://money.cnn.com", | |
"rss": "http://rss.cnn.com/rss/money_topstories.rss" | |
}, | |
{ | |
"url": "http://thehill.com", | |
"rss": "http://thehill.com/rss/syndicator/19110" | |
}, | |
{ |
This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form>
following the example by Martin Hawksey
You should be able to just open index.html
in your browser and test locally.
However if there are some permissions errors you can make a quick html server with python
. Open terminal and cd to the directory where the gist files are located and enter python -m SimpleHTTPServer
. By default this creates a local server at localhost:8000
var $form = $('form#test-form'), | |
url = 'https://script.google.com/macros/s/abcdefghijklmnopqrstuvwxyz1234567890/exec' | |
$('#submit-form').on('click', function(e) { | |
e.preventDefault(); | |
var jqxhr = $.ajax({ | |
url: url, | |
method: "GET", | |
dataType: "json", | |
data: $form.serializeObject() |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<!--To get more Meta Tags visit here: https://gist.github.com/MicBrain/46a9723158307fd30db66a4b2af85411 --> | |
<meta charset="utf-8"> | |
<meta http-equiv="content-type" content="text/html"> | |
<title> The name of your website. </title> |
#!/bin/bash | |
# Credit to David Walsh for the original script <https://davidwalsh.name/bitcoin> | |
# The improved version of David's script doesn't go back to prompt. It keeps refreshing the prices every 5 seconds. | |
# Prices are in USD, EUR & GBP (in real time) | |
# curl must be installed in terminal | |
clear | |
echo "Coindesk BTC: " | |
echo " USD EUR GBP " | |
while [ 1 ] |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="author" content=""> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form>
following the example by Martin Hawksey
Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.
You should be able to just open index.html
in your browser and test locally.