Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819202122232425262728
  1. /*
  2. # @name: main.js
  3. # @version: 0.1
  4. # @creation_date: 2022-04-07
  5. # @license: The MIT License <https://opensource.org/licenses/MIT>
  6. # @author: Simon Bowie <ad7588@coventry.ac.uk>
  7. # @purpose: JavaScript functions for various functions
  8. # @acknowledgements:
  9. */
  10. // Dynamic HTML forms based on dropdown menu
  11. $("#resource_type").change(function() {
  12. var $ = jQuery.noConflict();
  13. var resource_type = $(this).val();
  14. $(".resource_type_input").hide("fast", function() {
  15. $("#resource_type_" + resource_type).show("slow");
  16. });
  17. });
  18. // Testing a couple of ways to expand text
  19. var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
  20. var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
  21. return new bootstrap.Tooltip(tooltipTriggerEl)
  22. })
  23. var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
  24. var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
  25. return new bootstrap.Popover(popoverTriggerEl)
  26. })