| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|---|
| 4 |
<head> |
|---|
| 5 |
<title>Notifier : test de l'API</title> |
|---|
| 6 |
<script src="js/jquery-1.2.3.js" type="text/javascript"></script> |
|---|
| 7 |
<script src="js/notifier.js" type="text/javascript"></script> |
|---|
| 8 |
<script src="js/wsse.js" type="text/javascript"></script> |
|---|
| 9 |
<script type="text/javascript"> |
|---|
| 10 |
$(document).ready(function() { |
|---|
| 11 |
notifier.prefs.baseUrl = prompt('Adresse du serveur ?', 'http://localhost/notifier/api/'); |
|---|
| 12 |
}); |
|---|
| 13 |
</script> |
|---|
| 14 |
<link rel="stylesheet" type="text/css" media="screen" href="styles/main.css" /> |
|---|
| 15 |
</head> |
|---|
| 16 |
<body> |
|---|
| 17 |
<div id="container"> |
|---|
| 18 |
<h1>Notifier : test de l'API</h1> |
|---|
| 19 |
<p id="loading" style="display:none;">Chargement</p> |
|---|
| 20 |
<div id="login"> |
|---|
| 21 |
<label for="name">Identifiant</label> |
|---|
| 22 |
<input type="text" id="name" value="" /> |
|---|
| 23 |
<label for="pwd">Mot de passe</label> |
|---|
| 24 |
<input type="password" id="pwd" value="" /> |
|---|
| 25 |
<input type="submit" onclick="notifier.actions.login();" value="Connexion" /> |
|---|
| 26 |
<a href="#" onclick="$('#login').hide();$('#register').show();">S'enregistrer</a> |
|---|
| 27 |
</div> |
|---|
| 28 |
<div id="register" style="display:none;"> |
|---|
| 29 |
<label for="reg_email">Email</label> |
|---|
| 30 |
<input type="text" id="reg_email" value="" /> |
|---|
| 31 |
<label for="reg_name">Identifiant</label> |
|---|
| 32 |
<input type="text" id="reg_name" value="" /> |
|---|
| 33 |
<label for="reg_pwd">Mot de passe</label> |
|---|
| 34 |
<input type="password" id="reg_pwd" value="" /> |
|---|
| 35 |
<input type="submit" onclick="notifier.actions.register();" value="Créer un compte" /> |
|---|
| 36 |
</div> |
|---|
| 37 |
<div id="main" style="display:none;"> |
|---|
| 38 |
<div id="tabs"> |
|---|
| 39 |
<a href="#" class="active" onclick="notifier.ui.showTab(this, 'friends-timeline'); notifier.actions.refreshFriendsTimeline();">Timeline</a> |
|---|
| 40 |
<a href="#" onclick="notifier.ui.showTab(this, 'friends'); notifier.actions.refreshFriendsList();">Friends</a> |
|---|
| 41 |
<a href="#" onclick="notifier.ui.showTab(this, 'favorites'); notifier.actions.refreshFavoritesList();">Favorites</a> |
|---|
| 42 |
</div> |
|---|
| 43 |
<div id="friends-timeline-tab" class="tab"> |
|---|
| 44 |
<h2>Timeline</h2> |
|---|
| 45 |
<textarea rows="8" cols="40" id="note_text"></textarea> |
|---|
| 46 |
<input type="submit" id="note_submit" onclick="notifier.actions.sendNote();" value="Envoyer" /> |
|---|
| 47 |
<p class="refresh-link"><a href="#" onclick="notifier.actions.refreshFriendsTimeline();">Actualiser</a></p> |
|---|
| 48 |
<div id="friends-timeline"></div> |
|---|
| 49 |
</div> |
|---|
| 50 |
<div id="friends-tab" class="tab" style="display:none;"> |
|---|
| 51 |
<h2>Friends</h2> |
|---|
| 52 |
<label for="friend_name">Ajouter un ami</label> |
|---|
| 53 |
<input type="text" id="friend_name" value="" /> |
|---|
| 54 |
<input type="submit" id="friend_submit" onclick="notifier.actions.addFriend();" value="Ok" /> |
|---|
| 55 |
<div id="friends-list"></div> |
|---|
| 56 |
</div> |
|---|
| 57 |
<div id="favorites-tab" class="tab" style="display:none;"> |
|---|
| 58 |
<h2>Favorites</h2> |
|---|
| 59 |
<div id="favorites-list"></div> |
|---|
| 60 |
</div> |
|---|
| 61 |
</div> |
|---|
| 62 |
</div> |
|---|
| 63 |
</body> |
|---|
| 64 |
</html> |
|---|