diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-10-05 13:46:54 -0500 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-10-05 13:46:54 -0500 |
| commit | 5ed01bd42b0aaf222f3b04b611e31b3d0974b6a4 (patch) | |
| tree | e2adf4f018d79bce5853d42cdbda6c05c25955fa /media/news-javascript.php | |
| download | website-core-5ed01bd42b0aaf222f3b04b611e31b3d0974b6a4.tar.gz website-core-5ed01bd42b0aaf222f3b04b611e31b3d0974b6a4.zip | |
Initial import of static files
Diffstat (limited to 'media/news-javascript.php')
| -rw-r--r-- | media/news-javascript.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/media/news-javascript.php b/media/news-javascript.php new file mode 100644 index 0000000..60cf8ad --- /dev/null +++ b/media/news-javascript.php @@ -0,0 +1,20 @@ +<?php + // (c) 2014 Trinity Desktop Project + // All Rights Reserved + // Authors: Timothy Pearson and Calvin Morrison +?> + +<script type="text/javascript"> + function toggle(showHideDiv, switchTextDiv) { + var ele = document.getElementById(showHideDiv); + var text = document.getElementById(switchTextDiv); + if(ele.style.display == "block") { + ele.style.display = "none"; + text.innerHTML = "show all text of this entry"; + } + else { + ele.style.display = "block"; + text.innerHTML = "shrink entry"; + } + } +</script>
\ No newline at end of file |
