Created
February 7, 2015 19:59
-
-
Save cflove/66c991abb6177627bf9f to your computer and use it in GitHub Desktop.
Class-Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Untitled Document</title> | |
<style type="text/css"> | |
.result {font-family:Verdana; border-radius:10px; color:white; padding:10px} | |
.looser {background-color:black;} | |
.winner {background-color:red;} | |
</style> | |
</head> | |
<body> | |
<cfset a = randRange(10,12)> | |
Your Number is : <cfoutput>#a#</cfoutput> | |
<cfif a is 10> | |
<div class="result winner">You are a Winner!</div> | |
<cfelse> | |
<div class="result looser">Looser!</div> | |
</cfif> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment