summaryrefslogtreecommitdiffstats
path: root/media/news-javascript.php
diff options
context:
space:
mode:
Diffstat (limited to 'media/news-javascript.php')
-rw-r--r--media/news-javascript.php20
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