$(document).ready(function(){$("#kwicks_carousel .carousel").m6carousel({navigation:true,timer:true,interval:5e3});$("#newsletter input[type=submit]").on("click",function(event){$.modal({url:"/api/membre/facebox.newsletter.php",afterShow:function(){$(".email.focus").val($("#newsletter input[type=email]").val())},title:"Newsletter"})})}); (function(){$(document).ready(function(){$(".install-instructions").on("click",function(event){event.preventDefault();$.modal({url:this.href})});var ratingCtrl={init:function($view){this.$view=$view;this.count=$view.find(".picto.jvfr-star-full").length;this.versionId=$("#modVersion").attr("data-mod-id");var _this=this;if(document.cookie.indexOf("modrate-"+this.versionId)<0){$view.find(".picto").on("mouseover",function(){_this._selectElement(this)}).on("click",function(){_this._vote(this)})}$view.on("mouseleave",function(){_this._selectCount(_this.count)})},_selectCount:function(count){if(count>0){this._selectElement(this.$view.find(".picto")[count-1])}else{this._clear()}},_selectElement:function(element){$(element).prevAll().andSelf().addClass("jvfr-star-full").removeClass("jvfr-star-empty");$(element).nextAll().removeClass("jvfr-star-full").addClass("jvfr-star-empty")},_clear:function(element){$(".jvfr-star-full").removeClass("jvfr-star-full").addClass("jvfr-star-empty")},_vote:function(element){var _this=this;var url=Routing.generate("m6_jvfrpc_modsdetails_vote",{versionId:this.versionId});this.$view.find(".picto").off("mouseover").off("click");$.post(url,{score:$(element).prevAll().andSelf().length}).done(function(data){_this.count=data.score;_this._selectCount(_this.count);$.modal.alert("Votre vote a bien été pris en compte.")})}};ratingCtrl.init($("#dl-mods .rating-mods"))})})(); (function(d,w){"use strict";var M6=w.M6||{};M6.CommentsBox={id:null,config:{version:1,node:"livefyre-comments",url:null,title:null,tags:{},sample:100,track:["comments","$type","$id"],close:false,login:"/api/membre/facebox.login.php",notif:"/api/membre/livefyre.notif.php",ranks:{administrateur:"#D90",animateur:"#090",testeur:"#A513A5","Rédacteur":"#C00","modérateur":"#1580E4","Invité":"#A513A5"},callbacks:{init:function(){},loggedin:function(){},posted:function(){},flagged:function(){},liked:function(){},shared:function(){},social:function(){}},domains:{clubic:{visible:10,profileUrl:"http://www.clubic.com/profil/actualite.html",stats:{preload:"7d390d74926923abe3b681462e6322d0",loaded:"7de395ffdeaeddce26e9e7d5168b3a60",posted:"fa2b25d8dfcbf922f4754e90e31afd39"},customLogin:function(){$(window).trigger("auth.signin")},loginEvent:"auth.login",logoutEvent:"auth.logout"},deco:{visible:10,profileUrl:"/forum-deco/profil/mon-compte.html",stats:{preload:"17f5a82275bf808a13527d2cf824bf73",loaded:"cca6b6fad056f234057dbc21fd7b4e00",posted:"6243b159f616672c2fad55a025f639c0"}},jeuxvideo:{visible:5,profileUrl:"http://www.jeuxvideo.fr/forum/profil/mon-compte.html",stats:{preload:"d1c0333bcd458273df7a79d30f48d193",loaded:"522bbb5062b005995e2f12c0af1ab302",posted:"abe591d568ac6481fa98e7a916e7a9ec"}},turbo:{visible:10,profileUrl:"/forum-auto/profil/mon-compte.html",stats:{preload:"dc322963aa619925bebbf3130f5bc754",loaded:"de38b1e93d88167c8f1af3f6f5f7b704",posted:"3754376d73d3ddc6c122d243b36dd3da"}}},locale:{archiveHeaderTitle:"Archives",archiveShowMore:"Montrer plus de commentaires",banCancelButton:"Annuler",banConfirmation:"Etes vous certain de vouloir bannir cet utilisateur ?",banConfirmationButton:"OK",banTitle:"Bannir l'utilisateur",banUserButton:"Bannir l'utilisateur",bozoButton:"Bozo",commentCountLabel:"%s commentaire",commentCountLabelPlural:"%s commentaires",commentNotifier:"Nouveau commentaire",commentNotifierPlural:"Nouveaux commentaires",commentTombstone:"Ce commentaire a été effacé.",copyright:"Powered by LiveFyre",deleteButton:"Supprimer",deleteCommentTooltip:"Supprimer",displayName:"%s",displayNameGuest:"%s (invité)",editButton:"Editer",editProfile:"Editer le profil",editorDisabled:"Cette conversation est actuellement fermée.",errorAuthError:"Vous n'êtes pas autorisé à commenter cette discussion",errorCommentsNotAllowed:"Les commentaires ne sont pas autorisés sur ce sujet",errorDefault:"Une erreur est survenue. Merci de reessayer.",errorDuplicate:"Vous n'êtes pas autorisé à reposter le même commentaire.",errorEditDuplicate:"Vous devez modifier le corps de votre commentaire lors de votre édition.",errorEditNotAllowed:"Vous n'êtes pas autorisé à éditer les commentaires sur ce sujet",errorEditTimeExceeded:"Désolé, le temps autorisé pour l'édition a expiré.",errorEmpty:"Il semblerait que vous essayez de poster un commentaire vide.",errorExpired:"Votre session a expiré. Merci de recharger la page.",errorFlagNotSelected:"Please select a flag type",errorGuestLiked:"Sorry, only those with accounts can like content.",errorInsufficientPermissions:"Permissions insuffisantes",errorInvalidChar:"Il semble que votre commentaire contient un caractère non autorisé.",errorLikeOwnComment:"Vous ne pouvez pas aimer votre propre commentaire.",errorMalformed:"l semble que votre commentaire soit mal formaté.",errorMaxChars:"Désolé, votre commentaire est trop long. Merci d'éditer puis de retenter la publication.",errorShowMore:"Il y a eu une erreur lors du chargement des commentaires.",featureButton:"+ MEA",featureCommentTooltip:"Mettre en avant",featuredCommentTooltip:"Ne plus mettre en avant",featuredCommentsPost:"Comment",featuredCommentsTag:"mis en avant",featuredCommentsTitle:"Featured Comments",featuredCommentsTitlePlural:"Commentaires mis en avant",flagButton:"Bouton de signalement",flagCancelButton:"Annuler",flagConfirmButton:"OK",flagDisagree:"Message biaisé/faux",flagDisagreeButton:"Message biaisé/faux",flagEmail:"Email",flagEmailPlaceholder:"vous@exemple.com",flagNotes:"Notes",flagNotesPlaceholder:"Commencez à écrire ici...",flagOffTopic:"Hors sujet",flagOffensive:"Offensant",flagOffensiveButton:"Offensant",flagOfftopicButton:"Hors sujet",flagSpam:"Spam",flagSpamButton:"Spam",flagSubtitle:"Signaler en tant que",flagSuccessMsg:"Le commentaire a été signalé",flagTitle:"Signaler",follow:"+ S'abonner",hotThreadsContentNotFoundMsg:"Il n'y a pas assez de sujets pour le moment",hovercardViewProfile:"Voir le profil complet",likeButton:"J'aime",listenerCount:"suit la conversation",listenerCountPlural:"suivent la conversation",liveblogFollow:"+ S'abonner",liveblogNotifier:"Nouveau message",liveblogNotifierPlural:"Nouveaux messages",liveblogPostCountLabel:"message",liveblogPostCountLabelPlural:"messages",liveblogUnfollow:"+ Se désabonner",livechatOtherInstruction:"",livechatPostEditButton:"Editer",livechatPostButtonLabel:"Poster",livechatWindowsInstruction:"",loadingPermalink:"Chargement de l'url courte...",mentionCancelButton:"Annuler",mentionConfirmButton:"OK",mentionDefaultText:"Je t'ai mentionné dans un commentaire !",mentionErrorGeneral:"Oops ! Quelques chose ne s'est pas bien passé. Une alerte a été envoyé.",mentionErrorNoneSelected:"Vous devez avoir au moins une mention activée.",mentionMenuTitle:"Pour voir et mentionner vos amis",mentionSubtitleFacebook:"Partager le message sur compte Facebook de :",mentionSubtitleTwitter:"Partager le message sur compte Twitter de :",mentionSuccessMsg:"Les mentions ont été correctement envoyées.",mentionTitle:"Partager le message avec un ami",moderator:"modérateur",moderatorEditTimeStamp:"Edité par un modérateur",MultipleMediaNotAllowedError:"Vous ne pouvez joindre qu'un media à la fois",newComment:"Nouveau commentaire",newComments:"Nouveaux commentaires",newReplies:"nouvelles réponses",newReply:"nouvelle réponse",notificationMenu:"Notifications",notificationTitle:"Gestion des notifications emails",pendingComment:"en attente",permalinkHeader:"Partagé",permalinkHeaderDeleted:"Ce commentaire n'est plus visibile",permaLinkNotFoundMsg:"Ce commentaire n'est plus visibile",postAsButton:"Publier le commentaire en tant que...",postButton:"Publier le commentaire",postEditButton:"Editer le commentaire",postEditCancelButton:"Annuler",postReplyButton:"Répondre au commentaire",postReplyAsButton:"Répondre au commentaire en tant que...",quickProfileTooltip:"Profil rapide",refresh:"Rafraîchissement",replyButton:"Répondre",replyButtonSingular:"Répondre",replyButtonPlural:"Répondre",shareButton:"Partager",shareButtonText:"Partager",shareCommentTooltip:"Partager le commentaire",shareDefaultText:"Regardez le message !",shareLabel:"Partager sur :",sharePermalink:"Lien",shareTitle:"Partager le commentaire",showMore:"Montrer plus de commentaires",signIn:"Se connecter",signOut:"Se déconnecter",siteAdmin:"Site Admin",sortBackButton:"Retour aux top commentaires",sortHotThreads:"Top Commentaires",sortNewest:"Les plus récents",sortOldest:"Les plus anciens",sortSeparator:" | ",sortTopComments:"Top Commentaires",streamSorting:"Chargement",streamRefreshMsg:"Rafraîchir",threadBreakoutButton:"Montrer l'ensemble du fil de discussion",timeAgo:"Il y a",timeInDays:"dans %s jour",timeInDaysPlural:"dans %s jours",timeInHours:"dans %s heure",timeInHoursPlural:"dans %s heures",timeInMinutes:"dans %s minute",timeInMinutesPlural:"dans %s minutes",timeJustNow:"A l'instant",timeDaysAgo:"jour",timeDaysAgoPlural:"jours",timeHoursAgo:"heure",timeHoursAgoPlural:"heures",timeMinutesAgo:"minute",timeMinutesAgoPlural:"minutes",topCommentsContentNotFoundMsg:"Il n'y a pas asser de \"j'aime\" pour le moment",topContentRefreshMsg:"Regardez ce qui est nouveau",unfeaturedButton:"- MEA",unfollow:"- Se désabonner",unlikeButton:"Je n'aime plus"}},cssFix:function(){setTimeout(function(){if(null===d.getElementById(M6.CommentsBox.config.node).querySelector("#fyre-copyrights")){var copyright=d.createElement("a");copyright.id="fyre-copyrights";copyright.href="http://web.livefyre.com/";copyright.style.cssText="color:#404040;display:block;text-align:right;background:url(http://zor.t402.livefyre.com/wjs/v3.0/images/editor/sprites.png) no-repeat 100% -439px;padding:5px 40px 5px 0";copyright.innerHTML=M6.CommentsBox.config.locale.copyright;d.getElementById(M6.CommentsBox.config.node).appendChild(copyright);d.getElementById(M6.CommentsBox.config.node).querySelector(".fyre-help").style.display="none"}var levels=d.getElementById(M6.CommentsBox.config.node).querySelectorAll(".fyre-user-level");if(null!==levels){for(var k in levels){if(true===levels.hasOwnProperty(k)&&"object"===typeof levels[k]){levels[k].style.display="none"}}}if("object"===typeof M6.CommentsBox.config.ranks){for(var i in M6.CommentsBox.config.ranks){if(true===M6.CommentsBox.config.ranks.hasOwnProperty(i)){var els=d.getElementById(M6.CommentsBox.config.node).querySelectorAll('[data-fyre-author-tag="'+i+'"]');if(null!==els){for(var j in els){if(true===els.hasOwnProperty(j)&&"object"===typeof els[j]){els[j].style.cssText="background-color:"+M6.CommentsBox.config.ranks[i]+";display:inline"}}}}}}var articles=d.getElementById(M6.CommentsBox.config.node).querySelectorAll(".fyre-comment-article");if(null!==articles){for(var l in articles){if(true===articles.hasOwnProperty(l)&&"object"===typeof articles[l]){articles[l].style.display="block"}}}if("function"===typeof w.$){w.$(M6.CommentsBox.config.node+" .fyre-share-button").css("width","auto");w.$(M6.CommentsBox.config.node+" .fyre-share-button div.fyre-button-right-inner-box").css("background-position","90% 50%");w.$(M6.CommentsBox.config.node+".fyre .fyre-comment-stream .fyre-comment-footer").css({width:"auto",display:"block",margin:"0 0 7px 61px"})}},1e3)},host:function(){var split=w.location.hostname.replace("jeuxvideopc.com","jeuxvideo.fr").split(".").slice(-2);return{name:split[0],domain:split.join(".")}},encodeString:function(content){content=(content+"").toString();return w.encodeURIComponent(w.decodeURIComponent(content.replace(/%(?![\da-f]{2})/gi,function(){return"%25"}).replace(/\+/g,"%20"))).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")},dispatch:function(route){var routes={meta:"conversations/{id}/meta",sso:"users/{userid}/sso"},baseUrl=w.location.protocol+"//";if("string"!==typeof routes[route]){throw new ReferenceError('M6.CommentsBox.dispatch: Route "'+route+'" does not exist')}if(-1!==w.location.host.search(".dev.")){baseUrl+=w.location.host.split(".",2).join(".")+"."}else if(-1!==w.location.host.search(/recette|preprod/)){baseUrl+="preprod."}routes[route]=routes[route].replace("{id}",M6.CommentsBox.id);routes[route]=routes[route].replace("{userid}",null!==d.cookie.match("nfuserid")?d.cookie.match(/nfuserid=(\d+)/i)[1]:"");return baseUrl+="comments."+M6.CommentsBox.host().domain+"/v"+w.parseInt(M6.CommentsBox.config.version,10)+"/"+routes[route]},stats:function(route){if(true===M6.CommentsBox.config.sample){var domain=M6.CommentsBox.host().name,node="service.comments."+domain+"."+route;if("undefined"!==typeof M6.CommentsBox.config.domains[domain].stats&&"string"===typeof M6.CommentsBox.config.domains[domain].stats[route]){var statsImg=new Image;statsImg.src="http://mon.m6web.fr/statsd/"+node+"/increment?token="+M6.CommentsBox.config.domains[domain].stats[route]}else{throw new Error("M6.CommentsBox.stats: Stats token or route are not valid")}}},cors:function(method,url,parameters,success,error){method="string"===typeof method&&"POST"===method?"POST":"GET";if("undefined"!==typeof w.XMLHttpRequest||"undefined"!==typeof w.XDomainRequest){var xhr="undefined"!==typeof w.XDomainRequest?w.XDomainRequest():new w.XMLHttpRequest,datas=[];xhr.open(method,url,true);if(-1!==w.location.host.search(/\.dev\./i)){xhr.withCredentials=true}if("object"===typeof parameters&&null!==parameters){for(var i in parameters){if(true===parameters.hasOwnProperty(i)){if("object"===typeof parameters[i]){for(var j in parameters[i]){if(true===parameters[i].hasOwnProperty(j)){datas.push(M6.CommentsBox.encodeString(i)+"["+M6.CommentsBox.encodeString(j)+"]="+M6.CommentsBox.encodeString(parameters[i][j]))}}}else{datas.push(M6.CommentsBox.encodeString(i)+"="+M6.CommentsBox.encodeString(parameters[i]))}}}datas=datas.join("&");if("function"===typeof xhr.setRequestHeader){xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded")}}if("undefined"!==typeof w.XDomainRequest){xhr.onload=function(){if("function"===typeof success){success({responseText:xhr.responseText})}}}else{xhr.onreadystatechange=function(){if(4===xhr.readyState&&(200==xhr.status||204==xhr.status||1223==xhr.status)){if("function"===typeof success){success(xhr)}}if(4===xhr.readyState&&400<=xhr.status&&500>xhr.status){if("function"===typeof error){error(xhr)}}}}xhr.onerror=function(){if("function"===typeof success){success(xhr)}throw new ReferenceError("M6.CommentsBox.post: Error during XHR call")};xhr.send(01?"Plural":"")];case offset<86400:value=Math.floor(offset/3600);return M6.CommentsBox.config.locale.timeAgo+" "+value+" "+M6.CommentsBox.config.locale["timeHoursAgo"+(value>1?"Plural":"")];case offset<2592e3:value=Math.floor(offset/86400);return M6.CommentsBox.config.locale.timeAgo+" "+value+" "+M6.CommentsBox.config.locale["timeDaysAgo"+(value>1?"Plural":"")];default:return new Date(time).toLocaleString().replace(/^(\d{1})\//,"0$1/").replace(/\/(\d{1})\//,"/0$1/")}};var authDelegate=new w.fyre.conv.RemoteAuthDelegate;authDelegate.login=function(handler){M6.CommentsBox.login(true);handler.success()};authDelegate.logout=function(){if("clubic"===M6.CommentsBox.host().name){w.$("#user_barre li.deconnect").trigger("click")}else{if("function"===typeof w.$){if(M6.CommentsBox.config.domains[domain].logoutEvent){w.$(window).trigger(M6.CommentsBox.config.domains[domain].logoutEvent)}else{w.$(window).trigger("user.loggedOut")}}}};authDelegate.viewProfile=function(handler,author){if("string"===typeof author.profileUrl&&0===author.profileUrl.search(/https?:\/\//i)){w.location.href=author.profileUrl}handler.success()};authDelegate.editProfile=function(handler,author){if("string"===typeof author.settingsUrl&&0===author.settingsUrl.search(/https?:\/\//i)){w.location.href=author.settingsUrl}else{var profileUrl=M6.CommentsBox.config.domains[M6.CommentsBox.host().name].profileUrl;if("string"===typeof profileUrl){w.location.href=profileUrl}}handler.success()};d.getElementById(M6.CommentsBox.config.node).innerHTML="";if("function"===typeof w.$){if(M6.CommentsBox.config.domains[domain].loginEvent){w.$(window).bind(M6.CommentsBox.config.domains[domain].loginEvent,function(){M6.CommentsBox.login()})}else{w.$(window).bind("user.loggedIn",function(){M6.CommentsBox.login()})}}w.fyre.conv.load({network:meta.network,strings:M6.CommentsBox.config.locale,authDelegate:authDelegate},[meta],function(instance){instance.on("initialRenderComplete",function(){if(null!==d.getElementById(M6.CommentsBox.config.node).querySelector("#loadingLF")){d.getElementById(M6.CommentsBox.config.node).querySelector("#loadingLF").parentNode.removeChild(d.getElementById.querySelector("#loadingLF"))}if(null!==d.getElementById(M6.CommentsBox.config.node).querySelector("#mobileLF")){d.getElementById(M6.CommentsBox.config.node).querySelector("#mobileLF").parentNode.removeChild(d.getElementById.querySelector("#mobileLF"))}M6.CommentsBox.login();M6.CommentsBox.cssFix();M6.CommentsBox.stats("loaded");if(null!==d.querySelector("#"+M6.CommentsBox.config.node+" .fyre-stream-more")){d.querySelector("#"+M6.CommentsBox.config.node+" .fyre-stream-more").onclick=function(){setTimeout(function(){M6.CommentsBox.cssFix()},1e3)}}if("function"===typeof w.$){setTimeout(function(){w.$("#"+M6.CommentsBox.config.node+" .fyre-box-list").on("click",".fyre-notif-link a",function(){if("function"===typeof w.$.modal){w.$.modal({title:M6.CommentsBox.config.locale.notificationTitle,url:M6.CommentsBox.config.notif,width:"540px"})}else if("function"===typeof w.$.facebox){w.$.facebox({titre:M6.CommentsBox.config.locale.notificationTitle,url:M6.CommentsBox.config.notif,width:"540px"})}});w.$("#"+M6.CommentsBox.config.node+" .fyre-auth .fyre-box-list").prepend("");if(w.$("#"+M6.CommentsBox.config.node+" .fyre-box-list .fyre-admin-link").length){var url="http://admin."+meta.network+"/v3/site/"+meta.siteId+"/content?"+"q=*&conv_id="+instance.getCollection().attributes.id+"&max=all&order=created";w.$("#"+M6.CommentsBox.config.node+" .fyre-box-list .fyre-admin-link a").attr("href",url)}},1e3)}if("function"===typeof M6.CommentsBox.config.callbacks.init){M6.CommentsBox.config.callbacks.init(instance)}});instance.on("userLoggedIn",function(data){M6.CommentsBox.tracking("login");d.getElementById(M6.CommentsBox.config.node).className+=" loggedin";if("function"===typeof M6.CommentsBox.config.callbacks.loggedin){M6.CommentsBox.config.callbacks.loggedin(data,instance)}});instance.on("commentPosted",function(data){M6.CommentsBox.tracking("post");M6.CommentsBox.stats("posted");M6.CommentsBox.cssFix();if("function"===typeof M6.CommentsBox.config.callbacks.posted){M6.CommentsBox.config.callbacks.posted(data,instance)}});instance.on("commentFlagged",function(data){M6.CommentsBox.tracking("flag");if("function"===typeof M6.CommentsBox.config.callbacks.flagged){M6.CommentsBox.config.callbacks.flagged(data,instance)}});instance.on("commentLiked",function(data){M6.CommentsBox.tracking("like");if("function"===typeof M6.CommentsBox.config.callbacks.liked){M6.CommentsBox.config.callbacks.like(data,instance)}});instance.on("commentShared",function(data){if("function"===typeof M6.CommentsBox.config.callbacks.shared){M6.CommentsBox.config.callbacks.share(data,instance)}});instance.on("socialMention",function(data){if("function"===typeof M6.CommentsBox.config.callbacks.social){M6.CommentsBox.config.callbacks.social(data,instance)}})})}catch(xhr){throw new Error("M6.CommentsBox.init: Unable to get meta informations (response: "+xhr.responseText+")")}}};w.M6=M6})(document,window);