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 [21.12.2014 12:04] – [Show Other Content] alexander.ritter | en:create:timer-display [12.01.2016 09:21] – [Implementation] Update admin | ||
---|---|---|---|
Line 17: | Line 17: | ||
- | Only a text element with the following content (created in **Text Elements and Labels**) is required. This text elements is dragged into the respective questionnaire page when composing the questionnaire. | + | Only a text element with the following content (created in **Text Elements and Labels**, //Display// as "HTML code") is required. This text elements is dragged into the respective questionnaire page when composing the questionnaire. |
<code javascript> | <code javascript> | ||
Line 23: | Line 23: | ||
<!-- | <!-- | ||
- | // Function to show the buttons | + | // Nach dem Laden der Seite das Script starten |
- | function showButtons() { | + | |
- | var buttons = document.getElementById(" | + | |
- | // Restore normal display mode (show buttons) | + | |
- | buttons.style.display = ""; | + | |
- | } | + | |
- | + | ||
- | // Start the script after the page is loaded | + | |
SoSciTools.attachEvent(window, | SoSciTools.attachEvent(window, | ||
function() { | function() { | ||
- | // Search the buttons | + | // Die Knöpfe ausblenden |
- | | + | |
- | // Hide the buttons | + | // Den Timer starten |
- | buttons.style.display = " | + | window.setTimeout(SoSciTools.submitButtonsDisplay, 60000); // Nach 1 Min = 60.000 ms |
- | // Start the time | + | |
- | window.setTimeout(showButtons, 60000); // after 1 Min = 60.000 ms | + | |
} | } | ||
); | ); | ||
Line 46: | Line 37: | ||
</ | </ | ||
+ | **Note:** This JavaScript code makes use of the SoSci Survey specific function '' | ||
===== Show Other Content ===== | ===== Show Other Content ===== | ||