google-sites

Google App Script background transparent with HtmlService

风流意气都作罢 提交于 2019-11-30 14:44:53
I'm using google apps script for a google site, and i can easily create a transparent background by using UiApp.createApplication().setStyleAttribute("background","transparent") . Now, I'm trying to create the script using HtmlService.createHtmlOutput() , but i can't figure out how to make the app's background transparent. any ideas? If your Site background is a Theme, I can't find a way to match the Apps Script Gadget background to the theme. But if the Site background is a solid color, there is a way to match the Gadget with HTML Service to the Site color. You must set the background color

Is web development possible using Google Sites?

浪子不回头ぞ 提交于 2019-11-30 04:53:21
I have hosted a website. But now my client asks to change it to http://sites.google.com . They have registered their domain with Google. I logged in the site and saw the procedures to create a website from scratch. But is there any way to directly replace the site into google sites. Like, in my site, I have included CSS files in a folder called stylesheets/css and access it through the link tag . And there are several folders like that: images , scripts , etc. Now, if I have to transfer it to Google Sites, where do I create the folders and stuff? I have the priviliges to login to the admin

Is web development possible using Google Sites?

孤人 提交于 2019-11-29 02:27:28
问题 I have hosted a website. But now my client asks to change it to http://sites.google.com. They have registered their domain with Google. I logged in the site and saw the procedures to create a website from scratch. But is there any way to directly replace the site into google sites. Like, in my site, I have included CSS files in a folder called stylesheets/css and access it through the link tag . And there are several folders like that: images , scripts , etc. Now, if I have to transfer it to

JQuery Mobile with Google Apps Script

可紊 提交于 2019-11-29 02:23:15
I've made a Google Apps Script deployed as a standalone web app using HTMLService that provides a simple front end to enter budget data into a Google Spreadsheet. I'm using JQuery Mobile for some of the javascript as well as to style it a mobile-friendly manner, as my main use case for this app is to enter purchases from my mobile. My problem is that on a mobile browser, the app doesn't scale properly. It's the width of the browser, but it's as if it was "zoomed out". All the controls become essentially unusable on mobile. If the script is embedded in a Google Site, it scales properly, but I'd

Google App Scripts For New Google Sites Release

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 12:44:18
Google revamped their sites platform in November 2016, however there is no longer an option for writing Google Apps Scripts for it, as far as I'm aware. Has Google announced when they will incorporate this into their new sites platform? Any ideas? I also look for this, but for now no prediction. We're just sure that Google Apps Script does not yet work with New Google Sites, as we see here on the official site: https://developers.google.com/apps-script/reference/sites/ Apps Script cannot currently access or modify New Google Sites In case ppl are still looking, it's now possible to embed apps

Automatically Redirecting to a Page

余生长醉 提交于 2019-11-28 08:34:10
Inside a button click handler, I'm creating a new web page like so: var page = SitesApp.getPageByUrl(url).createPageFromTemplate(title, name, template); and I want to redirect the user automatically to that page. I wasn't able to find much information, can this be done? This cannot be done in UiApp but it's doable in HtmlService: function doGet() { return HtmlService.createHtmlOutput( "<form action='http://www.google.com' method='get' id='foo'></form>" + "<script>document.getElementById('foo').submit();</script>"); } This should be easier; please file a feature request in the issue tracker and

How do I get an access token using UrlFetchApp with GAS

落花浮王杯 提交于 2019-11-27 19:56:25
I am learning how to use the REST endpoints with Google Apps Script (GAS) and want to get the access token like the example here I'm using Google Sites, here is the script function doGet(e) { var app = UiApp.createApplication().setTitle('test OAuth 2.0'); var mainPanel = app.createVerticalPanel(); app.add(mainPanel); var url = "https://accounts.google.com/o/oauth2/auth" + "?scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile" + "&state=/profile" + "&redirect_uri=http://<mySite>.com/gas/home/oauth2apis" + "&response_type=token" + "&client_id

JQuery Mobile with Google Apps Script

為{幸葍}努か 提交于 2019-11-27 16:42:16
问题 I've made a Google Apps Script deployed as a standalone web app using HTMLService that provides a simple front end to enter budget data into a Google Spreadsheet. I'm using JQuery Mobile for some of the javascript as well as to style it a mobile-friendly manner, as my main use case for this app is to enter purchases from my mobile. My problem is that on a mobile browser, the app doesn't scale properly. It's the width of the browser, but it's as if it was "zoomed out". All the controls become

Google App Scripts For New Google Sites Release

≡放荡痞女 提交于 2019-11-27 07:15:46
问题 Google revamped their sites platform in November 2016, however there is no longer an option for writing Google Apps Scripts for it, as far as I'm aware. Has Google announced when they will incorporate this into their new sites platform? Any ideas? 回答1: I also look for this, but for now no prediction. We're just sure that Google Apps Script does not yet work with New Google Sites, as we see here on the official site: https://developers.google.com/apps-script/reference/sites/ Apps Script cannot

How do I use Google Apps Script to change a CSS page to one with inline styles?

旧城冷巷雨未停 提交于 2019-11-27 07:04:20
问题 Background... I am trying to write a Google Apps Script to get the content of a Google Doc as HTML and use that HTML to create or update a web page in Google Sites. I already know how to do this but the result is a web page that is stripped of almost all of its formatting. After looking at the html from the Google Doc, I see that it is not using inline styles and I believe that Google Sites requires inline styling. Anyone have a Google Apps Script that I can use to convert the CSS to inline