Informations
- Présidente :
- misscool05
- Activité :
- 0 connectée(s)
- 2 membres
- 0 messages postés
- Date de création :
- le 25/04/2015 à 12:34
Présentation
Eldarya : Dating game en ligne
<!--[if IE 6]> <![endif]--> // <![CDATA[ var socket = io.connect("http://176.31.57.86:9000"); var sessionID = "k3gl8hr4krnc1oftn5ppeh1ur4"; socket.emit("sessionID", {sessionID : sessionID}); // ]]> <!-- Browser update plugin --> // <![CDATA[ var $buoop = {c:2}; function $buo_f(){ var e = document.createElement("script"); e.src = "//browser-update.org/update.js"; document.body.appendChild(e); }; try {document.addEventListener("DOMContentLoaded", $buo_f,false)} catch(e){window.attachEvent("onload", $buo_f)} // ]]> <!-- DFP Small Business --> // <![CDATA[ GS_googleAddAdSenseService("ca-pub1"); GS_googleEnableAllServices(); // ]]> // <![CDATA[ GA_googleAddAttr("s", "0");GA_googleAddAttr("pu", "0"); // ]]> // <![CDATA[ GA_googleAddAttr("langue_jeu", "fr"); // ]]> // <![CDATA[ GA_googleUseIframeRendering(); // ]]>Eldarya<!-- BEEMOOV BAR -->
// <![CDATA[
var beeBarUrl = 'http://www.beemoov.com/b44-fr.js';
$.ajaxSetup({cache:true});
$.getScript( beeBarUrl );
$.ajaxSetup({cache:false});
// ]]>
// <![CDATA[
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-73679-106', 'eldarya.com');
ga('send', 'pageview');
// ]]>
<!-- FIN BEEMOOV BAR --><!-- MAIN CONTAINER-->
-->
// <![CDATA[
var player = {"id":"296418","name":"Misscool05","description":null,"xp":"50","race":"humain","maana":"1010","gold":"0","crystal":"0","Pet_id":null,"petUpdateTimestamp":null,"configuration":null,"sellerCardExpiredDate":null,"sellerCard":"0","Guard_id":null,"crush":"none"};
var playerLevel = 1;
var maxLevel = false;
var playerXpPercent = 16.666666666667;
var playerRanking = {"Player_id":"296418","totalScore":"0","monthlyScore":"50","Guard_id":null,"prize":"0"};
var rankingLocked = true;
$("#player-info-profile").attr("href", "/#/player/profile/"+player.name);
if(!rankingLocked) {
$("#player-info-guard-link").attr("href", "/#/ranking");
}
$("#player-info-login-text").prepend(player.name);
$("#player-info-level").prepend(playerLevel);
if(maxLevel)
{
playerXpPercent = 100;
$("#player-info-level .tooltip-content, #player-info-dots .tooltip-content").html("Niveau "+playerLevel+"<br />Tu as atteint le niveau maximum disponible.");
} else
{
$("#player-info-level .tooltip-content, #player-info-dots .tooltip-content").text("Niveau "+playerLevel+" : "+Math.floor(playerXpPercent)+"%");
}
$("#player-info-xpbar div").width(playerXpPercent+"%");
//Classements et fonctionnement du carousel
$("#player-info-ranking-total").append(parseInt(playerRanking.totalScore) + parseInt(playerRanking.monthlyScore) + " points au total");
$("#player-info-ranking-monthly").append(playerRanking.monthlyScore+" points ce mois ci");
var playerInfoRankingCarousel = 0;
var updatePlayerInfoRankingCarousel = function(direction)
{
playerInfoRankingCarousel = (playerInfoRankingCarousel + direction);
if(playerInfoRankingCarousel < 0) playerInfoRankingCarousel = $("#player-info-ranking div").length + playerInfoRankingCarousel;
else playerInfoRankingCarousel = playerInfoRankingCarousel%($("#player-info-ranking div").length);
$("#player-info-ranking div").eq(0).animate({"margin-left":(-playerInfoRankingCarousel * 100)+"%"});
}
$("#player-info-ranking-prev").on('click', function()
{
updatePlayerInfoRankingCarousel(-1);
});
$("#player-info-ranking-next").on('click', function()
{
updatePlayerInfoRankingCarousel(1);
});
if(player.Guard_id >= 0 && player.Guard_id <= 4 && player.Guard_id != null)
{
var guards = ["etincelante", "obsidienne", "absynthe", "ombre"];
var guard = guards[player.Guard_id - 1];
$("#player-info-guard").append("<img class='player-info-guard-icon "+guard+"' src='/static/img/guild_mini_"+guard+".png' />");
}
var dotsToFill = Math.round(playerXpPercent / 20);
for(var i = 0; i < dotsToFill; i++)
{
$('.player-info-dot').eq( 4 - i ).addClass('lit');
}
$("#player-info-maana").text(": "+player.maana);
$("#player-info-maana").append("
// <![CDATA[
var petMood = null;
var egg = null;
if (petMood != null)
{
$("#pet-headerPortrait").append("<a href='/#/pet/'>");
$("#pet-headerPortrait-base").css({ "background-image" : "url('"+petMood.icon+"')" });
}
else if (egg != null)
{
$("#pet-headerPortrait").append("
");
$("#pet-headerPortrait-base").css({ "background-image" : "url('"+egg.icon+"')", "top" : "-5px", "left" : "5px", "width" : "100px", "height" : "100px" });
}
// ]]>
// <![CDATA[
pageLoad(location.hash.substring(1));
// ]]>
Classement garde ?
Position classt général ?
-->Maana
");
$("#player-info-gold").text(": "+player.gold);
$("#player-info-gold").append("Pièces d'or
");
// ]]>
// <![CDATA[
var player = {"id":"296418","name":"Misscool05","description":null,"xp":"50","race":"humain","maana":"1010","gold":"0","crystal":"0","Pet_id":null,"petUpdateTimestamp":null,"configuration":null,"sellerCardExpiredDate":null,"sellerCard":"0","Guard_id":null,"crush":"none"};
var wearableItems = [{"id":"2248","name":"For\u00eat","description":"","icon":"\/static\/img\/item\/player\/web_full\/ebe3cacec9acff9a1ae9d9554a3192c0~1411734643.jpg","tradable":"0","stockable":"0","maana":null,"gold":"0","bodyLocation":"background","group":"2248","animationData":null,"maxQuantity":"1","rarity":"common","Guard_id":null,"wearIndex":"1"},{"id":"691","name":"Eldarya","description":"","icon":"\/static\/img\/player\/skin\/web_full\/7d9c43a1fbde3009426d38d7d846ab22~1410450202.png","tradable":"0","stockable":"1","maana":"60","gold":"10","bodyLocation":"skin","group":"691","animationData":null,"maxQuantity":"1","rarity":"common","Guard_id":null,"wearIndex":"2"},{"id":"692","name":"Eldarya","description":"","icon":"\/static\/img\/player\/eyes\/web_full\/738ecdd783b1d7acd33bb3bed46871ea~1410449574.png","tradable":"0","stockable":"1","maana":"90","gold":"15","bodyLocation":"eye","group":"692","animationData":null,"maxQuantity":"1","rarity":"common","Guard_id":null,"wearIndex":"3"},{"id":"693","name":"Eldarya, longue","description":"","icon":"\/static\/img\/player\/hair\/web_full\/af3773bd7e296d8527c49acd61a30acb~1410450899.png","tradable":"0","stockable":"1","maana":"30","gold":"5","bodyLocation":"hair","group":"693","animationData":null,"maxQuantity":"1","rarity":"common","Guard_id":null,"wearIndex":"4"},{"id":"323","name":"Sous-v\u00eatements simples","description":"","icon":"\/static\/img\/item\/player\/web_full\/bc91b2c50392439a1c04d398d5c829f3~1410451013.png","tradable":"0","stockable":"1","maana":"15","gold":"3","bodyLocation":"underwear","group":"323","animationData":null,"maxQuantity":"1","rarity":"common","Guard_id":null,"wearIndex":"5"},{"id":"1776","name":"Chaussettes Civilian","description":"","icon":"\/static\/img\/item\/player\/web_full\/11cf5ee162d84bb9c876d473ada7e6a8~1410450858.png","tradable":"0","stockable":"1","maana":"15","gold":"3","bodyLocation":"sock","group":"1776","animationData":null,"maxQuantity":"1","rarity":"common","Guard_id":null,"wearIndex":"6"},{"id":"1786","name":"Bottes Civilian","description":"","icon":"\/static\/img\/item\/player\/web_full\/f5b78ae221e3722a6242dd58c2a79574~1410450874.png","tradable":"0","stockable":"1","maana":"75","gold":"13","bodyLocation":"shoe","group":"1786","animationData":null,"maxQuantity":"1","rarity":"common","Guard_id":null,"wearIndex":"7"},{"id":"1796","name":"Robe Civilian","description":"","icon":"\/static\/img\/item\/player\/web_full\/097beef8e083b38b8f020baf3a05aa4f~1410450890.png","tradable":"0","stockable":"1","maana":"180","gold":"30","bodyLocation":"dress","group":"1796","animationData":null,"maxQuantity":"1","rarity":"common","Guard_id":null,"wearIndex":"8"},{"id":"1806","name":"Gilet Civilian","description":"","icon":"\/static\/img\/item\/player\/web_full\/29a025f19f515058471d0524579a0c99~1410450907.png","tradable":"0","stockable":"1","maana":"180","gold":"30","bodyLocation":"coat","group":"1806","animationData":null,"maxQuantity":"1","rarity":"common","Guard_id":null,"wearIndex":"9"}];
$("#player-headerPortrait").html("<a href='/#/player/profile/"+player.name+"'>");
//Affichage des éléments dans le bon ordre
for(var w in wearableItems)
{
var item = wearableItems[w];
//On n'affiche pas les elements qui ne seront pas visibles, ni le background
if(item.bodyLocation != "background" &&
item.bodyLocation != "sock" &&
item.bodyLocation != "shoe" &&
item.bodyLocation != "pants" &&
item.bodyLocation != "belt")
{
$("#player-headerPortrait a").append('');
// $("#player-headerPortrait-wearableItem-"+item.id).css({"width" : "250px",
// "height" : "241px",
// "position" : "absolute",
// "top" : "79px",
// "left" : "15px",
// "border-radius" : "120px"});
$("#player-headerPortrait-wearableItem-"+item.id).css({"background-image" : "url('"+item.icon+"')"});
var animationData = JSON.parse(item.animationData);
//Si l'item comporte des animations
if(animationData != null)
{
//Enregistre les données d'animation dans le noeud DOM
$("#player-headerPortrait-wearableItem-"+item.id).data("framedata",animationData.frameData);
//Mémorise la frame en cours
$("#player-headerPortrait-wearableItem-"+item.id).data("currentframe",0);
//Enregistre les position du background avant l'animation
$("#player-headerPortrait-wearableItem-"+item.id).data("backgroundoffsetx", -170);
$("#player-headerPortrait-wearableItem-"+item.id).data("backgroundoffsety", -105);
//Lance la boucle d'animation
setTimeout(function(item){animatePlayerWearableItem("#player-headerPortrait-wearableItem-"+item.id);}, animationData.frameData[0].duration, item);
}
}
}
// ]]>
<!-- START TEMPLATE FOOTER -->