styles_and_script
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| styles_and_script [2022/12/02 10:53] – ↷ Page moved from playground:styles_and_script to styles_and_script tadachi | styles_and_script [2023/09/26 08:22] (current) – [Use JS to add a link to the project footer] jsmith | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| JavaScript (JS or JQuery) is described as the programming language of the web and can be used to introduce new functions to your project. | JavaScript (JS or JQuery) is described as the programming language of the web and can be used to introduce new functions to your project. | ||
| - | - In the HTML Source | + | - In the HTML [[source_view|source view]] |
| - In the optional property Script box: | - In the optional property Script box: | ||
| - at project, where the function(s) will apply to all relevant pages in the project | - at project, where the function(s) will apply to all relevant pages in the project | ||
| Line 34: | Line 34: | ||
| * Add the Styles optional property to your project' | * Add the Styles optional property to your project' | ||
| - | * Add this CSS code to the Styles box, to create a container class to go around the iframe code: | + | * Add this CSS code to the Styles box, to create a container class to go around the iframe code: <code css>.container {position: relative; |
| - | * %%.container {position: relative; | + | * Then add this CSS to style the iframe so that it fits inside the container with full height and width: |
| - | * Then add this CSS to style the iframe so that it fits inside the container with full height and width: | + | |
| - | * %%.responsive-iframe {position: absolute; | + | |
| * In HTML view in your Xerte page text editor: | * In HTML view in your Xerte page text editor: | ||
| * Paste in the iframe embed code | * Paste in the iframe embed code | ||
| - | * Surround the iframe embed code with: <div class=" | + | * Surround the iframe embed code with: <code css><div class=" |
| - | * Add this class to the iframe code: class=" | + | * Add this class to the iframe code: <code css>class=" |
| - | * It should look like this: | + | * It should look like this: <code css><div class=" |
| - | * %%<div class=" | + | |
| ==== Add CSS to format the Page Timer ==== | ==== Add CSS to format the Page Timer ==== | ||
| * Add the Styles optional property to your project' | * Add the Styles optional property to your project' | ||
| - | * Add this CSS code to the Styles box, to format the timer. | + | * Add this CSS code to the Styles box, to format the timer. |
| - | * # | + | |
| ==== Use JS to add a link to the project footer ==== | ==== Use JS to add a link to the project footer ==== | ||
| * Add the Script optional property to your project. | * Add the Script optional property to your project. | ||
| - | * Add this code to the Script box, replacing the "add url here" with the link you want to add: | + | * Add this code to the Script box, replacing the "add url here" with the link you want to add: <code javascript> |
| - | * %%$('# | + | |
| + | {{tag> | ||
styles_and_script.1669978428.txt.gz · Last modified: by tadachi
