eHQ coding examples and resources

Share eHQ coding examples and resources on Facebook Share eHQ coding examples and resources on Twitter Share eHQ coding examples and resources on Linkedin Email eHQ coding examples and resources link

How to do coding in eHQ!

  1. When entering code into eHQ you must first toggle on the code view by clicking the code button: </>
  2. You then need to copy and paste in your code, make any edits you need to customise the code – I suggest doing those edits in the word document first
  3. You then need to toggle off the code button
  4. Finally, please click save changes (blue button at bottom of editor)
  5. NOTE: you cannot save the code changes successfully if the code view is still showing


Manually entering in a Title attribute into a video iFrame:

A title attribute is a short piece of code you need to enter within the iFrame <iframe>iframe content; title="title of video"</iframe>

Accordion code

Disclaimer

This publication avoids the use of legal language, with information about the law summarised or expressed in general statements. The information in this document should not be relied upon as a substitute for professional legal advice. For access to legislation in force in NSW go to the official NSW Government website for online publication of legislation at www.legislation.nsw.gov.au

Copyright Information

© State of New South Wales. You may copy, distribute, display, download and otherwise freely deal with this publication for any purpose provided that you attribute the Department of Customer Service as the owner. This publication is licensed under the Creative Commons Attribution 4.0 licence. For more information, visit www.customerservice.nsw.gov.au/copyright


Clickable buttons



Code to link the text on same page (create anchor-style links to headings)

Introduction

Discussion

Findings

Conclusion

Appendix


Introduction

Code to link the text on same page (create anchor-style links to headings)

Insert Code 1 in your contents / headings listing. Insert Code 2 into the heading you are linking to:

Code 1: <p><a href="#Introduction">Introduction</a></p>

Code 2: <p id="Introduction">Introduction</p>

The first code needs to be entered in the contents list of the code view and the second code needs to be entered for the detailed content.


Discussion

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Findings

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Conclusion

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Appendix

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  • Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  • Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
  • Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

How to do coding in eHQ!

  1. When entering code into eHQ you must first toggle on the code view by clicking the code button: </>
  2. You then need to copy and paste in your code, make any edits you need to customise the code – I suggest doing those edits in the word document first
  3. You then need to toggle off the code button
  4. Finally, please click save changes (blue button at bottom of editor)
  5. NOTE: you cannot save the code changes successfully if the code view is still showing


Manually entering in a Title attribute into a video iFrame:

A title attribute is a short piece of code you need to enter within the iFrame <iframe>iframe content; title="title of video"</iframe>

Accordion code

Disclaimer

This publication avoids the use of legal language, with information about the law summarised or expressed in general statements. The information in this document should not be relied upon as a substitute for professional legal advice. For access to legislation in force in NSW go to the official NSW Government website for online publication of legislation at www.legislation.nsw.gov.au

Copyright Information

© State of New South Wales. You may copy, distribute, display, download and otherwise freely deal with this publication for any purpose provided that you attribute the Department of Customer Service as the owner. This publication is licensed under the Creative Commons Attribution 4.0 licence. For more information, visit www.customerservice.nsw.gov.au/copyright


Clickable buttons



Code to link the text on same page (create anchor-style links to headings)

Introduction

Discussion

Findings

Conclusion

Appendix


Introduction

Code to link the text on same page (create anchor-style links to headings)

Insert Code 1 in your contents / headings listing. Insert Code 2 into the heading you are linking to:

Code 1: <p><a href="#Introduction">Introduction</a></p>

Code 2: <p id="Introduction">Introduction</p>

The first code needs to be entered in the contents list of the code view and the second code needs to be entered for the detailed content.


Discussion

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Findings

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Conclusion

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Appendix

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  • Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  • Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
  • Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Page last updated: 23 May 2022, 01:52 PM