rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 19ccf052e31fa5d3678f0f10475b7dc19c22db9b
parent bc89c815dd68c2355731181fb2f6ef3d5b50d429
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 20 Dec 2014 17:47:18 +0100

add php for tests

Diffstat:
Athemes/jumbotron/test.php | 46++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+), 0 deletions(-)

diff --git a/themes/jumbotron/test.php b/themes/jumbotron/test.php @@ -0,0 +1,45 @@ +<html> +<head> +<script type="text/javascript"> + function hideElementByVisible(obj) { + document.getElementById(obj).style.visibility = "hidden"; + } + + function showElementByVisible(obj) { + document.getElementById(obj).style.visibility = "visible"; + } + + function hideElementByDisplay(obj) { + document.getElementById(obj).style.display = "none"; + } + + function showElementDisplay(obj) { + document.getElementById(obj).style.display = "inline"; + } + + function showElementByDisplay(obj,prop) { + if(prop == "block") { + document.getElementById(obj).style.display = "block"; + } + else if(prop == "inline") { + document.getElementById(obj).style.display = "inline"; + } + } + + +</script> +</head> +<body> +<input type="text" name="txtname" id="txtname" value="TextBox1" /> +<input type="text" name="txtname1" id="txtname1" value="TextBox2" /><br /> +Visible:<br /> +<input type="button" value="Hide Element - TextBox1" onClick="hideElementByVisible('txtname');" /> +<input type="button" value="Show Element - TextBox1" onClick="showElementByVisible('txtname');" /><br /><br /> +Display:<br /> +<input type="button" value="Hide Element - TextBox1" onClick="hideElementByDisplay('txtname');" /> +<input type="button" value="Show Element - TextBox1" onClick="showElementDisplay('txtname');" /><br /><br /> + +Paragraph Show<br /> +<input type="button" value="Show Element With Paragraph - TextBox2" onClick="showElementByDisplay('txtname','block');" /> +</body> +</html> +\ No newline at end of file