project.js 896 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Used to resize the iframe for embebbed projects.
  3. *
  4. * @param obj The iframe.
  5. */
  6. function resizeIframe(obj) {
  7. obj.style.height = (obj.contentWindow.document.body.scrollHeight + 100) + 'px';
  8. obj.style.width = (obj.contentWindow.document.body.scrollWidth + 100) + 'px';
  9. }
  10. function showAdvancedSearch() {
  11. indicator = document.getElementById('advanced_search_indicator');
  12. slid = document.getElementById('advanced_search_slider');
  13. cont = document.getElementById('advanced_search');
  14. if (indicator.value == 1){
  15. // Advanced search show. Hide it.
  16. indicator.value = 0;
  17. slid.src = '/img/misc/slid-right.png';
  18. cont.style.height = '0px';
  19. }
  20. else if (indicator.value ==0){
  21. // Advanced search hidden. Show it.
  22. indicator.value = 1;
  23. slid.src = '/img/misc/slid-down.png';
  24. cont.style.height = 'auto';
  25. }
  26. }