forked from halo-battle/game
Version 1.9a
This commit is contained in:
parent
5f81f76b17
commit
d028822d0b
437 changed files with 27543 additions and 81793 deletions
|
|
@ -3,6 +3,10 @@ window.onload = function(){
|
|||
document.getElementById('aide1').innerHTML = 'Pour vous repérer plus facilement entre vos différentes flottes, donnez-lui un nom.';
|
||||
document.getElementById('aide2').innerHTML = '';
|
||||
}
|
||||
document.getElementById('fav_dest').onfocus = function(){
|
||||
document.getElementById('aide1').innerHTML = 'Choisissez dans la liste une destination ou entrez les coordonnées directement dans les champs ci-après.';
|
||||
document.getElementById('aide2').innerHTML = '';
|
||||
}
|
||||
document.getElementById('amas').onfocus = function(){
|
||||
document.getElementById('aide1').innerHTML = 'Indiquez ici l\'amas de destination de votre flotte.';
|
||||
document.getElementById('aide2').innerHTML = '';
|
||||
|
|
@ -60,6 +64,29 @@ window.onload = function(){
|
|||
document.getElementById('vp').innerHTML = "Chargement en cours ...";
|
||||
tempsFlotte();
|
||||
}
|
||||
document.getElementById('metal').onkeyup = function(){
|
||||
document.getElementById('vp').innerHTML = "Chargement en cours ...";
|
||||
tempsFlotte();
|
||||
}
|
||||
document.getElementById('cristal').onkeyup = function(){
|
||||
document.getElementById('vp').innerHTML = "Chargement en cours ...";
|
||||
tempsFlotte();
|
||||
}
|
||||
document.getElementById('hydrogene').onkeyup = function(){
|
||||
document.getElementById('vp').innerHTML = "Chargement en cours ...";
|
||||
tempsFlotte();
|
||||
}
|
||||
|
||||
document.getElementById('fav_dest').onchange = function(){
|
||||
if (document.getElementById('fav_dest').value == "edit") {
|
||||
window.open("?p=destinationsrapides");
|
||||
document.getElementById('fav_dest').value = "0";
|
||||
}
|
||||
else {
|
||||
document.getElementById('vp').innerHTML = "Chargement en cours ...";
|
||||
tempsFlotte();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function tempsFlotte() {
|
||||
|
|
@ -68,12 +95,14 @@ function tempsFlotte() {
|
|||
'ajax_flotte.php',
|
||||
{
|
||||
method: 'post',
|
||||
parameters: {nom: document.getElementById('nom').value, mission: document.getElementById('mission').value, hyd: document.getElementById('hydrogene').value, galaxie: document.getElementById('amas').value, ss: document.getElementById('ss').value, pos: document.getElementById('plan').value, vitesse: document.getElementById('vitesse').value},
|
||||
parameters: {fav_dest: document.getElementById('fav_dest').value, nom: document.getElementById('nom').value, mission: document.getElementById('mission').value, met: document.getElementById('metal').value, cri: document.getElementById('cristal').value, hyd: document.getElementById('hydrogene').value, galaxie: document.getElementById('amas').value, ss: document.getElementById('ss').value, pos: document.getElementById('plan').value, vitesse: document.getElementById('vitesse').value},
|
||||
onSuccess: function(transport, json) {
|
||||
document.getElementById('destination').innerHTML = json.root.destination;
|
||||
document.getElementById('temps').innerHTML = json.root.temps;
|
||||
document.getElementById('conso').innerHTML = json.root.conso;
|
||||
document.getElementById('deblok').innerHTML = json.root.deblok;
|
||||
document.getElementById('tactique').innerHTML = json.root.tactique;
|
||||
document.getElementById('placesRest').innerHTML = json.root.places;
|
||||
document.getElementById('vp').innerHTML = "";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
77
htdocs/js/index.html
Normal file
77
htdocs/js/index.html
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="Content-Language" content="fr" />
|
||||
<title> ::Halo-Battle:: - Erreur</title>
|
||||
<style type="text/css">
|
||||
|
||||
html
|
||||
{
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
body
|
||||
{
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
div
|
||||
{
|
||||
background-color: #080819;
|
||||
text-align: center;
|
||||
margin: 10% auto 0 auto;
|
||||
padding: 25px 0;
|
||||
width: 80%;
|
||||
border-top: #FFFFFF dotted 1px;
|
||||
border-left: #FFFFFF dotted 1px;
|
||||
border-right: #FFFFFF solid 3px;
|
||||
border-bottom: #FFFFFF solid 3px;
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
font-size: 3em;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
h2
|
||||
{
|
||||
font-size: 2em;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
h3
|
||||
{
|
||||
font-size: 1.5em;
|
||||
color: #FFFFFF;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
a
|
||||
{
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
right: 30px;
|
||||
font-size: 0.8em;
|
||||
display: block;
|
||||
padding: 5px 10px;
|
||||
background-color: #FFFFFF;
|
||||
color: #000000;
|
||||
text-decoration: underline;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<h2>Erreur</h2>
|
||||
<h1>403</h1>
|
||||
<h3>Refus de traitement de la requête.<br /><em>Forbidden.</em></h3>
|
||||
</div>
|
||||
<a href="/">HALO-BATTLE</a>
|
||||
<!-- \\******* By Phantom *******// Halo-Battle, Tous droits réservés -->
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue