简体   繁体   English

Google Apps脚本的HTML翻译

[英]HTML translation for Google Apps Script

I am using a WYSIWYG editor to create a template for the html I would like for a container bound UI. 我正在使用WYSIWYG编辑器来为html创建模板,以用于容器绑定的UI。

I know nothing about html. 我对html一无所知。

I do know that google apps script(GAS) will not accept head/body shenanigans. 我确实知道Google Apps脚本(GAS)将不接受头部/身体的恶作剧。 I want to take: 我要拿:

<html>
<head>
<title></title>
</head>
<body>
<p><strong>Welcome to the project workflow environment!</strong></p>

<p>Please start by defining your project name.</p>

<p><input name="txtProjectName" type="text" /></p>

<p>&nbsp;<input name="cmdProjectSubmit" type="button" value="Submit" /></p>

<p>--------------------------------------------------------------</p>

<p>Please define your project starting point.</p>

<p><select name="cbPhase" size="1"><option value="0">Sales</option><option value="1">Operations ( Quote/ROM/BOM)</option><option value="2">Design Engineering</option><option value="3">Construction</option><option value="4">System Performance Engineering</option><option value="5">Maintenance</option></select></p>

<p><input name="cmdPhaseSubmit" type="button" value="Submit" /></p>

<p>&nbsp;</p>

<p>&nbsp;</p>
</body>
</html>

and turn it into something GAS will accept. 并将其转化为GAS可以接受的内容。

Here is an example of what GAS is looking for.... No head/body shenanigans. 这是GAS正在寻找的示例。...没有头部/身体的恶作剧。

<div id="wrapper">
<div>
<span>Let's get started with your workflow. First add an approver by entering their email address in the Approvers box and clicking the add button. When you are done adding approvers, click the Start Workflow button.</span>
</div> 
<br>
<div>
<span class="sectionHeader">Approvers</span><br>
<div id="approvers">
</div>
<div>
  <form id="addApprover">
    <input type="email" id="approver" placeholder="Email Address">
    <input type="submit" class="button blueButton" value="Add">
  </form>
</div>
</div>

<br>
<div class="center">
<span id="startButton" class="button redButton">Create Workflow</span>
</div>  
</div> 

I'd like to know how to take the html,head,title,body,pm and convert to the div and span ID that GAS wants. 我想知道如何将html,head,title,body,pm转换为GAS想要的div和span ID。

I'm willing to work for it if someone wants to point me in the right direction. 如果有人想指出正确的方向,我愿意为此而努力。 Why would I use one over the other? 为什么我会使用一个而不是另一个? CSS can look at the whole div id #wrapper and apply across everything right? CSS可以查看整个div ID #wrapper并应用于所有内容,对吗? Is there a direct translation? 有直接的翻译吗?

It looks like the span is text, and the form documents are setup such as to retain/record information. 看起来跨度是文本,并且设置了表单文档以保留/记录信息。

Pretty lost here. 这里很丢人。

You can start with deleting the <HTML> tags. 您可以从删除<HTML>标签开始。 Although, it seems like I've used those without any problems in the past. 虽然,似乎我过去使用这些都没有任何问题。 Google may just automatically strip them out or ignore them. Google可能会自动将其删除或忽略它们。 I don't know. 我不知道。 But I don't think it's any big deal. 但我认为这没什么大不了的。

There is nothing in the <head> tags. <head>标记中没有任何内容。

<head>
<title></title>
</head>

That's just empty markup. 那只是空的标记。 So, it's not doing anything. 因此,它什么也没做。 Just delete it. 只需删除它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM