javascript 如何在 Google 表单中为学校测验添加计时器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16394435/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to add a timer to Google Forms for a School Quiz?
提问by Weej Jamal
We made an English Language Test made using Google Forms which is split into 3 sections.
我们使用 Google Forms 进行了英语语言测试,该测试分为 3 个部分。
We would like to be able to set a time on each section (e.g. Section A = 10 min, Section B = 10 min Section C = 40 min).
我们希望能够为每个部分设置时间(例如,A 部分 = 10 分钟,B 部分 = 10 分钟,C 部分 = 40 分钟)。
Also, We would like the student to be able to see the countdown on each section they're doing, Is this at all possible in google-forms?
此外,我们希望学生能够看到他们正在做的每个部分的倒计时,这在谷歌表单中是否可能?
回答by David Tew
Nothing like that available at the present time in Google Forms. You might like to wait a couple of weeks since something about scripting forms is going to be announced in the google yearly conference, Google I/O. See here: https://developers.google.com/events/io/sessions/327782631
目前在 Google 表单中没有类似的内容。您可能需要等待几周,因为有关脚本表单的一些内容将在 google 年度会议 Google I/O 上公布。请参阅此处:https: //developers.google.com/events/io/sessions/327782631
Update: Still nothing available within script wrt this question even after all this time. Please check Rubén answer which gives reasons (and some options).
更新:即使过了这么久,脚本中仍然没有可用的内容来回答这个问题。请检查鲁本回答,其中给出了原因(和一些选项)。
回答by MASBHA NOMAN
You can use Timify.me add-ons. It's easy to use and looks good as well.
Pros:
- timmer shows on the top of the page
- triggers the form to close upon timeout
Cons:
- only paid version allows you to set logo, text, design and webcam tracking
- You can't customize the time countdown section-wise, countdown as a whole submission
note: you need to configure timify.me with a token from timify.me web app
您可以使用 Timify.me 插件。它易于使用并且看起来也不错。
优点:
- 计时器显示在页面顶部
- 触发表单在超时时关闭
缺点:
- 只有付费版本允许您设置徽标、文本、设计和网络摄像头跟踪
- 您不能按部分自定义时间倒计时,倒计时整体提交
注意:您需要使用来自 timify.me 网络应用程序的令牌配置 timify.me
回答by Rubén
The Google Forms editor doesn't allow to add custom JavaScript, so it's not possible to add a timer directly to the form.
Google 表单编辑器不允许添加自定义 JavaScript,因此无法直接向表单添加计时器。
One alternative is to disable form responses submissions programmatically by using the Google Apps Script's Forms Service, specifically by stop accepting responses through the setAcceptingResponses(enabled)method.
一种替代方法是使用 Google Apps 脚本的Forms Service以编程方式禁用表单响应提交,特别是通过setAcceptingResponses(enabled)方法停止接受响应。
A word of caution regarding the use of time-driven triggers: The time that a script rans could be slightly randomized.
关于使用时间驱动触发器的注意事项:脚本运行的时间可能会稍微随机化。
By the way Google Forms now have special features for creating quizzes, see Create & grade quizzes with Google Forms. Hopefully a set timer feature will be available soon.
顺便说一下,Google 表单现在具有用于创建测验的特殊功能,请参阅使用 Google 表单创建和评分测验。希望设置定时器功能将很快可用。
回答by Vamsi
I was searching for a similar answer.
我正在寻找类似的答案。
Weej jamal- One way is to use Qualtrics. It has a "timing" question which can automatically submit the page once the time is complete.
Weej jamal- 一种方法是使用 Qualtrics。它有一个“计时”问题,可以在时间完成后自动提交页面。
So, if your sections can be placed in 3 different pages, its quite easy: Place a timing question on the top of each section with the time settings.
因此,如果您的部分可以放置在 3 个不同的页面中,那就很容易了:在每个部分的顶部放置一个时间问题,并附上时间设置。