This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
en:create:timer-display [12.01.2016 09:21] – [Implementation] Update admin | en:create:timer-display [12.01.2016 09:27] – [Show Other Content] admin | ||
---|---|---|---|
Line 46: | Line 46: | ||
<code html> | <code html> | ||
- | <div id="myObjective"> | + | <div id="myObject"> |
< | < | ||
< | < | ||
Line 56: | Line 56: | ||
<code html> | <code html> | ||
- | <div id="myQuestion"> | + | <div id="myObject"> |
</ | </ | ||
Line 64: | Line 64: | ||
**Tip:** This is not necessary for questions because they already have an HTML ID ([[: | **Tip:** This is not necessary for questions because they already have an HTML ID ([[: | ||
+ | |||
+ | The HTML/ | ||
+ | |||
+ | <code html> | ||
+ | <script type=" | ||
+ | <!-- | ||
+ | |||
+ | // Funktion zum Einblenden der Knöpfe | ||
+ | function showContent() { | ||
+ | var content = document.getElementById(" | ||
+ | // Den normalen Anzeigemodus wiederherstellen | ||
+ | content.style.display = ""; | ||
+ | } | ||
+ | |||
+ | // Nach dem Laden der Fragebogen-Seite das Script starten | ||
+ | SoSciTools.attachEvent(window, | ||
+ | function() { | ||
+ | // Objekt heraussuchen | ||
+ | var content = document.getElementById(" | ||
+ | // Ausblenden | ||
+ | content.style.display = " | ||
+ | // Den Timer starten | ||
+ | window.setTimeout(showContent, | ||
+ | } | ||
+ | ); | ||
+ | |||
+ | // --> | ||
+ | </ | ||
+ | </ | ||