[Toss-devel-svn] SF.net SVN: toss:[1282] trunk/Toss
Status: Beta
Brought to you by:
lukaszkaiser
|
From: <luk...@us...> - 2011-01-19 20:57:23
|
Revision: 1282
http://toss.svn.sourceforge.net/toss/?rev=1282&view=rev
Author: lukaszkaiser
Date: 2011-01-19 20:57:15 +0000 (Wed, 19 Jan 2011)
Log Message:
-----------
Some more html corrections.
Modified Paths:
--------------
trunk/Toss/WebClient/Login.js
trunk/Toss/WebClient/Style.css
trunk/Toss/WebClient/contact.html
trunk/Toss/WebClient/index.html
trunk/Toss/WebClient/profile.html
trunk/Toss/WebClient/register.html
trunk/Toss/www/index.php
Modified: trunk/Toss/WebClient/Login.js
===================================================================
--- trunk/Toss/WebClient/Login.js 2011-01-13 19:33:52 UTC (rev 1281)
+++ trunk/Toss/WebClient/Login.js 2011-01-19 20:57:15 UTC (rev 1282)
@@ -110,6 +110,10 @@
}
}
+function login_onenter () {
+ if (window.event && window.event.keyCode == 13) { login() }
+}
+
// Logout
function logout () {
clear_view ();
@@ -208,3 +212,19 @@
if (resp != "OK") { alert(resp); }
window.location.reload ();
}
+
+
+// Email address obfuscation to prevent some spamming.
+function begin_mailto (name, domain, title) {
+ var address = name + '@' + domain;
+ if(title) {
+ document.write("<a class='mail' href='mailto:" + address + "'>" + "<span>");
+ } else {
+ document.write("<a class='mail' href='mailto:" + address + "'>" +
+ address + "<span style='display: none;'>");
+ }
+}
+
+function end_mailto() {
+ document.write("</span></a>");
+}
Modified: trunk/Toss/WebClient/Style.css
===================================================================
--- trunk/Toss/WebClient/Style.css 2011-01-13 19:33:52 UTC (rev 1281)
+++ trunk/Toss/WebClient/Style.css 2011-01-19 20:57:15 UTC (rev 1282)
@@ -345,12 +345,12 @@
/* Content */
-.mail {
+.mail, .ta {
color: #260314;
text-decoration: underline;
}
-.mail:hover {
+.mail:hover, .ta:hover {
cursor: pointer;
text-decoration: none;
}
@@ -404,6 +404,15 @@
left: 1em;
}
+.welcome-list {
+ list-style: square;
+ padding-left: 1.5em;
+}
+
+.welcome-list li {
+ margin-top: 0.5em;
+}
+
#users-list {
list-style: none;
padding-left: 1.5em;
@@ -475,14 +484,14 @@
#welcome {
text-align: justify;
- margin-top: 3.5em;
- margin-left: 1em;
+ margin-top: 5em;
+ margin-left: 2em;
}
#welcome-top {
font-size: 1.2em;
font-weight: bold;
- padding-left: 1.25em;
+ padding-left: 0em;
}
#game-disp {
Modified: trunk/Toss/WebClient/contact.html
===================================================================
--- trunk/Toss/WebClient/contact.html 2011-01-13 19:33:52 UTC (rev 1281)
+++ trunk/Toss/WebClient/contact.html 2011-01-19 20:57:15 UTC (rev 1282)
@@ -3,24 +3,11 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml+xml; charset=UTF-8" />
<title>tPlay — Contact</title>
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <meta http-equiv="X-UA-Compatible" content="chrome=1" />
<link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" />
<link href="fontstyle.css" media="screen" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="Style.css" media="screen" title="Default"/>
- <script type="text/javascript">
- function begin_mailto (name, domain, title) {
- var address = name + '@' + domain;
- if(title) {
- document.write("<a class='mail' href='mailto:" + address + "'>" + "<span>");
- } else {
- document.write("<a class='mail' href='mailto:" + address + "'>" +
- address + "<span style='display: none;'>");
- }
- }
- function end_mailto() {
- document.write("</span></a>");
- }
- </script>
+ <script type="text/javascript" src="Login.js"> </script>
</head>
<body>
@@ -40,6 +27,14 @@
tossplay [AT] gmail [DOT] com
<script type="text/javascript">end_mailto();</script>
+<h2>Links</h2>
+
+<ul>
+<li><a class="ta" href="http://toss.sourceforge.net/">Toss Homepage</a></li>
+<li><a class="ta" href="http://www.playok.com/">Online games on PlayOK</a></li>
+<li><a class="ta" href="http://apronus.com/chess/index.htm">Chess on Apronus</a></li>
+</ul>
+
</div>
<div id="bottom">
Modified: trunk/Toss/WebClient/index.html
===================================================================
--- trunk/Toss/WebClient/index.html 2011-01-13 19:33:52 UTC (rev 1281)
+++ trunk/Toss/WebClient/index.html 2011-01-19 20:57:15 UTC (rev 1282)
@@ -3,7 +3,9 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml+xml; charset=UTF-8" />
<title>tPlay</title>
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <meta name="Description"
+ content="Play the best strategic games online with a nice interface." />
+ <meta http-equiv="X-UA-Compatible" content="chrome=1" />
<link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" />
<link href="fontstyle.css" media="screen" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="Style.css" media="screen" title="Default"/>
@@ -22,7 +24,7 @@
<div id="logo"><a href="index.html"><img src="toss.png" alt="tPlay" /></a></div>
<div id="topbar">
<span id="topuser"></span>
-<form id="loginform" style="display: inline;">
+<form id="loginform" style="display: inline;" action="">
<div id="login1">
<p class="loginsmall">Username:</p>
<input class="loginput" type="text" name="username" id="username" size="15" />
@@ -30,14 +32,13 @@
<div id="login2">
<p class="loginsmall">Password:</p>
<input class="loginput" type="password" name="password" id="password" size="15"
- onkeypress="if (window.event && window.event.keyCode == 13) { login() }"
- />
+ onkeypress="login_onenter()" />
</div>
<div id="login3">
<p class="loginchk">
<input type="checkbox" id="remember" value="r"
- checked="yes"><span id="rememberspan">Remember me</span>
- </input>
+ checked="checked" />
+ <span id="rememberspan">Remember me</span>
</p>
<button type="button" id="loginbt" onclick="login()">
<span id="loginspan">Login</span>
@@ -60,7 +61,7 @@
onclick="window.location.reload()">Find New</a>
<button class="bt" id="opponents-cancel"
onclick="window.location.reload()">Cancel</button>
- <ul id="opponents-list"></ul>
+ <ul id="opponents-list"><li style="display: none;"/></ul>
<button class="bt" id="opponents-prev"
onclick="opponents_prev()">Prev</button>
<button class="bt" id="opponents-next"
@@ -68,16 +69,25 @@
</div>
<div id="welcome">
-<p id="welcome-top">Enjoy games on <span class="logo-in">tPlay</span></p>
+<p id="welcome-top">Enjoy the best games on <span class="logo-in">tPlay</span> for free</p>
<p>
Strategic games are fun!
- <a href="register.html">Register</a>, login and enjoy
- <span class="logo-in">tPlay</span>!</p>
+ <a href="register.html">Register</a>, login and enjoy quality games
+ with our best interface on <span class="logo-in">tPlay</span>!
+</p>
+<ul class="welcome-list">
+<li>Play Breakthrough, Checkers, Chess, Gomoku and many other board games</li>
+<li>Challenge your friends or play a fast game against the computer for fun</li>
+<li>Focus fully on the game thanks to our intuitive clean interface</li>
+<li>Keep and analyze your games to improve your strength</li>
+<li>Invent new games with <a href="http://toss.sourceforge.net/">Toss</a>
+ and play them online here</li>
+</ul>
</div>
<div id="nosvg"
style="border: 1px solid #260314; padding-left: 1em; display: none;">
-<p style="padding-left: 1.2em; font-size: 1.2em;"<b>SVG Support Missing</b></p>
+<p style="padding-left: 1.2em; font-size: 1.2em;"><b>SVG Support Missing</b></p>
<p>Your browser does not seem to support SVG,
which is <b>necessary</b> to enjoy tPlay.
To correct this problem install the following plugin.</p>
@@ -100,38 +110,50 @@
class="boldobt">Breakthrough</button>
(<a href="http://en.wikipedia.org/wiki/Breakthrough_(board_game)">info</a>)
</p>
- <ul class="plays-list" id="plays-list-Breakthrough"></ul>
+ <ul class="plays-list" id="plays-list-Breakthrough">
+ <li style="display: none;"/>
+ </ul>
<p class="game-par">
<button onclick="new_play('Checkers')"
class="boldobt">Checkers</button>
(<a href="http://en.wikipedia.org/wiki/English_draughts">info</a>)
</p>
- <ul class="plays-list" id="plays-list-Checkers"></ul>
+ <ul class="plays-list" id="plays-list-Checkers">
+ <li style="display: none;"/>
+ </ul>
<p class="game-par">
<button onclick="new_play('Chess')"
class="boldobt">Chess</button>
(<a href="http://en.wikipedia.org/wiki/Chess">info</a>)
</p>
- <ul class="plays-list" id="plays-list-Chess"></ul>
+ <ul class="plays-list" id="plays-list-Chess">
+ <li style="display: none;"/>
+ </ul>
<p class="game-par">
<button onclick="new_play('Entanglement')"
class="boldobt">Entanglement</button>
(<a href="http://en.wikipedia.org/wiki/Entanglement_(graph_measure)"
>info</a>)
</p>
- <ul class="plays-list" id="plays-list-Entanglement"></ul>
+ <ul class="plays-list" id="plays-list-Entanglement">
+ <li style="display: none;"/>
+ </ul>
<p class="game-par">
<button onclick="new_play('Gomoku')"
class="boldobt">Gomoku</button>
(<a href="http://en.wikipedia.org/wiki/Gomoku">info</a>)
</p>
- <ul class="plays-list" id="plays-list-Gomoku"></ul>
+ <ul class="plays-list" id="plays-list-Gomoku">
+ <li style="display: none;"/>
+ </ul>
<p class="game-par">
<button onclick="new_play('Tic-Tac-Toe')"
class="boldobt">Tic-Tac-Toe</button>
(<a href="http://en.wikipedia.org/wiki/Tic-tac-toe">info</a>)
</p>
- <ul class="plays-list" id="plays-list-Tic-Tac-Toe"></ul>
+ <ul class="plays-list" id="plays-list-Tic-Tac-Toe">
+ <li style="display: none;"/>
+ </ul>
</div>
@@ -151,7 +173,7 @@
<button id="sugbt" class="bt" onclick="suggest_move()">
Suggest (weak, fast)
</button>
- <button id="sugbt" class="bt" onclick="suggest_move_better()">
+ <button id="sugbts" class="bt" onclick="suggest_move_better()">
Suggest (stronger, slow)
</button>
</p>
Modified: trunk/Toss/WebClient/profile.html
===================================================================
--- trunk/Toss/WebClient/profile.html 2011-01-13 19:33:52 UTC (rev 1281)
+++ trunk/Toss/WebClient/profile.html 2011-01-19 20:57:15 UTC (rev 1282)
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml+xml; charset=UTF-8" />
<title>tPlay — Profile</title>
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <meta http-equiv="X-UA-Compatible" content="chrome=1" />
<link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" />
<link href="fontstyle.css" media="screen" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="Style.css" media="screen" title="Default"/>
@@ -15,11 +15,14 @@
</head>
<body onload="startup_profile()">
+
+<div id="main">
+
<div id="top">
<div id="logo"><a href="index.html"><img src="toss.png" alt="tPlay" /></a></div>
<div id="topbar">
<span id="topuser"></span>
-<form id="loginform" style="display: inline;">
+<form id="loginform" style="display: inline;" action="">
<div id="login1">
<p class="loginsmall">Username:</p>
<input class="loginput" type="text" name="username" id="username" size="15" />
@@ -27,14 +30,13 @@
<div id="login2">
<p class="loginsmall">Password:</p>
<input class="loginput" type="password" name="password" id="password" size="15"
- onkeypress="if (window.event && window.event.keyCode == 13) { login() }"
- />
+ onkeypress="login_onenter()" />
</div>
<div id="login3">
<p class="loginchk">
<input type="checkbox" id="remember" value="r"
- checked="yes"><span id="rememberspan">Remember me</span>
- </input>
+ checked="checked"/>
+ <span id="rememberspan">Remember me</span>
</p>
<button type="button" id="loginbt" onclick="login()">
<span id="loginspan">Login</span>
@@ -49,10 +51,7 @@
<a href="register.html">Register</a>
</span>
</div>
-</div>
-<div id="main">
-
<div id="welcome">
<p id="welcome-top">To edit your <span class="logo-in">tPlay</span>
profile please login above or <a href="register.html">register</a> first.
@@ -62,7 +61,7 @@
<div id="main-profile" style="display: none;">
<h2>Your Profile</h2>
-<form id="changeprofileform">
+<form id="changeprofileform" action="">
<p> <span class="reglabel">Name:</span>
<input class="forminput" type="text" name="name" id="name" />
</p>
@@ -72,30 +71,30 @@
<p> <span class="reglabel">Email:</span>
<input class="forminput" type="text" name="email" id="email" />
</p>
-<button class="bt" id="changebt" type="button"
- onclick="change_profile()">Change</button>
+<p><button class="bt" id="changebt" type="button"
+ onclick="change_profile()">Change</button></p>
</form>
<h2>Your Current Opponents</h2>
<div id="opponents-profile">
- <ul id="opponents-list"></ul>
+ <ul id="opponents-list"><li style="display: none;"/></ul>
</div>
<h2>Suggested New Opponents</h2>
<div id="users-profile">
- <ul id="users-list"></ul>
+ <ul id="users-list"><li style="display: none;"/></ul>
</div>
</div>
-</div>
-
<div id="bottom">
<a href="http://toss.sourceforge.net" id="toss-link">Powered by Toss</a>
<a href="contact.html" id="contact">Contact and Info</a>
</div>
+</div>
+
</body>
</html>
Modified: trunk/Toss/WebClient/register.html
===================================================================
--- trunk/Toss/WebClient/register.html 2011-01-13 19:33:52 UTC (rev 1281)
+++ trunk/Toss/WebClient/register.html 2011-01-19 20:57:15 UTC (rev 1282)
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml+xml; charset=UTF-8" />
<title>tPlay — Registration</title>
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <meta http-equiv="X-UA-Compatible" content="chrome=1" />
<link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" />
<link href="fontstyle.css" media="screen" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="Style.css" media="screen" title="Default"/>
@@ -13,17 +13,18 @@
</head>
<body>
+
+<div id="main">
+
<div id="top">
<div id="logo"><a href="index.html"><img src="toss.png" alt="tPlay" /></a></div>
</div>
-<div id="main">
-
<div id="register-content">
<h2>Register on tPlay</h2>
-<form id="registerform">
+<form id="registerform" action="">
<p> <span class="reglabel">Username:</span>
<input class="forminput" type="text" name="username" id="username" /> </p>
<p> <span class="reglabel">Password:</span>
@@ -42,17 +43,17 @@
<p> <span class="reglabel">Email:</span>
<input class="forminput" type="text" name="email" id="email" />
</p>
-<button class="bt" id="registerbt" type="button" onclick="register()">Register</button>
+<p><button class="bt" id="registerbt" type="button" onclick="register()">Register</button></p>
</form>
</div>
-</div>
-
<div id="bottom">
<a href="http://toss.sourceforge.net" id="toss-link">Powered by Toss</a>
<a href="contact.html" id="contact">Contact and Info</a>
</div>
+</div>
+
</body>
</html>
Modified: trunk/Toss/www/index.php
===================================================================
--- trunk/Toss/www/index.php 2011-01-13 19:33:52 UTC (rev 1281)
+++ trunk/Toss/www/index.php 2011-01-19 20:57:15 UTC (rev 1282)
@@ -1,6 +1,7 @@
<?php @include "site_template.php";
$prefix = "";
+$style = "";
$url = "index.php";
$title = "Toss Home Page";
@@ -13,6 +14,9 @@
did you ever wonder how your favorite game would feel if you removed
the middle of the board? With Toss, it is easy to experiment!</p>
<ul>
+<li style="margin: 0.5em"><b>Play</b> Toss games online at
+ <a href="http://tplay.org">
+ tPlay.org</a>.</li>
<li style="margin: 0.5em"><b>Download</b> Toss from the
<a href="http://sourceforge.net/project/showfiles.php?group_id=115606">
Sourceforge Download Page</a>.</li>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|