Skip to content

Commit

Permalink
Click to play
Browse files Browse the repository at this point in the history
  • Loading branch information
ripper234 committed Jan 6, 2012
1 parent c08b26d commit d3872c1
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 65 deletions.
33 changes: 18 additions & 15 deletions app/views/Application/index.html
Expand Up @@ -3,7 +3,7 @@
#{/set}
#{extends 'main.html' /}
#{set title:'Bitcoin Hot Potato' /}

#{script 'index.js' /}
<h1>Who is the last sucker?</h1>

<img src="@{'/public/images/hot_potato.png'}"/>
Expand All @@ -20,20 +20,23 @@ <h1>Who is the last sucker?</h1>
</p>

<div id='pay'>
<p>To play, simply send at least ${transaction.minimalAmount} BTC to #{address transaction.publicAddress /}

#{if testnet}
<span class='warning'>
(The site is not yet functional, do not send any Bitcoins!)
*{(The site is currently in alpha testing, use a testnet address!)}*
</span>

#{/if}

.</p>

<p>We will send 99% of your payment to #{address transaction.payoutAddress /}, and put you at the front of the
line.</p>
<button id='to-play'>Click here to Play!</button>
<div id='play-instructions' class="hidden">
#{if testnet}
<span class='warning'>
(The site is not yet functional, do not send any Bitcoins!)
*{(The site is currently in alpha testing, use a testnet address!)}*
</span>
#{/if}

<ol>
<li>Send a payment of at least ${transaction.minimalAmount} to the </li>
<li>When we have at least 2 confirmations (average: 20 minutes), we'll accept the payment,
we will send 99% of your payment to #{address transaction.payoutAddress /}, and put you
at the front of the line.
</li>
</ol>
</div>
</div>

<br/><br/><br/>
Expand Down
8 changes: 4 additions & 4 deletions potato.iml
Expand Up @@ -22,21 +22,21 @@
<orderEntry type="module-library">
<library name="PlayFramework Dependencies">
<CLASSES>
<root url="file://C:/utils/play/play-1.2.4/framework/lib" />
<root url="file://C:/utils/play/1.2.x/framework/lib" />
</CLASSES>
<JAVADOC />
<SOURCES />
<jarDirectory url="file://C:/utils/play/play-1.2.4/framework/lib" recursive="false" />
<jarDirectory url="file://C:/utils/play/1.2.x/framework/lib" recursive="false" />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://C:/utils/play/play-1.2.4/framework/play-1.2.4.jar!/" />
<root url="jar://C:/utils/play/1.2.x/framework/play-1.2.x-c40cf37.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="file://C:/utils/play/play-1.2.4/framework/src" />
<root url="file://C:/utils/play/1.2.x/framework/src" />
</SOURCES>
</library>
</orderEntry>
Expand Down
64 changes: 18 additions & 46 deletions potato.ipr
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AntConfiguration">
<defaultAnt bundledAnt="true" />
</component>
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<resourceExtensions />
Expand Down Expand Up @@ -30,48 +27,23 @@
<component name="EntryPointsManager">
<entry_points version="2.0" />
</component>
<component name="IdProvider" IDEtalkID="E2E5BE728D4868FAE24497A36305F7A1" />
<component name="InspectionProjectProfileManager">
<profiles>
<profile version="1.0" is_locked="false">
<option name="myName" value="Project Default" />
<option name="myLocal" value="false" />
<inspection_tool class="JavaDoc" enabled="false" level="WARNING" enabled_by_default="false">
<option name="TOP_LEVEL_CLASS_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="" />
</value>
</option>
<option name="INNER_CLASS_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="" />
</value>
</option>
<option name="METHOD_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="@return@param@throws or @exception" />
</value>
</option>
<option name="FIELD_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="" />
</value>
</option>
<option name="IGNORE_DEPRECATED" value="false" />
<option name="IGNORE_JAVADOC_PERIOD" value="true" />
<option name="IGNORE_DUPLICATED_THROWS" value="false" />
<option name="IGNORE_POINT_TO_ITSELF" value="false" />
<option name="myAdditionalJavadocTags" value="" />
</inspection_tool>
</profile>
</profiles>
<option name="PROJECT_PROFILE" value="Project Default" />
<option name="USE_PROJECT_PROFILE" value="true" />
<version value="1.0" />
<component name="IdProvider" IDEtalkID="AA3C29EF5EEDEBA45F471F133005879B" />
<component name="JavadocGenerationManager">
<option name="OUTPUT_DIRECTORY" />
<option name="OPTION_SCOPE" value="protected" />
<option name="OPTION_HIERARCHY" value="true" />
<option name="OPTION_NAVIGATOR" value="true" />
<option name="OPTION_INDEX" value="true" />
<option name="OPTION_SEPARATE_INDEX" value="true" />
<option name="OPTION_DOCUMENT_TAG_USE" value="false" />
<option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false" />
<option name="OPTION_DOCUMENT_TAG_VERSION" value="false" />
<option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
<option name="OPTION_DEPRECATED_LIST" value="true" />
<option name="OTHER_OPTIONS" value="" />
<option name="HEAP_SIZE" />
<option name="LOCALE" />
<option name="OPEN_IN_BROWSER" value="true" />
</component>
<component name="Palette2">
<group name="Swing">
Expand Down Expand Up @@ -202,7 +174,7 @@
<component name="ProjectResources">
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_5" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK" />
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
Expand Down
5 changes: 5 additions & 0 deletions public/javascripts/index.js
@@ -0,0 +1,5 @@
$(function(){
$("#to-play").click(function(){
$("#play-instructions").toggle();
});
});
3 changes: 3 additions & 0 deletions public/stylesheets/main.css
Expand Up @@ -21,4 +21,7 @@
.warning {
font-weight: bold;
color: red;
}
.hidden {
display: none;
}

0 comments on commit d3872c1

Please sign in to comment.