Skip to content

Commit

Permalink
I think I have a first working copy of the game.
Browse files Browse the repository at this point in the history
  • Loading branch information
bennadel committed Jun 1, 2012
1 parent 7a064f9 commit 70313c5
Show file tree
Hide file tree
Showing 6 changed files with 1,106 additions and 5 deletions.
30 changes: 29 additions & 1 deletion wwwroot/Application.cfc
Expand Up @@ -16,4 +16,32 @@
/>


</cfcomponent>
<cffunction
name="onError"
access="public"
returntype="boolean"
output="true"
hint="I handle any errors that have bubbled up through the application.">

<!--- Define arguments. --->
<cfargument
name="error"
type="any"
required="true"
hint="I am the error object / exception."
/>

<p>
Oops, something went wrong.
</p>

<!--- Stop any further processing. --->
<cfabort />

<!--- Return True to override the error condition. --->
<cfreturn true />

</cffunction>


</cfcomponent>
4 changes: 2 additions & 2 deletions wwwroot/css/console.css
Expand Up @@ -7,7 +7,7 @@ body {

div.introduction {
background-color: #F0F0F0 ;
display: none ;
display: block ;
height: 400px ;
text-align: center ;
width: 545px ;
Expand Down Expand Up @@ -163,7 +163,7 @@ div.console > form.controls button.skip {

div.gameOver {
background-color: #F0F0F0 ;
display: block ;
display: none ;
height: 400px ;
text-align: center ;
width: 545px ;
Expand Down
27 changes: 25 additions & 2 deletions wwwroot/index.cfm
@@ -1,14 +1,37 @@

<!--- Reset the output buffer. --->
<cfcontent type="text/html; charset=utf-8" />

<!doctype html>
<html>
<head>
<title>Regular Expression Day 2012 (5th Annual!!)</title>

<!-- Fonts and styles. -->
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,300,200,700"></link>
<link rel="stylesheet" type="text/css" href="./css/console.css"></link>

<!-- Libraries and modules. -->
<script type="text/javascript" src="./js/lib/jquery/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="./js/lib/json2.js"></script>
<script type="text/javascript" src="./js/app.js"></script>
</head>
<body>

<!-- Define the patterns to be used in the game. -->
<script id="patternData" type="text/plain">
Hello
Hel+o
(Dog|Cat)
Ba(na){2}
Ohm{3,5}
[aeiou]+
\W\w\W
</script>


<!-- BEGIN: Introduction View. -->
<div class="introduction">

Expand Down Expand Up @@ -45,7 +68,7 @@

<div class="timer">

Time Remaining: <span class="remaining">2:00</span>
Time Remaining: <span class="remaining">0:00</span>

<span class="reset">
( <a href="##">Start Over</a> )
Expand Down Expand Up @@ -80,7 +103,7 @@
( Hit Enter Key )
</button>

<button class="skip">
<button type="submit" class="skip">
Skip
</button>

Expand Down

0 comments on commit 70313c5

Please sign in to comment.