Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(variable_02, variable_03, variable_04) {
- "use strict";
- if (typeof(module) !== "undefined" && module["exports"]) {
- module["exports"] = variable_04(variable_03, variable_02)
- } else {
- if (typeof(define) === "function" && define["amd"]) {
- define("detect-zoom", function() {
- return variable_04(variable_03, variable_02)
- })
- } else {
- variable_02[variable_03] = variable_04(variable_03, variable_02)
- }
- }
- }(window, "detectZoom", function() {
- (function(variable_02, variable_03, variable_04) {
- "use strict";
- if (typeof(module) !== "undefined" && module["exports"]) {
- module["exports"] = variable_04(variable_03, variable_02)
- } else {
- if (typeof(define) === "function" && define["amd"]) {
- define("detect-zoom", function() {
- return variable_04(variable_03, variable_02)
- })
- } else {
- variable_02[variable_03] = variable_04(variable_03, variable_02)
- }
- }
- }(window, "detectZoom", function() {
- var variable_1 = function() {
- return window["devicePixelRatio"] || 1
- };
- var variable_2 = function() {
- return {
- zoom: 1,
- devicePxPerCssPx: 1
- }
- };
- var variable_0 = function() {
- var variable_3 = Math["round"]((screen["deviceXDPI"] / screen["logicalXDPI"]) * 100) / 100;
- return {
- zoom: variable_3,
- devicePxPerCssPx: variable_3 * variable_1()
- }
- };
- var variable_4 = function() {
- var variable_3 = Math["round"]((document["documentElement"]["offsetHeight"] / window["innerHeight"]) * 100) / 100;
- return {
- zoom: variable_3,
- devicePxPerCssPx: variable_3 * variable_1()
- }
- };
- var variable_5 = function() {
- var variable_3 = Math["round"](((window["outerWidth"]) / window["innerWidth"]) * 100) / 100;
- return {
- zoom: variable_3,
- devicePxPerCssPx: variable_3 * variable_1()
- }
- };
- var variable_6 = function() {
- var variable_3 = Math["round"](((document["documentElement"]["clientWidth"]) / window["innerWidth"]) * 100) / 100;
- return {
- zoom: variable_3,
- devicePxPerCssPx: variable_3 * variable_1()
- }
- };
- var variable_7 = function() {
- var variable_8 = (Math["abs"](window["orientation"]) == 90) ? screen["height"] : screen["width"];
- var variable_3 = variable_8 / window["innerWidth"];
- return {
- zoom: variable_3,
- devicePxPerCssPx: variable_3 * variable_1()
- }
- };
- var variable_9 = function() {
- var variable_10 = function(variable_11) {
- return variable_11["replace"](/;/g, " !important;")
- };
- var variable_12 = document["createElement"]("div");
- variable_12["innerHTML"] = "1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>0";
- variable_12["setAttribute"]("style", variable_10("font: 100px/1em sans-serif; -webkit-text-size-adjust: none; text-size-adjust: none; height: auto; width: 1em; padding: 0; overflow: visible;"));
- var variable_13 = document["createElement"]("div");
- variable_13["setAttribute"]("style", variable_10("width:0; height:0; overflow:hidden; visibility:hidden; position: absolute;"));
- variable_13["appendChild"](variable_12);
- document["body"]["appendChild"](variable_13);
- var variable_3 = 1000 / variable_12["clientHeight"];
- variable_3 = Math["round"](variable_3 * 100) / 100;
- document["body"]["removeChild"](variable_13);
- return {
- zoom: variable_3,
- devicePxPerCssPx: variable_3 * variable_1()
- }
- };
- var variable_14 = function() {
- var variable_3 = variable_21("min--moz-device-pixel-ratio", "", 0, 10, 20, 0.0001);
- variable_3 = Math["round"](variable_3 * 100) / 100;
- return {
- zoom: variable_3,
- devicePxPerCssPx: variable_3
- }
- };
- var variable_15 = function() {
- return {
- zoom: variable_14()["zoom"],
- devicePxPerCssPx: variable_1()
- }
- };
- var variable_20 = function() {
- var variable_3 = window["top"]["outerWidth"] / window["top"]["innerWidth"];
- variable_3 = Math["round"](variable_3 * 100) / 100;
- return {
- zoom: variable_3,
- devicePxPerCssPx: variable_3 * variable_1()
- }
- };
- var variable_21 = function(variable_22, variable_23, variable_24, variable_25, variable_26, variable_27) {
- var variable_28;
- var variable_29, variable_2a, variable_12;
- if (window["matchMedia"]) {
- variable_28 = window["matchMedia"]
- } else {
- variable_29 = document["getElementsByTagName"]("head")[0];
- variable_2a = document["createElement"]("style");
- variable_29["appendChild"](variable_2a);
- variable_12 = document["createElement"]("div");
- variable_12["className"] = "mediaQueryBinarySearch";
- variable_12["style"]["display"] = "none";
- document["body"]["appendChild"](variable_12);
- variable_28 = function(variable_2b) {
- variable_2a["sheet"]["insertRule"]("@media " + variable_2b + "{.mediaQueryBinarySearch " + "{text-decoration: underline} }", 0);
- var variable_2c = getComputedStyle(variable_12, null)["textDecoration"] == "underline";
- variable_2a["sheet"]["deleteRule"](0);
- return {
- matches: variable_2c
- }
- }
- };
- var variable_2d = variable_2e(variable_24, variable_25, variable_26);
- if (variable_12) {
- variable_29["removeChild"](variable_2a);
- document["body"]["removeChild"](variable_12)
- };
- return variable_2d;
- function variable_2e(variable_24, variable_25, variable_26) {
- var variable_2f = (variable_24 + variable_25) / 2;
- if (variable_26 <= 0 || variable_25 - variable_24 < variable_27) {
- return variable_2f
- };
- var variable_2b = "(" + variable_22 + ":" + variable_2f + variable_23 + ")";
- if (variable_28(variable_2b)["matches"]) {
- return variable_2e(variable_2f, variable_25, variable_26 - 1)
- } else {
- return variable_2e(variable_24, variable_2f, variable_26 - 1)
- }
- }
- };
- var variable_00 = (function() {
- var variable_01 = variable_2;
- if (!isNaN(screen["logicalXDPI"]) && !isNaN(screen["systemXDPI"])) {
- variable_01 = variable_0
- } else {
- if (window["navigator"]["msMaxTouchPoints"]) {
- variable_01 = variable_4
- } else {
- if (!!window["chrome"] && !(!!window["opera"] || navigator["userAgent"]["indexOf"](" Opera") >= 0)) {
- variable_01 = variable_5
- } else {
- if (Object["prototype"]["toString"]["call"](window.HTMLElement)["indexOf"]("Constructor") > 0) {
- variable_01 = variable_6
- } else {
- if ("orientation" in window && "webkitRequestAnimationFrame" in window) {
- variable_01 = variable_7
- } else {
- if ("webkitRequestAnimationFrame" in window) {
- variable_01 = variable_9
- } else {
- if (navigator["userAgent"]["indexOf"]("Opera") >= 0) {
- variable_01 = variable_20
- } else {
- if (window["devicePixelRatio"]) {
- variable_01 = variable_15
- } else {
- if (variable_14()["zoom"] > 0.001) {
- variable_01 = variable_14
- }
- }
- }
- }
- }
- }
- }
- }
- };
- return variable_01
- }());
- return ({
- zoom: function() {
- return variable_00()["zoom"]
- },
- device: function() {
- return variable_00()["devicePxPerCssPx"]
- }
- })
- }));
- function powersize() {
- var variable_3 = detectZoom["zoom"]();
- var variable_06 = detectZoom["device"]();
- function variable_07() {
- return navigator["platform"]["indexOf"]("Mac") > -1
- }
- function variable_08() {
- return navigator["platform"]["indexOf"]("Win") > -1
- }
- if (variable_06 >= 1.20 && variable_3 >= 1 && variable_3 <= 1.1) {
- $("html")["css"]({
- "zoom": "0.8",
- "-ms-zoom:": "0.8",
- "-webkit-zoom": "0.8"
- });
- $("#largeade")["css"]({
- "left": "-150px",
- "zoom": "1.25",
- "-ms-zoom:": "1.25",
- "-webkit-zoom": "1.25"
- });
- $("#littleads")["css"]({
- "zoom": "1.25",
- "-ms-zoom:": "1.25",
- "-webkit-zoom": "1.25"
- })
- } else {
- if (variable_3 == 0.8) {
- $("html")["css"]({
- "zoom": "1",
- "-ms-zoom:": "1",
- "-webkit-zoom": "1"
- })
- } else {
- if (variable_3 == 0.9) {
- $("html")["css"]({
- "zoom": "1.12",
- "-ms-zoom:": "1.12",
- "-webkit-zoom": "1.12"
- })
- } else {
- if (variable_3 == 1.25) {
- $("html")["css"]({
- "zoom": "0.8",
- "-ms-zoom:": "0.8",
- "-webkit-zoom": "0.8"
- })
- }
- }
- }
- }
- }
- powersize();
- $(function() {
- var variable_09 = window["location"],
- variable_0a = $("#loader"),
- variable_0b = function(variable_0c, variable_0d) {
- zx = window["location"]["pathname"];
- variable_0a["css"]({
- display: "block"
- });
- document["title"] = "Chargement...";
- $("#HotelManager")["hide"]();
- if (zx == "/hotel") {
- document["title"] = "HabboCity: Hôtel";
- EntrerHotel()
- } else {
- if (zx["substring"](0, 5) == "/room") {
- variable_0a["fadeOut"](400)
- } else {
- $("#HotelManagerLoad")["css"]({
- visibility: "hidden"
- });
- $("#appcontent")["load"](variable_0c + " #appcontent", function(variable_0e, variable_0f, variable_30) {
- displayGoogleAds();
- if (variable_0f == "success") {
- if (detectZoom["device"]() >= 1.20 && detectZoom["zoom"]() >= 1 && detectZoom["zoom"]() <= 1.1) {
- $("#littleads")["css"]({
- "zoom": "1.25",
- "-ms-zoom:": "1.25",
- "-webkit-zoom": "1.25"
- });
- $("#largeade")["css"]({
- "left": "200px",
- "zoom": "1.25",
- "-ms-zoom:": "1.25",
- "-webkit-zoom": "1.25"
- })
- };
- $("html")["css"]({
- "overflow": "auto"
- });
- document["title"] = variable_0d;
- if (variable_0d == null) {
- $("html")["css"]({
- "overflow": "auto"
- });
- document["title"] = "HabboCity"
- };
- $(document)["lazyload"]();
- $(".play > video")["attr"]("src", "app/assets/img/habbo.mp4");
- variable_0a["fadeOut"](400);
- $("html, body")["animate"]({
- scrollTop: 0
- }, "slow")
- } else {
- window["location"]["href"] = "/introuvable"
- }
- })
- }
- }
- };
- $(document)["ready"](function() {
- $("a")["live"]("click", function(variable_31) {
- var variable_32 = $(this)["attr"]("href"),
- variable_33 = $(this)["attr"]("room");
- if (variable_32 == "hotel") {
- EntrerHotel();
- return false
- } else {
- if (typeof variable_33 !== typeof undefined && variable_33 !== false) {
- EntrerHotel(variable_33);
- return false
- } else {
- if (variable_32 != "deconnexion") {
- variable_31["preventDefault"]()
- };
- var variable_25 = $(this)["attr"]("target"),
- variable_31 = $(this)["attr"]("place");
- if (variable_25 == "blank") {
- window["open"](variable_32, "_blank")
- } else {
- history["pushState"](variable_31, null, variable_32);
- variable_0b(variable_32, variable_31)
- }
- }
- }
- })
- });
- window["addEventListener"]("popstate", function(variable_31) {
- $("html")["css"]({
- overflow: "auto"
- });
- var variable_34 = variable_31["state"];
- variable_0b(document["location"], variable_34)
- })
- });
- (function(variable_35) {
- variable_35["fn"]["lazyload"] = function() {
- variable_35(window)["scroll"](variable_36);
- variable_36()
- };
- function variable_36() {
- var variable_32 = variable_35(window)["scrollTop"](),
- variable_37 = variable_35(window)["height"]();
- variable_35("img.lazy")["each"](function() {
- var variable_38 = variable_35(this)["offset"]()["top"];
- if (variable_38 < (variable_37 + variable_32 + 100)) {
- variable_35(this)["attr"]("src", variable_35(this)["data"]("src"))["fadeOut"](0)["removeClass"]("lazy")["removeAttr"]("data-src")["fadeIn"](1000)
- }
- })
- }
- })(jQuery);
- $(document)["ready"](function() {
- $(document)["lazyload"]()
- });
- $("#userbarre")["live"]("click", function() {
- var variable_39 = $("#usertoggle"),
- variable_3a = $("#userfleche");
- if (variable_39["is"](":visible")) {
- variable_39["slideUp"](150);
- variable_3a["animate"]({
- textIndent: 0
- }, {
- step: function(variable_3b, variable_3c) {
- $(this)["css"]("-webkit-transform", "rotate(" + variable_3b + "deg)")
- },
- duration: 250
- }, "linear")
- } else {
- variable_3a["animate"]({
- textIndent: 180
- }, {
- step: function(variable_3b, variable_3c) {
- $(this)["css"]("-webkit-transform", "rotate(" + variable_3b + "deg)")
- },
- duration: 250
- }, "linear");
- variable_39["slideDown"](150)
- };;
- });
- var us4 = $("#usernotif");
- setInterval(function() {
- us4["animate"]({
- top: "-14"
- }, 400)
- }, 400);
- setInterval(function() {
- us4["animate"]({
- top: "-8"
- }, 400)
- }, 400);
- $(".community_hover")["live"]("hover", function() {
- $(".menu_community_hover")["fadeIn"](100);
- $(".menu_palmares_hover")["fadeOut"](100)
- });
- $(".palmares_hover")["live"]("hover", function() {
- $(".menu_palmares_hover")["fadeIn"](100);
- $(".menu_community_hover")["fadeOut"](100)
- });
- $(".normal_hover")["live"]("hover", function() {
- $(".menu_community_hover")["fadeOut"](100);
- $(".menu_palmares_hover")["fadeOut"](100)
- });
- $(".menu")["live"]("mouseleave", function() {
- $(".menu_community_hover")["fadeOut"](100);
- $(".menu_palmares_hover")["fadeOut"](100)
- });
- function MenuScroll() {
- var variable_34 = $(".menu");
- if ($(window)["scrollTop"]() > 124) {
- variable_34["css"]({
- "position": "fixed",
- "z-index": "9999999"
- })
- } else {
- variable_34["css"]({
- "position": "relative",
- "z-index": "99"
- })
- }
- }
- $(window)["scroll"](MenuScroll);
- MenuScroll();
- function NewsSignale() {
- var variable_40 = $("#articlesignale");
- if ($(window)["scrollTop"]() > 0) {
- variable_40["css"]({
- "bottom": "18px",
- "right": "calc(15% - 70px)"
- })
- } else {
- variable_40["css"]({
- "bottom": "calc(100% - 295px)",
- "right": "calc(15% - 70px)"
- })
- }
- }
- $(window)["scroll"](NewsSignale);
- NewsSignale();
- $(window)["load"](function() {
- var variable_41, variable_42, variable_43, variable_44, variable_45;
- $("#stories")["live"]("mousedown", function(variable_31) {
- variable_31["preventDefault"]();
- variable_45 = true;
- variable_41 = variable_31["pageX"];
- variable_42 = variable_31["pageY"];
- variable_43 = $(this)["scrollTop"]();
- variable_44 = $(this)["scrollLeft"]()
- });
- $("body")["live"]("mousemove", function(variable_31) {
- if (variable_45) {
- var variable_46 = variable_31["pageX"];
- var variable_47 = variable_31["pageY"];
- $("#stories")["scrollLeft"](variable_44 - variable_46 + variable_41)
- }
- });
- $("body")["live"]("mouseup", function(variable_31) {
- variable_45 = false
- })
- })
- function NewsLeft() {
- var a = $("#articlesui"),
- right = parseInt(a.css("right")) - 420;
- if (right > -420) {
- a.animate({
- right
- }, 120);
- }
- }
- $(document)["ready"](function() {
- $("#editeur")["live"]("click", function(variable_16) {
- var variable_17 = $(this)["html"]();
- if (variable_17 == "écrire quelque chose...") {
- $(this)["html"]("")
- }
- })
- });
- $(document)["ready"](function() {
- $("#editeurchat")["live"]("click", function(variable_16) {
- var variable_17 = $(this)["html"]();
- if (variable_17 == "écrire quelque chose...") {
- $(this)["html"]("")
- }
- })
- })
- function NewsRight() {
- var a = $("#articlesui"),
- right = parseInt(a.css("right")) + 420;
- if (right < 2200) {
- a.animate({
- right
- }, 120);
- }
- }
- function MouvConnexion() {
- var variable_18 = $("#FormConnexion");
- variable_18["animate"]({
- right: "15px"
- }, 70);
- variable_18["animate"]({
- right: "-15px"
- }, 70);
- variable_18["animate"]({
- right: "15px"
- }, 70);
- variable_18["animate"]({
- right: "-15px"
- }, 70);
- variable_18["animate"]({
- right: "15px"
- }, 70);
- variable_18["animate"]({
- right: "-15px"
- }, 70);
- variable_18["animate"]({
- right: "15px"
- }, 70);
- variable_18["animate"]({
- right: "0px"
- }, 70)
- }
- function AnimateConnexion() {
- $("#identifiant")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- $("#password")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- MouvConnexion()
- }
- function AnimateCaptchaIndex() {
- $("#captcha")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- $("#identifiant")["css"]({
- border: "0"
- }, 100);
- $("#password")["css"]({
- border: "0"
- }, 100);
- MouvConnexion()
- }
- $(document)["ready"](function() {
- $("#FormConnexion")["live"]("submit", function() {
- var variable_19 = $("#identifiant")["val"](),
- variable_20 = $("#captcha")["val"](),
- variable_21 = $("#password")["val"](),
- variable_22 = Math["floor"](Math["random"]() * (1 - 100000 + 1)) + 100000,
- variable_23 = {
- identifiant: variable_19,
- password: variable_21,
- method: "ajax",
- captcha: variable_20
- },
- variable_24 = $("#indexsubmit");
- if (variable_19 == "" || variable_21 == "") {
- AnimateConnexion()
- } else {
- variable_24["html"]("Chargement...");
- $["ajax"]({
- url: $(this)["attr"]("action"),
- type: $(this)["attr"]("method"),
- data: variable_23,
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- window["location"]["href"] = "profil"
- } else {
- if (variable_25["reponse"] == "erreur") {
- variable_24["html"]("Se connecter");
- AnimateConnexion()
- } else {
- if (variable_25["reponse"] == "bannis") {
- location["href"] = "ban"
- } else {
- if (variable_25["reponse"] == "captcha") {
- $("#loadcaptcha > img")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22);
- variable_24["html"]("Se connecter");
- AnimateCaptchaIndex();
- $("#indexcaptcha")["css"]({
- display: "block"
- })
- } else {
- if ("staff") {
- $("#secu1")["css"]({
- visibility: "visible"
- });
- $("#secuload")["load"]("app/load/GoogleSecurity.php?pseudo=" + variable_25["pseudo"], function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- $("#secu3")["text"](variable_25["pseudo"] + " ton compte est bloqué")
- }
- })
- }
- }
- }
- }
- }
- }
- })
- };
- return false
- })
- });
- $(document)["ready"](function() {
- $("#identifiant")["live"]("keyup", function() {
- var variable_29 = $(this)["val"](),
- variable_18 = $("#indexusername > a");
- if (variable_29 == "") {
- variable_18["html"]("HEY")
- } else {
- variable_18["html"](variable_29)
- };
- var variable_23 = "username=" + variable_29;
- if (variable_29["length"] > 0) {
- $["ajax"]({
- type: "GET",
- url: "app/actions/PlayerGetFigure.php",
- data: variable_23,
- dataType: "json",
- success: function(variable_25) {
- var variable_30 = variable_25["reponse"] + "&size=l&direction=2&head_direction=2";
- $("#indexfigure > img")["attr"]("src", variable_30)
- }
- })
- }
- })
- });
- function SetLook(variable_30, variable_181, variable_182) {
- var variable_183 = variable_181 + variable_30 + "&direction=4&head_direction=3&action=sit&gesture=sml&size=l",
- variable_184 = $("#setlook > img");
- variable_184["fadeOut"](0);
- variable_184["attr"]("src", variable_183);
- variable_184["fadeIn"](500);
- $("#figurejs")["html"]("<input id="
- figure_id " value="
- " + variable_30 + "
- "></input>");
- $("#genderjs")["html"]("<input id="
- gender " value="
- " + variable_182 + "
- "></input>")
- }
- function RegisterNext() {
- $("#choisistonlook")["fadeIn"](500)
- }
- function CloseRegisterNext() {
- $("#choisistonlook")["css"]({
- "display": "none"
- })
- }
- function MouvInscription() {
- var variable_188 = $("#FormInscription");
- variable_188["animate"]({
- right: "15px"
- }, 70);
- variable_188["animate"]({
- right: "-15px"
- }, 70);
- variable_188["animate"]({
- right: "15px"
- }, 70);
- variable_188["animate"]({
- right: "-15px"
- }, 70);
- variable_188["animate"]({
- right: "15px"
- }, 70);
- variable_188["animate"]({
- right: "-15px"
- }, 70);
- variable_188["animate"]({
- right: "15px"
- }, 70);
- variable_188["animate"]({
- right: "0px"
- }, 70)
- }
- function ResetInscription() {
- $("#username")["css"]({
- border: "0"
- }, 100);
- $("#mail")["css"]({
- border: "0"
- }, 100);
- $("#password")["css"]({
- border: "0"
- }, 100);
- $("#repassword")["css"]({
- border: "0"
- }, 100);
- $("#captcha")["css"]({
- border: "0"
- }, 100)
- }
- function AnimateInscription() {
- ResetInscription();
- $("#choisistonlook")["fadeOut"](100);
- $("#username")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- $("#mail")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- $("#password")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- $("#repassword")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- $("#captcha")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- MouvInscription()
- }
- function AnimatePassword() {
- ResetInscription();
- $("#choisistonlook")["fadeOut"](100);
- $("#password")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- $("#repassword")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- MouvInscription()
- }
- function AnimateMail() {
- ResetInscription();
- $("#choisistonlook")["fadeOut"](100);
- $("#mail")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- MouvInscription()
- }
- function AnimatePseudo() {
- ResetInscription();
- $("#choisistonlook")["fadeOut"](100);
- $("#username")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- MouvInscription()
- }
- function AnimateCaptcha() {
- ResetInscription();
- $("#choisistonlook")["fadeOut"](100);
- $("#captcha")["css"]({
- border: "3px solid rgb(242,91,99)"
- }, 100);
- MouvInscription()
- }
- function JeSuisPret() {
- $("#lookchoisis2")["html"]("");
- $("#lookchoisis")["html"]("<button onclick="
- LookChoisis()
- " style="
- width: 100 % ;
- " type="
- submit " id="
- registerpret ">Je suis prêt</button>")
- }
- function validateEmail(variable_311) {
- var variable_312 = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
- return variable_312["test"](variable_311)
- }
- $(document)["ready"](function() {
- var variable_313 = $("#FormInscription");
- variable_313["live"]("submit", function() {
- var variable_22 = Math["floor"](Math["random"]() * (1 - 100000 + 1)) + 100000,
- variable_314 = $("#username")["val"](),
- variable_315 = $("#mail")["val"](),
- variable_21 = $("#password")["val"](),
- variable_316 = $("#repassword")["val"](),
- variable_20 = $("#captcha")["val"](),
- variable_183 = $("#figure_id")["val"](),
- variable_182 = $("#gender")["val"](),
- variable_23 = {
- pseudo: variable_314,
- mail: variable_315,
- password: variable_21,
- repassword: variable_316,
- captcha: variable_20,
- figure: variable_183,
- gender: variable_182,
- method: "ajax"
- };
- if (variable_314 == "" || variable_314["length"] < 4 || variable_314["length"] > 25) {
- JeSuisPret();
- AnimatePseudo()
- } else {
- if (variable_315 == "") {
- JeSuisPret();
- AnimateMail()
- } else {
- if (variable_21 == "" || variable_316 == "" || variable_21 != variable_316) {
- JeSuisPret();
- AnimatePassword()
- } else {
- if (variable_20 == "") {
- JeSuisPret();
- AnimateCaptcha()
- } else {
- if (validateEmail(variable_315)) {
- var variable_317 = $("#registerpret");
- variable_317["html"]("Chargement...");
- $["ajax"]({
- url: $(this)["attr"]("action"),
- type: $(this)["attr"]("method"),
- data: variable_23,
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- window["location"]["href"] = "profil"
- } else {
- if (variable_25["reponse"] == "pseudo") {
- $("#lookchoisis2")["html"]("");
- $("#lookchoisis")["html"]("<button onclick="
- LookChoisis()
- " style="
- width: 100 % ;
- " type="
- submit " id="
- registerpret ">Je suis prêt</button>");
- AnimatePseudo();
- variable_317["html"]("Je suis prêt");
- JeSuisPret()
- } else {
- if (variable_25["reponse"] == "email") {
- AnimateMail();
- variable_317["html"]("Je suis prêt");
- JeSuisPret()
- } else {
- if (variable_25["reponse"] == "captcha") {
- $("#loadcaptcha > img")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22);
- AnimateCaptcha();
- variable_317["html"]("Je suis prêt");
- JeSuisPret()
- } else {
- if (variable_25["reponse"] == "password") {
- AnimatePassword();
- variable_317["html"]("Je suis prêt");
- JeSuisPret()
- } else {
- if (variable_25["reponse"] == "erreur") {
- JeSuisPret();
- variable_317["html"]("Je suis prêt");
- AnimateInscription()
- }
- }
- }
- }
- }
- }
- }
- })
- } else {
- JeSuisPret();
- AnimateMail()
- }
- }
- }
- }
- };
- return false
- })
- });
- function LoadPageSupport(variable_181, variable_319) {
- var variable_31a = $("#footer31");
- variable_31a["html"]("Chargement en cours...");
- $("#footer23")["load"](variable_181, function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- variable_31a["html"](variable_319)
- } else {
- window["location"]["href"] = baseUrl + "/introuvable"
- }
- })
- }
- function OpenSupportToPage(variable_181, variable_319) {
- LoadPageSupport(variable_181, variable_319);
- $("#support")["fadeIn"](500);
- $("html")["css"]({
- overflow: "hidden"
- })
- }
- function OpenSupport(variable_31d, variable_181) {
- var variable_31e = $("#footer31"),
- variable_31f = $("#footer23");
- if (variable_31d == "forum") {
- variable_31e["html"]("Chargement en cours...");
- variable_31f["load"]("app/load/HelpIndex.php", function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- variable_31e["html"]("Besoin d'aide ?");
- $("#helpmenu")["prepend"]("<div onclick="
- LoadPageSupport('" + variable_181 + "', 'Abus sur le forum')
- " id="
- footer34 ">Quelqu'un se comporte mal sur le forum</div>")
- } else {
- window["location"]["href"] = baseUrl + "/introuvable"
- }
- })
- } else {
- if (variable_31d == "news") {
- variable_31e["html"]("Chargement en cours...");
- variable_31f["load"]("app/load/HelpIndex.php", function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- variable_31e["html"]("Besoin d'aide ?");
- $("#helpmenu")["prepend"]("<div onclick="
- LoadPageSupport('" + variable_181 + "', 'Abus sur un article')
- " id="
- footer34 ">Quelqu'un se comporte mal dans les commentaires</div>")
- } else {
- window["location"]["href"] = baseUrl + "/introuvable"
- }
- })
- } else {
- if (variable_31d == "user") {
- variable_31e["html"]("Chargement en cours...");
- variable_31f["load"]("app/load/HelpIndex.php", function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- variable_31e["html"]("Besoin d'aide ?");
- $("#helpmenu")["prepend"]("<div onclick="
- LoadPageSupport('" + variable_181 + "', 'Abus sur le chat')
- " id="
- footer34 ">Quelqu'un se comporte mal sur le chat</div>")
- } else {
- window["location"]["href"] = baseUrl + "/introuvable"
- }
- })
- } else {
- LoadPageSupport("app/load/HelpIndex.php", "Besoin d'aide ?")
- }
- }
- };
- $("#support")["fadeIn"](500);
- $("html")["css"]({
- overflow: "hidden"
- })
- }
- function CloseSupport() {
- $("#support")["fadeOut"](500);
- $("html")["css"]({
- overflow: "auto"
- })
- }
- function SelectForumSupport(variable_322, variable_314, variable_323) {
- $(".footer42")["each"](function() {
- $(this)["css"]({
- background: "transparent"
- })
- });
- $("#fofo" + variable_322)["css"]({
- background: "rgb(127,127,127)"
- });
- $("#footer39")["html"](variable_314);
- $("#footer38")["css"]({
- background: "url(https://avatar-retro.com/habbo-imaging/avatarimage?figure=" + variable_323 + "&headonly=1&direction=4&head_direction=3&size=l)"
- });
- $("#content2")["html"](variable_322)
- }
- function AnimateHelp() {
- var variable_325 = $("#footer47");
- variable_325["animate"]({
- left: "10px"
- }, 70);
- variable_325["animate"]({
- left: "-10px"
- }, 70);
- variable_325["animate"]({
- left: "10px"
- }, 70);
- variable_325["animate"]({
- left: "-10px"
- }, 70);
- variable_325["animate"]({
- left: "10px"
- }, 70);
- variable_325["animate"]({
- left: "-10px"
- }, 70);
- variable_325["animate"]({
- left: "10px"
- }, 70);
- variable_325["animate"]({
- left: "-10px"
- }, 70);
- variable_325["animate"]({
- left: "10px"
- }, 70);
- variable_325["animate"]({
- left: "0px"
- }, 70)
- }
- function SupportNext() {
- var variable_18 = $("#footer41"),
- variable_31e = $("#footer47"),
- variable_31f = $("#footer34"),
- variable_327 = $("#footer40");
- if (variable_18["is"](":visible")) {
- variable_31e["show"]();
- variable_18["hide"]();
- variable_31f["text"]("Retour");
- variable_327["text"]("Choisis le sujet qui correspond le plus à ta demande.")
- } else {
- if (variable_31e["is"](":visible")) {
- variable_31e["hide"]();
- variable_18["show"]();
- variable_327["text"]("Choisis le habbo à signaler.");
- variable_31f["text"]("Suivant")
- }
- }
- }
- function SupportFinal(variable_329) {
- var variable_31d = $("#type")["html"](),
- variable_32a = $("#content")["html"](),
- variable_32b = $("#content2")["html"](),
- variable_32c = $("#footer34");
- variable_32c["text"]("Chargement...");
- $["ajax"]({
- type: "POST",
- url: "app/actions/Report.php",
- data: {
- type: variable_31d,
- content: variable_32a,
- contenu_text: variable_32b,
- signalement: variable_329
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- variable_32c["animate"]({
- top: "200px"
- }, 100);
- $("#footer40")["text"]("");
- variable_32c["text"]("Succès! Veille à ne pas abuser de cet outil.");
- $("#footer47")["hide"](340)
- } else {
- if (variable_25["reponse"] == "erreur") {
- AnimateHelp()
- }
- }
- }
- })
- }
- function balise(variable_32e, variable_32f) {
- if (typeof variable_32f === "undefined") {
- variable_32f = ""
- };
- switch (variable_32e) {
- case "createLink":
- variable_32f = prompt("Quelle est l'adresse du lien ?", "http://");
- break;
- case "insertImage":
- variable_32f = prompt("Quelle est l'adresse de l'image ?");
- break;
- case "redcolor":
- document["execCommand"]("foreColor", false, "#ED1C24");
- break;
- case "vertcolor":
- document["execCommand"]("foreColor", false, "#22B14C");
- break;
- case "bleucolor":
- document["execCommand"]("foreColor", false, "#4286CA");
- break
- };
- document["execCommand"](variable_32e, false, variable_32f);
- var variable_190 = document["getSelection"]();
- variable_190["anchorNode"]["parentElement"]["target"] = "blank"
- }
- $("#ar_reaction")["live"]("hover", function() {
- $("#js_reaction")["animate"]({
- left: "7px"
- }, 500)
- });
- $("#ar_reaction")["live"]("mouseleave", function() {
- $("#js_reaction")["animate"]({
- left: "400px"
- }, 300)
- });
- function Share(variable_192, variable_181) {
- window["open"](variable_192 + variable_181, "nom_popup", "menubar=no, status=no, scrollbars=no, menubar=no, width=200, height=100")
- }
- function React(variable_194, variable_31d, variable_195, variable_196, variable_197) {
- var variable_23 = {
- contentid: variable_194,
- type: variable_31d,
- page: variable_197
- },
- variable_31e = $("#lecture32");
- $["ajax"]({
- type: "POST",
- url: "app/actions/ReactionSent.php",
- data: variable_23,
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "new") {
- var variable_198 = parseInt($("." + variable_196)["html"]()) + 1;
- $("." + variable_196)["html"](variable_198);
- variable_31e["css"]({
- "background-position": variable_195
- }, 100);
- $("#nbreact")["html"](parseInt($("#nbreact")["html"]()) + 1)
- } else {
- if (variable_25["reponse"] == "remove") {
- var variable_198 = parseInt($("." + variable_196)["html"]()) - 1;
- $("." + variable_196)["html"](variable_198);
- $("#nbreact")["html"](parseInt($("#nbreact")["html"]()) - 1);
- variable_31e["css"]({
- "background-position": ""
- }, 100)
- } else {
- if (variable_25["reponse"] == "edit") {
- var variable_322 = ".react" + variable_25["type"];
- var variable_198 = parseInt($("." + variable_196)["html"]()) + 1;
- $(variable_322)["html"](parseInt($(variable_322)["html"]()) - 1);
- $("." + variable_196)["html"](variable_198);
- variable_31e["css"]({
- "background-position": variable_195
- }, 100)
- }
- }
- }
- }
- })
- }
- function LikeStories(variable_322) {
- x = $(".df" + variable_322);
- s = $(".dx" + variable_322);
- $["ajax"]({
- type: "POST",
- url: "app/actions/StoriesLike.php",
- data: {
- id: variable_322
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["type"] == "1") {
- s["html"](parseInt(s["html"]()) + 1);
- x["css"]({
- "transform": "scale(1.5)",
- "top": "26px"
- })
- } else {
- if (variable_25["type"] == "2") {
- s["html"](parseInt(s["html"]()) - 1);
- x["css"]({
- "transform": "scale(1.0)",
- "top": "10px"
- })
- }
- }
- }
- })
- }
- function FlecheStories() {
- var variable_31e = $(".stories");
- if (variable_31e["height"]() == 62) {
- document["cookie"] = "stories=open";
- $("#profil20")["animate"]({
- textIndent: 0
- }, {
- step: function(variable_19b, variable_19c) {
- $(this)["css"]("-webkit-transform", "rotate(" + variable_19b + "deg)")
- },
- duration: 250
- }, "linear");
- variable_31e["animate"]({
- height: "195px"
- })
- } else {
- document["cookie"] = "stories=close";
- $("#profil20")["animate"]({
- textIndent: 180
- }, {
- step: function(variable_19b, variable_19c) {
- $(this)["css"]("-webkit-transform", "rotate(" + variable_19b + "deg)")
- },
- duration: 250
- }, "linear");
- variable_31e["animate"]({
- height: "62px"
- })
- }
- }
- $(".comediteur")["live"]("keydown", function(variable_19d) {
- var variable_19e = (variable_19d["keyCode"] ? variable_19d["keyCode"] : variable_19d["which"]);
- if (variable_19e == 13) {
- return false
- }
- });
- function AddCom(variable_29, variable_323, variable_200, variable_201, variable_202) {
- var variable_31e = $("#lecture42"),
- variable_31f = $(".articlecomsend"),
- variable_327 = $("#commentairesliste");
- variable_31e["fadeOut"]();
- variable_31f["html"]("Chargement...");
- var variable_203 = variable_327["html"](),
- variable_204 = $("#editeur")["html"]()["replace"](/<div>/gi, "<br>")["replace"](/<\/div>/gi, "");
- $["ajax"]({
- type: "POST",
- url: "app/actions/NewsCommentsAdd.php",
- data: {
- contenu: variable_204,
- newsid: variable_200,
- link: variable_202
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- if (variable_203 == "Hey toi, sois le premier à commenter !") {
- variable_327["html"]("")
- };
- if (variable_201 > 10) {
- variable_327["prepend"]($("<div class="
- com " id="
- lecture40 "><div id="
- habboforumbulle "style="
- left: 73 px; top: 35 px;
- "></div><div id="
- articlescombadge "></div><a href="
- profil / " + variable_29 + "
- "><div id="
- articlescomtete " style="
- background: url(" + variable_323 + " & action = std & direction = 2 & head_direction = 2 & gesture = sml & headonly = l & size = l);
- "></div></a><div id="
- lecture41 "><div id="
- articlescomtext "><b>" + variable_29 + "</b> : " + convertmention(variable_204) + "</div></div></div> ")["fadeIn"]())
- } else {
- variable_327["prepend"]($("<div class="
- com " id="
- lecture40 "><div id="
- habboforumbulle "style="
- left: 73 px; top: 35 px;
- "></div><a href="
- profil / " + variable_29 + "
- "><div id="
- articlescomtete " style="
- background: url(" + variable_323 + " & action = std & direction = 2 & head_direction = 2 & gesture = sml & headonly = l & size = l);
- "></div></a><div id="
- lecture41 "><div id="
- articlescomtext "><b>" + variable_29 + "</b> : " + convertmention(variable_204) + "</div></div></div> ")["fadeIn"]())
- };
- variable_31f["html"]("Réagir")
- } else {
- if (variable_25["reponse"] == "erreur") {
- variable_31e["fadeIn"]();
- $("#lecture44")["html"](variable_25["message"]);
- variable_31f["html"]("Réagir")
- }
- }
- }
- })
- }
- function convertmention(variable_206) {
- $str = variable_206;
- $format_search = [/\@(.*?)\ /ig];
- $format_replace = ["<a href="
- profil / $1 " style="
- color: rgb(0, 162, 232);
- "><b>@$1 </b></a>"
- ];
- for (var variable_188 = 0; variable_188 < $format_search["length"]; variable_188++) {
- $str = $str["replace"]($format_search[variable_188], $format_replace[variable_188])
- };
- return $str
- }
- function DeleteCom(variable_208) {
- var variable_23 = "id=" + variable_208;
- $["ajax"]({
- type: "POST",
- url: "app/actions/NewsCommentsRemove.php",
- data: variable_23,
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $(".com" + variable_208)["html"]("<div id="
- lecture40s ">Commentaire supprimé</div>")
- } else {
- if (variable_25["reponse"] == "erreur") {
- alert("Petit soucis: Erreur")
- }
- }
- }
- })
- }
- $(document)["ready"](function() {
- $("#articles20")["live"]("keyup", function() {
- var variable_18 = $("#articles23");
- variable_18["show"]();
- var variable_209 = $(this)["val"]();
- var variable_23 = "search=" + variable_209;
- if (variable_209["length"] > 0) {
- $["ajax"]({
- type: "GET",
- url: "app/actions/NewsSearch.php",
- data: variable_23,
- success: function(variable_20a) {
- $(".searchnews")["html"](variable_20a)["show"]();
- variable_18["hide"]()
- }
- })
- } else {
- $["ajax"]({
- type: "GET",
- url: "app/actions/NewsSearch.php?get=null",
- data: variable_23,
- success: function(variable_20a) {
- $(".searchnews")["html"](variable_20a)["show"]();
- variable_18["hide"]()
- }
- })
- }
- })
- });
- function OpenStream() {
- var variable_31e = $("#stream1"),
- variable_31f = $("#waitstream");
- $("#usernotif")["css"]({
- display: "none"
- });
- variable_31e["animate"]({
- right: "0px"
- }, 500);
- variable_31e["css"]({
- display: "block"
- });
- variable_31f["css"]({
- display: "block"
- });
- $("#getstream")["load"]("app/load/Habbostream.php", function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- variable_31f["css"]({
- display: "none"
- })
- };
- if (variable_27 == "error") {
- alert("Petit soucis: " + variable_28["status"] + ": " + variable_28["statusText"])
- }
- })
- }
- function CloseStream() {
- var variable_31e = $("#stream1");
- variable_31e["animate"]({
- right: "-370px"
- }, 500);
- setTimeout(function() {
- variable_31e["css"]({
- display: "none"
- })
- }, 500)
- }
- function OpenHelpChat() {
- $("#chatemojishelp")["fadeIn"](100)
- }
- function CloseHelpChat() {
- $("#chatemojishelp")["fadeOut"](100)
- }
- function HideNotif(variable_322) {
- $(".hidestream" + variable_322)["fadeOut"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/StreamRemoveNotification.php",
- data: {
- id: variable_322
- },
- success: function(variable_20a) {}
- })
- }
- function GetChat(variable_211) {
- var variable_31e = $("#waitstream"),
- variable_31f = $("#getchat");
- variable_31e["css"]({
- display: "block"
- });
- variable_31f["css"]({
- display: "block"
- });
- variable_31f["load"]("app/load/HabbostreamTalk.php?userid=" + variable_211, function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- variable_31e["css"]({
- display: "none"
- });
- variable_31f["animate"]({
- left: "0px"
- }, 500);
- $(".msgnotif" + variable_211)["css"]({
- display: "none"
- });
- $("#identity" + variable_211)["css"]({
- display: "block"
- });
- $("#chatbox")["animate"]({
- scrollTop: $("#chatbox")["prop"]("scrollHeight")
- }, 500)
- }
- })
- }
- function MouvSendChat() {
- var variable_31e = $("#editeurchat");
- variable_31e["animate"]({
- left: "15px"
- }, 70);
- variable_31e["animate"]({
- left: "25px"
- }, 70);
- variable_31e["animate"]({
- left: "15px"
- }, 70);
- variable_31e["animate"]({
- left: "25px"
- }, 70);
- variable_31e["animate"]({
- left: "15px"
- }, 70);
- variable_31e["animate"]({
- left: "25px"
- }, 70);
- variable_31e["animate"]({
- left: "15px"
- }, 70);
- variable_31e["animate"]({
- left: "25px"
- }, 70)
- }
- function SendMsg(variable_211, variable_323, variable_314) {
- var variable_31e = $("#run"),
- variable_31f = $("#sendchat"),
- variable_214 = $("#editeurchat");
- var run = variable_31e["html"]();
- if (run == "run") {
- variable_31e["html"]("stop");
- variable_31f["html"]("...");
- var variable_216 = variable_214["text"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/StreamSendMessage.php",
- data: {
- message: variable_216,
- userid: variable_211
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $("#chatinlive" + variable_211)["append"]("<div id="
- stream26 "><a href="
- profil / " + variable_314 + "
- "><div id="
- stream27 " style="
- background: url(" + variable_323 + " & headonly = 0 & direction = 2 & head_direction = 2 & action = & gesture = & size = m);
- "></div></a><div id="
- stream29 "></div><div id="
- stream30 "><div id="
- stream33 "></div><div id="
- motto "><b>" + variable_314 + "</b> : " + variable_216 + "</div><div id="
- stream31 ">1 seconde</div></div><div class="
- chatvue " ></div></div>");
- $("#chatbox")["animate"]({
- scrollTop: $("#chatbox")["prop"]("scrollHeight")
- }, 500);
- variable_31f["html"]("Envoyer");
- variable_214["html"]("");
- variable_31e["html"]("run")
- } else {
- if (variable_25["reponse"] == "erreur") {
- variable_31f["html"]("Envoyer");
- variable_214["css"]({
- border: "2px solid #ED1C24",
- height: "30px"
- });
- setTimeout(function() {
- variable_214["css"]({
- border: "0",
- height: "34px"
- })
- }, 700);
- MouvSendChat();
- variable_31e["html"]("run")
- }
- }
- }
- })
- }
- }
- $(document)["ready"](function() {
- $("#stream36")["live"]("keyup", function() {
- var variable_29 = $(this)["val"]();
- var variable_23 = "username=" + variable_29;
- $["ajax"]({
- type: "GET",
- url: "app/actions/StreamSearchFriend.php",
- data: variable_23,
- success: function(variable_20a) {
- $("#friendslist")["html"](variable_20a)["show"]()
- }
- })
- })
- });
- $(".editeurchat")["live"]("keydown", function(variable_19d) {
- var variable_19e = (variable_19d["keyCode"] ? variable_19d["keyCode"] : variable_19d["which"]);
- if (variable_19e == 13) {
- var variable_322 = $("#chatmyid")["html"]();
- var variable_314 = $("#chatmypseudo")["html"]();
- var variable_323 = $("#chatmyavatar")["html"]();
- SendMsg(variable_322, variable_323, variable_314);
- return false
- }
- });
- function CloseChat(variable_211) {
- $("#getchat")["animate"]({
- left: "-400px"
- }, 500);
- $("#identity" + variable_211)["css"]({
- display: "none"
- })
- }
- function CloseTuto() {
- $("#profil51")["fadeOut"](500)
- }
- function ForumPostAdd(variable_21a, variable_183, variable_21b, variable_21c, variable_202) {
- var variable_18 = $("#forum42");
- variable_18["html"]("Chargement...");
- var variable_216 = $("#editeur")["html"]()["replace"](/<div>/gi, "<br>")["replace"](/<\/div>/gi, "");
- $["ajax"]({
- type: "POST",
- url: "app/actions/ForumAddPost.php",
- data: {
- message: variable_216,
- threadid: variable_21a,
- link: variable_202
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $("#lecture42")["fadeOut"]();
- variable_18["html"]("Envoyer mon message");
- $("#forumposts")["append"]($("<div class="
- gjshd " + variable_25["
- id "] + "
- " id="
- forum27 "><div id="
- forum28 "><div id="
- forum29 " style="
- background: url(" + variable_21c + ") center center;
- "><div id="
- teamshadow "><div id="
- teamshadowbox "></div></div><a place="
- HabboCity: " + variable_21b + "
- " href="
- profil / " + variable_21b + "
- "><div id="
- forum30 " style="
- background: url(" + variable_183 + " & headonly = 0 & direction = 2 & head_direction = 2 & size = l);
- "></div></a><div id="
- forum31 "><h2>Par " + variable_21b + "</h2></div><div id="
- forum32 "></div><div id="
- forum33 ">à l'instant</div></div><div id="
- forum34 "><div id="
- forum54 ">Tu dois actualiser la page pour voir tes badges</div></div></div><div id="
- forum37 "><p><div class="
- forummess " + variable_25["
- id "] + "
- "id="
- motto ">" + convertmention(variable_216) + "</div></p><div id="
- forum38 "></div></div><div id="
- forum61 "></div><div onclick="
- ForumEditMsg(" + variable_25["
- id "] + ")
- " id="
- forum62 ">Modifier le message</div><div onclick="
- ForumAction(" + variable_25["
- id "] + ", 'deletepostid')
- " class="
- fghjk " + variable_25["
- id "] + "
- " id="
- forum63 ">Supprimer</div></div>")["fadeIn"](500));
- $("#editeur")["html"]("")
- } else {
- if (variable_25["reponse"] == "erreur") {
- variable_18["html"]("Envoyer mon message");
- $("#lecture42")["fadeIn"]();
- $("#lecture44")["html"](variable_25["message"])
- }
- }
- }
- })
- }
- function ForumAction(variable_21a, variable_31d) {
- if (variable_31d == "epingle") {
- $(".forumt4ep")["html"]("...")
- };
- if (variable_31d == "close") {
- $(".forumt4cl")["html"]("...")
- };
- if (variable_31d == "delete") {
- $(".forumt4de")["html"]("...")
- };
- if (variable_31d == "deletepostid") {
- $(".fghjk" + variable_21a)["html"]("...")
- };
- $["ajax"]({
- type: "POST",
- url: "app/actions/ForumAction.php",
- data: {
- threadid: variable_21a,
- type: variable_31d
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "epingle") {
- if (variable_25["type"] == "add") {
- $(".forumt4ep")["html"]("Epingler le sujet")
- } else {
- if (variable_25["type"] == "rem") {
- $(".forumt4ep")["html"]("Retirer le sujet")
- }
- }
- } else {
- if (variable_25["reponse"] == "close") {
- if (variable_25["type"] == "cadd") {
- $(".forumt4cl")["html"]("Fermer le sujet")
- } else {
- if (variable_25["type"] == "crem") {
- $(".forumt4cl")["html"]("Ouvrir le sujet")
- }
- }
- } else {
- if (variable_25["reponse"] == "delete") {
- window["location"]["href"] = "forum/categorie/mes/1/mes-sujets"
- } else {
- if (variable_25["reponse"] == "deletepostid") {
- $(".gjshd" + variable_21a)["fadeOut"]()
- }
- }
- }
- }
- }
- })
- }
- function ForumEditMsg(variable_322) {
- $("html")["css"]({
- overflow: "hidden"
- });
- $("#forum64")["css"]({
- "display": "block"
- });
- $("#loadeditmsg")["load"]("app/load/ForumEditMessage.php?id=" + variable_322, function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- $("#forum65")["html"]("Modifier un message")
- }
- })
- }
- function ForumEditMsgClose() {
- $("html")["css"]({
- overflow: "auto"
- });
- $("#forum64")["css"]({
- "display": "none"
- })
- }
- function ForumPostEdit(variable_322) {
- $(".editf24")["html"]("Chargement...");
- var variable_216 = $(".messediteur")["html"]()["replace"](/<div>/gi, "<br>")["replace"](/<\/div>/gi, "");
- $["ajax"]({
- type: "POST",
- url: "app/actions/ForumEditPost.php",
- data: {
- id: variable_322,
- message: variable_216
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $(".editf24")["html"]("Envoyer mon message");
- $(".dhsjd44")["fadeOut"]();
- $("#forum64")["css"]({
- "display": "none"
- });
- $("html")["css"]({
- overflow: "auto"
- });
- $(".forummess" + variable_322)["html"](variable_25["message"])
- } else {
- if (variable_25["reponse"] == "erreur") {
- $(".editf24")["html"]("Envoyer mon message");
- $(".dhsjd44")["fadeIn"]();
- $(".4dsSs")["html"](variable_25["message"])
- }
- }
- }
- })
- }
- function addnewusjet(variable_31d, variable_322) {
- $("#indexsubmit")["html"]("Chargement...");
- var variable_222 = $("#topictitl")["val"]();
- var variable_223 = $("#topiccategory")["val"]();
- var variable_216 = $("#editeur")["html"]()["replace"](/<div>/gi, "<br>")["replace"](/<\/div>/gi, "");
- $["ajax"]({
- type: "POST",
- url: "app/actions/ForumActionTopic.php",
- data: {
- titre: variable_222,
- categorie: variable_223,
- message: variable_216,
- type: variable_31d,
- id: variable_322
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- location["href"] = "forum/" + variable_25["id"]
- } else {
- if (variable_25["reponse"] == "erreur") {
- $("#lecture42")["fadeIn"]();
- $("#lecture44")["html"](variable_25["message"]);
- $("#indexsubmit")["html"]("Ajouter mon sujet")
- }
- }
- }
- })
- }
- function hsgSQGyhd444(variable_322) {
- $("#rydHSG45s")["css"]({
- transform: "scale(0.5)"
- });
- $(".hsQJwn" + variable_322)["css"]({
- background: "rgb(192,192,192)"
- });
- $("#rydHSG45s")["show"]();
- $("#strload")["show"]();
- $("#rydHSG45s")["load"]("app/load/StoriesView.php?userid=" + variable_322, function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- $("#strload")["fadeOut"](500);
- $("#rydHSG45s")["css"]({
- transform: "scale(1)",
- transition: "0.3s"
- })
- }
- })
- }
- function fghjk() {
- $("#rydHSG45s")["css"]({
- transform: "scale(0.0)",
- transition: "0.2s"
- });
- $("#rydHSG45s")["fadeOut"](400);
- var variable_226 = 0,
- variable_227 = 0;
- bar["stop"]();
- bar["width"](0)
- }
- function showPane(variable_229) {
- ePanes["eq"](currentIndex)["stop"](true, true)["hide"]();
- currentIndex = variable_229;
- if (currentIndex < 0) {
- currentIndex = ePanes["length"] - 1
- } else {
- if (currentIndex >= ePanes["length"]) {
- currentIndex = 0
- }
- };
- ePanes["eq"](currentIndex)["stop"](true, true)["show"]();
- nowstor();
- $("#nowstor-" + (currentIndex))["css"]({
- transform: "scale(0.8)",
- transition: "0.3s"
- });
- $(".storieviewlist li")["removeClass"]("current")["eq"](currentIndex)["addClass"]("current")
- }
- function nowstor() {
- $(".nowstor")["each"](function() {
- $(this)["css"]({
- transform: "scale(1)",
- transition: "0.3s"
- })
- })
- }
- function run() {
- if ($("#rydHSG45s")["is"](":visible")) {
- bar["width"](0);
- showPane(currentIndex + 1);
- if (($(".vistoriecontent")["size"]() == (currentIndex + 1)) && $(".vistoriecontent")["size"]() == 1) {
- bar["animate"]({
- "width": "+=320"
- }, time, fghjk)
- } else {
- bar["animate"]({
- "width": "+=320"
- }, time, run)
- }
- }
- }
- $("#viewstorie")["live"]("hover", function() {
- bar["stop"]()
- });
- $("#viewstorie")["live"]("mouseleave", function stredem() {
- if ($("#rydHSG45s")["is"](":visible")) {
- if ($(".vistoriecontent")["size"]() == (currentIndex + 1)) {
- bar["animate"]({
- "width": "+=300"
- }, time, fghjk)
- } else {
- var variable_22c = (300 - bar["width"]()) * 16;
- bar["animate"]({
- "width": "+=300"
- }, variable_22c, run)
- }
- }
- });
- function shQH4xs() {
- $("#rydHSG45s")["css"]({
- transform: "scale(0.5)"
- });
- $("#rydHSG45s")["show"]();
- $("#strload")["show"]();
- $("#rydHSG45s")["load"]("app/load/StoriesGallery.php", function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- $("#strload")["fadeOut"](500);
- $("#rydHSG45s")["css"]({
- transform: "scale(1)",
- transition: "0.3s"
- })
- }
- })
- }
- function resetslectstorie() {
- $(".stories13")["each"](function() {
- $(this)["css"]({
- transform: "scale(1)",
- transition: "0.3s"
- })
- })
- }
- function SelctStorie(variable_230, variable_322, variable_231, variable_232) {
- resetslectstorie();
- if ($("#mypic" + variable_322)["css"]("transform") == "matrix(1, 0, 0, 1, 0, 0)") {
- $("#mypic" + variable_322)["css"]({
- transform: "scale(0.8)",
- transition: "0.3s"
- });
- $("#stories14")["css"]({
- display: "block"
- });
- $("#stories19")["html"](variable_231 + "<p style="
- font - size: 50 % ;
- ">Prise il y a " + variable_232 + "</p>");
- $("#strid")["html"](variable_322);
- $("#stories16")["css"]({
- background: "url(" + variable_230 + ")",
- "background-size": "contain"
- })
- } else {
- $("#mypic" + variable_322)["css"]({
- transform: "scale(1)",
- transition: "0.3s"
- });
- $("#stories14")["css"]({
- display: "none"
- })
- }
- }
- function animatesendstr() {
- var variable_18 = $("#stories17");
- variable_18["animate"]({
- right: "-10px"
- }, 70);
- variable_18["animate"]({
- right: "10px"
- }, 70);
- variable_18["animate"]({
- right: "-10px"
- }, 70);
- variable_18["animate"]({
- right: "10px"
- }, 70);
- variable_18["animate"]({
- right: "-10px"
- }, 70);
- variable_18["animate"]({
- right: "10px"
- }, 70);
- variable_18["animate"]({
- right: "-10px"
- }, 70);
- variable_18["animate"]({
- right: "10px"
- }, 70)
- }
- function StoriePost() {
- var variable_322 = $("#strid")["html"]();
- $("#stories20")["html"]("Envoi en cours");
- $["ajax"]({
- type: "POST",
- url: "app/actions/StoryCreate.php",
- data: {
- id: variable_322
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $("#stories14")["css"]({
- display: "none"
- });
- $("#stories20")["html"]("Ajouter à ma storie");
- $("#mypic" + variable_322)["css"]({
- transform: "scale(1)",
- transition: "0.3s"
- });
- $("#mypic" + variable_322)["append"]("<div id="
- stories21 "><div id="
- stories22 "></div></div>");
- $("#mypic" + variable_322)["attr"]("onclick", "")
- } else {
- if (variable_25["reponse"] == "error") {
- $("#stories20")["html"]("Ajouter à ma storie");
- animatesendstr()
- }
- }
- }
- })
- }
- function moreprofil(variable_31d, variable_236) {
- var variable_31e = $("#profil87");
- variable_31e["css"]({
- transform: "scale(0.5)"
- });
- variable_31e["show"]();
- $("#strload")["show"]();
- variable_31e["load"]("app/load/ProfilViewMore.php?type=" + variable_31d + "&uid=" + variable_236, function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- $("#strload")["fadeOut"](400);
- variable_31e["css"]({
- transform: "scale(1)",
- transition: "0.3s"
- })
- }
- })
- }
- function closemoreprofil() {
- $("#profil87")["css"]({
- transform: "scale(0,0)",
- transition: "0.3s"
- })
- }
- function SettingsSimpleAction(variable_322, variable_31d) {
- $(".settwait" + variable_322)["html"](".......");
- $["ajax"]({
- type: "POST",
- url: "app/actions/SettingsActionBasic.php",
- data: {
- type: variable_31d
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $(".settwait" + variable_322)["html"](variable_25["text"])
- }
- }
- })
- }
- function RandomPin() {
- var variable_327 = document["getElementsByClassName"]("pin");
- var variable_23a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
- for (var variable_188 = 0; variable_188 < variable_327["length"]; variable_188++) {
- if (variable_23a["length"] == 1) {
- variable_327[variable_188]["firstChild"]["nodeValue"] = variable_23a[0]
- } else {
- var variable_23b = Math["round"](Math["random"]() * (variable_23a["length"] - 1));
- variable_327[variable_188]["firstChild"]["nodeValue"] = variable_23a[variable_23b];
- variable_23a["splice"](variable_23b, 1)
- }
- }
- }
- function CliquePin(variable_322) {
- if (variable_322 == "x") {
- var variable_23d = $("#currentpin")["val"]();
- variable_23d = variable_23d["substring"](0, variable_23d["length"] - 1);
- $("#currentpin")["val"](variable_23d)
- } else {
- var variable_23e = $("#" + variable_322)["html"]();
- var variable_23d = $("#currentpin")["val"]();
- if (variable_23d["length"] < 4) {
- $("#currentpin")["val"](variable_23d + variable_23e)
- }
- }
- }
- function OpenSettingsAvances(variable_197) {
- var variable_31e = $(".settingsload");
- variable_31e["css"]({
- transform: "scale(0.5)",
- transition: "0.2s"
- });
- $(".settingsloader")["show"]();
- variable_31e["load"]("app/load/SettingsAvances.php?page=" + variable_197, function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- variable_31e["show"]();
- $(".settingsloader")["fadeOut"](500);
- variable_31e["css"]({
- transform: "scale(1)",
- transition: "0.4s"
- });
- if (variable_197 == "pin") {
- setTimeout(function() {
- RandomPin()
- }, 1000)
- }
- }
- })
- }
- function CloseSettingsAvances() {
- $(".settingsload")["css"]({
- transform: "scale(0.0)",
- transition: "0.2s"
- })["fadeOut"](400)
- }
- function SelectFriend(variable_31d, variable_322) {
- if (variable_31d == "friendsinfo") {
- $("#settings29")["html"]("...<br><x style="
- font - size: 50 % ;
- ">Chargement...</x>");
- $(".settings24")["each"](function() {
- if ($(this)["attr"]("onclick") != "nofriend") {
- $(this)["css"]({
- background: "rgb(200,200,200)"
- })
- }
- });
- $("#selectfriends" + variable_322)["css"]({
- background: "white"
- })
- } else {
- if (variable_31d == "deletefriend") {
- var variable_322 = $("#friendid")["html"]();
- $("#settings35")["html"]("...")
- } else {
- if (variable_31d == "deleteallfriend") {
- $("#settings36")["html"]("...")
- }
- }
- };
- $["ajax"]({
- type: "POST",
- url: "app/actions/SettingsFriends.php",
- data: {
- type: variable_31d,
- id: variable_322
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_31d == "friendsinfo") {
- $("#settings29")["html"](variable_25["username"] + "<br><x style="
- font - size: 50 % ;
- ">" + variable_25["motto"] + "</x>");
- $("#settings31")["html"](variable_25["activity_points"]);
- $("#settings32")["html"]("Actif il y a " + variable_25["last_online"]);
- $("#settings34")["css"]({
- "background": "url(" + variable_25["figure"] + ")"
- });
- $("#settings35")["html"]("Supprimer " + variable_25["username"] + " de mes amis");
- $("#friendid")["html"](variable_25["id"])
- } else {
- if (variable_31d == "deletefriend") {
- if (variable_25["type"] == "error") {
- $("#settings35")["html"](variable_25["message"])
- } else {
- if (variable_25["type"] == "success") {
- $("#settings35")["html"](variable_25["message"]);
- $("#selectfriends" + variable_322)["css"]({
- background: "rgb(254,166,75)",
- border: "3px solid rgb(254,166,75)"
- });
- $("#selectfriends" + variable_322)["attr"]("onclick", "nofriend")
- }
- }
- } else {
- if (variable_31d == "deleteallfriend") {
- if (variable_25["type"] == "error") {
- $("#settings36")["html"](variable_25["message"])
- } else {
- if (variable_25["type"] == "success") {
- $("#settings36")["html"](variable_25["message"]);
- setTimeout(function() {
- OpenSettingsAvances("friends")
- }, 600)
- }
- }
- }
- }
- }
- }
- })
- }
- function SettingsActionPassword() {
- $("#settings43")["html"]("Chargement...");
- var variable_243 = $("#newpassword")["val"]();
- var variable_244 = $("#verifpassword")["val"]();
- var variable_245 = $("#oldpassword")["val"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/SettingsActionAdvanced.php",
- data: {
- n: variable_243,
- v: variable_244,
- o: variable_245,
- type: "password"
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $("#settings43")["html"](variable_25["message"]);
- $("#settings41")["html"]("Dernier changement de mot de passe à l'instant")
- } else {
- if (variable_25["reponse"] == "erreur") {
- $("#settings43")["html"](variable_25["message"])
- }
- }
- }
- })
- }
- function SettingsActionMail(variable_247) {
- if (variable_247 == "one") {
- $(".fghjs1")["html"]("Envoi en cours...");
- var variable_315 = $("#email")["val"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/SettingsActionAdvanced.php",
- data: {
- mail: variable_315,
- type: "mail1"
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $("#settings42")["html"]("Recopier le code reçu par mail");
- $("#settings45")["animate"]({
- left: "-100%"
- });
- setTimeout(function() {
- $("#settings45")["hide"]();
- $("#settings44")["fadeIn"](300)
- }, 400)
- } else {
- if (variable_25["reponse"] == "erreur") {
- $(".fghjs1")["html"](variable_25["message"])
- }
- }
- }
- })
- };
- if (variable_247 == "two") {
- $(".fghjs2")["html"]("Chargement...");
- var variable_248 = $("#code")["val"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/SettingsActionAdvanced.php",
- data: {
- code: variable_248,
- type: "mail2"
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $(".fghjs2")["html"](variable_25["message"]);
- $(".nmail")["hide"]();
- OpenSettingsAvances("mail")
- } else {
- if (variable_25["reponse"] == "erreur") {
- $("#settings41")["html"]("Ton adresse email a bien été confirmer");
- $(".fghjs2")["html"](variable_25["message"])
- }
- }
- }
- })
- }
- }
- function SettingsActionPin(variable_247, variable_24a) {
- if (variable_24a == "supp") {
- var variable_24b = $(".3sjU");
- var variable_23d = "supp"
- } else {
- var variable_24b = $(".4sjU");
- var variable_23d = $("#currentpin")["val"]()
- };
- var variable_21 = $("#password")["val"]();
- if (variable_247 == "one") {
- var variable_24c = $("#oldpin")["val"]()
- } else {
- if (variable_247 == "two") {
- var variable_24c = $("#oldpin")["val"]()
- }
- };
- $(variable_24b)["html"]("Chargement...");
- $["ajax"]({
- type: "POST",
- url: "app/actions/SettingsActionAdvanced.php",
- data: {
- pin: variable_23d,
- password: variable_21,
- oldpin: variable_24c,
- type: "pin" + variable_247
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_247 == "one") {
- if (variable_25["reponse"] == "ok") {
- $(".npin")["hide"]();
- $("#settings43")["html"]("Succès!");
- setTimeout(function() {
- OpenSettingsAvances("pin")
- }, 600)
- } else {
- if (variable_25["reponse"] == "erreur") {
- $("#settings43")["html"](variable_25["message"])
- }
- }
- } else {
- if (variable_247 == "two") {
- if (variable_25["reponse"] == "ok") {
- $(variable_24b)["html"]("Succès!");
- setTimeout(function() {
- OpenSettingsAvances("pin")
- }, 600)
- } else {
- if (variable_25["reponse"] == "erreur") {
- $(variable_24b)["html"](variable_25["message"])
- }
- }
- }
- }
- }
- })
- }
- function LockPin() {
- $("#pin6")["fadeOut"](250);
- setTimeout(function() {
- $("#pin7")["slideDown"](500);
- RandomPin()
- }, 250)
- }
- function MouvPinResult() {
- var variable_24f = $("#pin9");
- variable_24f["animate"]({
- left: "-10px"
- }, 70);
- variable_24f["animate"]({
- left: "10px"
- }, 70);
- variable_24f["animate"]({
- left: "-10px"
- }, 70);
- variable_24f["animate"]({
- left: "10px"
- }, 70);
- variable_24f["animate"]({
- left: "-10px"
- }, 70);
- variable_24f["animate"]({
- left: "10px"
- }, 70);
- variable_24f["animate"]({
- left: "-10px"
- }, 70);
- variable_24f["animate"]({
- left: "10px"
- }, 70);
- variable_24f["animate"]({
- left: "0px"
- }, 70)
- }
- function MouvPinTentative() {
- var variable_24f = $("#pin4");
- variable_24f["animate"]({
- top: "-30px"
- }, 70);
- variable_24f["animate"]({
- top: "0px"
- }, 70);
- variable_24f["animate"]({
- top: "-20px"
- }, 70);
- variable_24f["animate"]({
- top: "0px"
- }, 70);
- variable_24f["animate"]({
- top: "-10px"
- }, 70);
- variable_24f["animate"]({
- top: "0px"
- }, 70)
- }
- function PostSecureTrue() {
- $("#pin2")["animate"]({
- left: "55%"
- }, 150);
- $("#pin2")["animate"]({
- left: "-200%"
- }, 400);
- $("#pin1")["fadeOut"](500);
- setTimeout(function() {
- window["location"]["href"] = "profil"
- }, 500)
- }
- function PostSecurePin() {
- var variable_23d = $("#currentpin")["val"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/PinCode.php",
- data: {
- pin: variable_23d,
- t: "1"
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- PostSecureTrue()
- } else {
- if (variable_25["reponse"] == "erreur") {
- MouvPinTentative();
- $("#pinmsg u")["html"](parseInt($("#pinmsg u")["html"]()) - 1)
- } else {
- if (variable_25["reponse"] == "erreur2") {
- window["location"]["href"] = "index"
- } else {
- if (variable_25["reponse"] == "erreur3") {
- MouvPinResult()
- }
- }
- }
- }
- }
- })
- }
- function LostPin(variable_247) {
- if (variable_247 == "one") {
- $("#pin11")["show"]()
- } else {
- if (variable_247 == "close") {
- $("#pin11")["hide"]()
- } else {
- if (variable_247 == "two") {
- $("#pin11")["hide"]();
- $("#pin10")["html"]("Chargement...");
- $["ajax"]({
- type: "POST",
- url: "app/actions/PinCode.php",
- data: {
- t: 2
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $("#pin10")["html"]("Email envoyé")
- } else {
- if (variable_25["reponse"] == "erreur") {}
- }
- }
- })
- }
- }
- }
- }
- function BoutiqueLoaderStart() {
- $shop = $("#b42");
- $("#b41")["show"]();
- $("#b43")["hide"]();
- $($shop)["css"]({
- top: "40%",
- left: "calc(50% - 32px)"
- })["show"]()
- }
- function BoutiqueLoaderEnd(variable_32e) {
- $shop = $("#b42");
- $("#b41")["fadeOut"](500);
- if (variable_32e != "x") {
- $("#b43")["html"](variable_32e);
- $("#b43")["show"]()
- };
- if (variable_32e == "x") {
- $shop["hide"]()
- };
- $("#boutiqueload")["show"]();
- $($shop)["css"]({
- top: "75px",
- left: "15%"
- });
- $($shop)["css"]({
- "transform": "scale(1.0)",
- transition: "0.4s"
- })
- }
- function PorteMonnaie() {
- var variable_18 = $("#b65");
- variable_18["animate"]({
- top: "10px"
- }, 0)
- }
- function AnimateMonnaie(variable_258, variable_259) {
- var variable_25a = variable_259;
- var variable_25b = $("#" + variable_258)["text"]();
- var variable_25c = setInterval(function() {
- $("#" + variable_258)["text"](variable_25b);
- if (variable_259 < variable_25b) {
- if (variable_25b <= variable_25a) {
- clearInterval(variable_25c);
- $(".b" + variable_258)["clearQueue"]();
- $(".b" + variable_258)["animate"]({
- top: "1px"
- }, 200)
- } else {
- variable_25b--;
- variable_25b--;
- $(".b" + variable_258)["animate"]({
- top: "-4px"
- }, 200);
- $(".b" + variable_258)["animate"]({
- top: "4px"
- }, 200)
- }
- } else {
- if (variable_25b >= variable_25a) {
- clearInterval(variable_25c);
- $(".b" + variable_258)["clearQueue"]();
- $(".b" + variable_258)["animate"]({
- top: "1px"
- }, 200)
- } else {
- variable_25b++;
- $(".b" + variable_258)["animate"]({
- top: "-4px"
- }, 200);
- $(".b" + variable_258)["animate"]({
- top: "4px"
- }, 200)
- }
- }
- }, 0)
- }
- var titleactuel = null;
- function BoutiquePage(variable_32e, variable_181) {
- titleactuel = document["title"];
- document["title"] = variable_32e;
- $("html")["css"]({
- overflow: "hidden"
- });
- BoutiqueLoaderStart();
- $("#boutiqueload")["load"](variable_181, function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- BoutiqueLoaderEnd(variable_32e);
- if (variable_32e != "x") {
- PorteMonnaie()
- }
- } else {
- alert("Erreur, veuillez recharger la page")
- }
- })
- }
- function BoutiquePageClose() {
- document["title"] = titleactuel;
- $("html")["css"]({
- overflow: "auto"
- });
- $("#b41")["hide"]();
- $("#b42")["hide"]();
- $("#b43")["hide"]();
- $("#boutiqueload")["hide"]();
- $("#b65")["animate"]({
- top: "-100px"
- }, 0)
- }
- function BoutiqueVIPClose() {
- $("#b69")["fadeOut"](500)
- }
- function BoutiqueVIPOpen() {
- $("#b69")["fadeIn"](250)
- }
- function AnimatePortfeuil() {
- var variable_263 = $("#b65");
- $(variable_263)["css"]({
- background: "red"
- });
- setTimeout(function() {
- $(variable_263)["css"]({
- background: "rgba(0,0,0,0.8)"
- })
- }, 300);
- setTimeout(function() {
- $(variable_263)["css"]({
- background: "rgb(237,28,36)"
- })
- }, 600);
- setTimeout(function() {
- $(variable_263)["css"]({
- background: "rgba(0,0,0,0.8)"
- })
- }, 900);
- setTimeout(function() {
- $(variable_263)["css"]({
- background: "rgb(237,28,36)"
- })
- }, 1200);
- setTimeout(function() {
- $(variable_263)["css"]({
- background: "rgba(0,0,0,0.8)"
- })
- }, 1500)
- }
- function BoutiqueAchatBadge(variable_322) {
- $("#b62")["css"]({
- opacity: "0.4"
- });
- $["ajax"]({
- type: "POST",
- url: "app/actions/ShopBuyObject.php",
- data: {
- type: "badges",
- id: variable_322
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "monnaie") {
- AnimatePortfeuil();
- $("#b62")["css"]({
- opacity: "1"
- })
- } else {
- if (variable_25["reponse"] == "unite") {
- $("#b62")["css"]({
- opacity: "1"
- });
- $("#b62")["css"]({
- background: "rgb(237,28,36)"
- });
- $("#b62")["text"]("Rupture de stock")
- } else {
- if (variable_25["reponse"] == "ok") {
- $("#badgeHYrest")["html"]($("#badgeHYrest")["html"]() - 1);
- AnimateMonnaie("duckets", variable_25["jetons"]);
- AnimateMonnaie("diamants", variable_25["diamants"]);
- var variable_18 = $("#b67")["position"]();
- var variable_195 = variable_18["left"] - 100;
- $("#b67")["css"]({
- filter: "drop-shadow(2px 1px 0 #fff) drop-shadow(-2px 1px 0 #fff) drop-shadow(0 -2px 0 #fff)"
- });
- $(".buybdg")["each"](function() {
- $(this)["css"]({
- filter: "drop-shadow(2px 1px 0 #fff) drop-shadow(-2px 1px 0 #fff) drop-shadow(0 -2px 0 #fff)"
- });
- $(this)["animate"]({
- left: variable_195 - $(this)["attr"]("pos"),
- top: -$(window)["height"]() / 2.5 - 50
- }, 1000)
- });
- $(".buybdg")["each"](function() {
- $(this)["fadeOut"](200)
- });
- setTimeout(function() {
- $("#b67")["css"]({
- filter: ""
- })
- }, 1150);
- $("#b62")["html"]("Badges achetés")["attr"]("onclick", "");
- $("#b62")["css"]({
- opacity: "1"
- })
- }
- }
- }
- }
- })
- }
- function OpenMyBadgeBackground() {
- $("#b179x")["show"]();
- $("img")["each"](function() {
- $(this)["attr"]("src", $(this)["data"]("src"))
- })
- }
- function CloseMyBadgeBackground() {
- $("#b179x")["hide"]()
- }
- function MyBadgeBackground(variable_268) {
- $("#b187")["css"]({
- background: "url(app/assets/img/badge-perso/" + variable_268 + ".png)"
- });
- $("#mybfond")["attr"]("value", variable_268)
- }
- function MyBadgeBackground(variable_268) {
- $("#b187")["css"]({
- background: "url(app/assets/img/badge-perso/" + variable_268 + ".png)"
- });
- $("#mybfond")["attr"]("value", variable_268)
- }
- function CloseMyBadgeDirection() {
- $("#b179u")["hide"]()
- }
- function OpenMyBadgeDirection() {
- $("#b179u")["show"]()
- }
- function MyBadgeDirection(variable_268, variable_230) {
- $("#b187img")["attr"]("src", variable_230);
- $("#mybdirection")["attr"]("value", variable_268)
- }
- function BuyMyBadge() {
- $(".ghj4112")["text"]("Chargement...");
- var variable_26d = $("#mybdescription")["val"](),
- variable_222 = $("#mybtitre")["val"](),
- variable_26e = $("#mybfond")["attr"]("value"),
- variable_30 = $("#b187img")["attr"]("src"),
- variable_26f = $("#mybdirection")["attr"]("value"),
- variable_270 = $("#mybtoken")["val"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/BuyMyBadge.php",
- data: {
- description: variable_26d,
- titre: variable_222,
- fond: variable_26e,
- look: variable_30,
- direction: variable_26f,
- token: variable_270
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["type"] == "error") {
- $(".ghj4112")["text"]("Acheter mon badge");
- $("#b179h")["css"]({
- visibility: "visible"
- });
- $("#b179h")["html"](variable_25["message"]);
- setTimeout(function() {
- $("#b179h")["css"]({
- visibility: "hidden"
- });
- $("#b179h")["html"]("")
- }, 2500)
- } else {
- if (variable_25["type"] == "success") {
- $(".ghj4112")["text"]("Acheter mon badge");
- $("#b179h")["css"]({
- visibility: "visible"
- });
- $("#b179h")["html"](variable_25["message"]);
- setTimeout(function() {
- $("#b179h")["css"]({
- visibility: "hidden"
- });
- BoutiquePage("Mon inventaire", "app/load/BoutiquePage.php?page=inventaire&type=badges");
- AnimateMonnaie("duckets", variable_25["prix"])
- }, 3500)
- }
- }
- }
- })
- }
- function BoutiqueAchatVip() {
- $("#b62")["css"]({
- opacity: "0.4"
- });
- $["ajax"]({
- type: "POST",
- url: "app/actions/ShopBuyObject.php",
- data: {
- type: "vip"
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "monnaie") {
- AnimatePortfeuil();
- $("#b62")["css"]({
- opacity: "1"
- })
- } else {
- if (variable_25["reponse"] == "ok") {
- AnimateMonnaie("duckets", variable_25["jetons"]);
- AnimateMonnaie("diamants", variable_25["diamants"]);
- $("#b62")["css"]({
- opacity: "1"
- });
- $("#btxtvip")["text"](variable_25["date"]);
- $("#b59")["text"](variable_25["date"])
- } else {
- if (variable_25["reponse"] == "erreur") {
- $("#b62")["css"]({
- opacity: "1"
- });
- alert("Ton grade est au dessus du VIP.")
- }
- }
- }
- }
- })
- }
- function BoutiqueAchatLoto() {
- $("#b62")["css"]({
- opacity: "0.4"
- });
- var variable_273 = $("#b83")["val"]();
- var variable_263 = $("#b62");
- $["ajax"]({
- type: "POST",
- url: "app/actions/ShopBuyObject.php",
- data: {
- type: "loto",
- chiffre: variable_273
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "monnaie") {
- AnimatePortfeuil();
- $("#b62")["css"]({
- opacity: "1"
- })
- } else {
- if (variable_25["reponse"] == "ok") {
- AnimateMonnaie("duckets", variable_25["jetons"]);
- AnimateMonnaie("diamants", variable_25["diamants"]);
- $("#b62")["css"]({
- opacity: "1"
- });
- variable_263["text"]("Participation validée")["attr"]("onclick", "")
- } else {
- if (variable_25["reponse"] == "erreur") {
- variable_263["css"]({
- background: "red",
- opacity: "1"
- });
- setTimeout(function() {
- variable_263["css"]({
- background: "rgb(48,177,24)"
- })
- }, 1150)
- }
- }
- }
- }
- })
- }
- function BoutiqueInventaireObjet(variable_31d, variable_322) {
- BoutiqueLoaderStart();
- $["ajax"]({
- type: "POST",
- url: "app/actions/ManageInventory.php",
- data: {
- type: variable_31d,
- id: variable_322
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $("#b108 > img")["attr"]("src", variable_25["image"]);
- $("#b110")["text"](variable_25["nom"]);
- $("#b106")["fadeIn"](500);
- $("#b62")["attr"]("onclick", "BoutiqueInventaireDelete('" + variable_31d + "','" + variable_322 + "')");
- BoutiqueLoaderEnd("Mon inventaire")
- } else {
- if (variable_25["reponse"] == "erreur") {
- if (variable_31d == "badges") {
- $(".bsnz" + variable_322)["fadeOut"](400)
- } else {
- $(".ysnz" + variable_322)["fadeOut"](400)
- };
- BoutiqueLoaderEnd("Mon inventaire")
- }
- }
- }
- })
- }
- function BoutiqueInventaireClose() {
- $("#b106")["fadeOut"](500)
- }
- function BoutiqueInventaireDelete(variable_31d, variable_322) {
- $("#b62")["css"]({
- opacity: "0.4"
- });
- $["ajax"]({
- type: "POST",
- url: "app/actions/ManageInventory.php",
- data: {
- type: variable_31d + "delete",
- id: variable_322
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- BoutiqueInventaireClose();
- $("#b62")["css"]({
- opacity: "1"
- });
- if (variable_31d == "badges") {
- $(".bsnz" + variable_322)["fadeOut"](400)
- } else {
- $(".ysnz" + variable_322)["fadeOut"](400)
- }
- }
- }
- })
- }
- function BoutiqueInventairePage(variable_197) {
- $("#loader")["css"]({
- display: "block"
- });
- $(".b102")["each"](function() {
- $(this)["removeAttr"]("style")
- });
- $("#b103")["load"]("app/load/InventoryCategory.php?page=" + variable_197, function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- $("#loader")["fadeOut"](400);
- $("#hgs" + variable_197)["css"]({
- background: "rgba(255,255,255,0.3)"
- })
- }
- })
- }
- $(document)["ready"](function() {
- $("#b101")["live"]("keyup", function() {
- $(".b102")["each"](function() {
- $(this)["removeAttr"]("style")
- });
- $("#hgsmobis")["css"]({
- background: "rgba(255,255,255,0.3)"
- });
- var variable_209 = $(this)["val"]();
- var variable_23 = "search=" + variable_209;
- if (variable_209["length"] > 0) {
- $["ajax"]({
- type: "GET",
- url: "app/load/InventoryCategory.php?page=recherche",
- data: variable_23,
- success: function(variable_20a) {
- $("#b103")["html"](variable_20a)["show"]()
- }
- })
- } else {
- $["ajax"]({
- type: "GET",
- url: "app/load/InventoryCategory.php?page=recherche&get=vide",
- data: variable_23,
- success: function(variable_20a) {
- $("#b103")["html"](variable_20a)["show"]()
- }
- })
- }
- })
- });
- function BoutiqueRareOpen(variable_279, variable_27a, variable_230) {
- titleactuel = document["title"];
- document["title"] = variable_27a;
- var variable_32e = "x";
- var variable_279 = JSON["parse"](variable_279);
- var variable_27b = JSON["parse"]($("#JrXYzr")["html"]());
- BoutiqueLoaderStart();
- jQuery["ajax"]({
- type: "GET",
- url: "app/assets/js/chart.js",
- dataType: "script",
- cache: true,
- success: function() {
- $("#boutiqueload")["load"]("app/load/BoutiquePage.php?page=rare", function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- $("#b147")["html"](variable_27a);
- $("#b148 > img")["attr"]("src", variable_230);
- var variable_27c = document["getElementById"]("RareEvolution");
- var variable_27d = new Chart(variable_27c, {
- type: "line",
- data: {
- labels: variable_27b,
- datasets: [{
- label: "Valeur en rares classiques",
- data: variable_279,
- backgroundColor: ["transparent"],
- pointBackgroundColor: ["red"],
- pointBorderColor: ["rgb(127,127,127)", "rgb(127,127,127)", "rgb(127,127,127)", "rgb(127,127,127)", "rgb(127,127,127)", "rgb(127,127,127)"],
- borderColor: ["rgb(111,156,240)"],
- borderWidth: 7
- }]
- },
- options: {
- legend: {
- display: false
- },
- scales: {
- xAxes: [{
- display: false
- }],
- yAxes: [{
- display: false
- }]
- },
- tooltips: {
- backgroundColor: "#FFF",
- titleFontColor: "black",
- displayColors: false
- }
- }
- });
- BoutiqueLoaderEnd(variable_32e);
- if (variable_32e != "x") {
- PorteMonnaie()
- }
- } else {
- alert("Erreur, veuillez recharger la page")
- }
- })
- }
- })
- }
- function BoutiqueBuyCoffre(variable_322) {
- $("#b62")["css"]({
- opacity: "0.4"
- });
- $["ajax"]({
- type: "POST",
- url: "app/actions/ShopBuyChest.php",
- data: {
- id: variable_322
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "monnaie") {
- AnimatePortfeuil();
- $("#b62")["css"]({
- opacity: "1"
- })
- } else {
- if (variable_25["reponse"] == "rupture") {
- $("#b62")["css"]({
- opacity: "1"
- });
- $("#b62")["css"]({
- background: "rgb(237,28,36)"
- });
- $("#b62")["text"]("Rupture de stock");
- $("#JSHnsh421")["html"]("0")
- } else {
- if (variable_25["reponse"] == "ok") {
- if (variable_25["carresse"] != 0) {
- $("#b172")["append"](" <div title="
- " + variable_25["
- carresse "] + "
- caresses " id="
- b171 "><div id="
- b164 " style="
- transform: scale(4); top: -1 px; background: url(app / assets / img / pagecoffres.png) - 55 px - 352 px;
- "></div></div>")
- };
- if (variable_25["winwins"] != 0) {
- $("#b172")["append"](" <div title="
- " + variable_25["
- winwins "] + "
- winwins " id="
- b171 "><div id="
- b164 "style="
- transform: scale(4); top: 6 px; background: url(app / assets / img / pagecoffres.png) - 79 px - 354 px;
- "></div></div>")
- };
- if (variable_25["windiamants"] != 0) {
- $("#b172")["append"](" <div title="
- " + variable_25["
- windiamants "] + "
- diamants " id="
- b171 "><div id="
- b164 "style="
- transform: scale(4); top: 6 px; background: url(app / assets / img / pagecoffres.png) - 55 px - 376 px;
- "></div></div>")
- };
- if (variable_25["respects"] != 0) {
- $("#b172")["append"](" <div title="
- " + variable_25["
- respects "] + "
- respects " id="
- b171 "><div id="
- b164 "style="
- transform: scale(4); top: 0 px; background: url(app / assets / img / pagecoffres.png) - 79 px - 375 px;
- "></div></div>")
- };
- var variable_18 = JSON["parse"](variable_25["rares"]);
- if (variable_18 != "mobis0") {
- for (var variable_188 = 0; variable_188 < variable_18["length"]; variable_188++) {
- $("#b172")["append"]("<div id="
- b171 "><img style="
- transform: scale(3);
- " src="
- " + variable_18[variable_188] + "
- "/></div>")
- }
- };
- $("#b62")["css"]({
- opacity: "1"
- });
- AnimateMonnaie("duckets", variable_25["jetons"]);
- AnimateMonnaie("diamants", variable_25["diamants"]);
- BoutiqueAnimateCoffre()
- }
- }
- }
- }
- })
- }
- function BoutiqueOpenCoffre() {
- $("#b62")["hide"]();
- var variable_263 = $("#b168");
- variable_263["animate"]({
- "bottom": "-18%"
- }, 200);
- variable_263["animate"]({
- "bottom": "-22%"
- }, 190);
- variable_263["animate"]({
- "bottom": "-18%"
- }, 180);
- variable_263["animate"]({
- "bottom": "-22%"
- }, 170);
- variable_263["animate"]({
- "bottom": "-18%"
- }, 150);
- variable_263["animate"]({
- "bottom": "-22%"
- }, 140);
- variable_263["animate"]({
- "bottom": "-18%"
- }, 130);
- variable_263["animate"]({
- "bottom": "-22%"
- }, 110);
- variable_263["animate"]({
- "bottom": "-18%"
- }, 100);
- variable_263["animate"]({
- "bottom": "-22%"
- }, 90);
- variable_263["animate"]({
- "bottom": "-18%"
- }, 70);
- variable_263["animate"]({
- "bottom": "-22%"
- }, 70);
- variable_263["animate"]({
- "bottom": "-18%"
- }, 70);
- variable_263["animate"]({
- "bottom": "-22%"
- }, 70);
- variable_263["animate"]({
- "bottom": "-18%"
- }, 70);
- variable_263["animate"]({
- "bottom": "-22%"
- }, 70);
- setTimeout(function() {
- $("#b172")["fadeIn"](500)
- }, 1900)
- }
- function BoutiqueAnimateCoffre() {
- $("#b170")["css"]({
- display: "none"
- });
- $("#b168")["animate"]({
- "bottom": "-20%"
- }, 400);
- $("#b169")["css"]({
- "background": "transparent",
- "filter": "drop-shadow(2px 1px 0 #fff) drop-shadow(-2px 1px 0 #fff) drop-shadow(0 -2px 0 #fff)"
- });
- $("#b62")["html"]("<div id="
- b63 "></div>Ouvrir le coffre")["attr"]("onclick", "BoutiqueOpenCoffre()")
- }
- function SearchOpen(variable_31d) {
- $("html")["css"]({
- overflow: "hidden"
- });
- $("#search1")["fadeIn"](300);
- $("#search3")["focus"]();
- $("#searchtype")["html"](variable_31d)
- }
- $(document)["ready"](function() {
- $("#search3")["live"]("keyup", function() {
- $(".loader")["show"]();
- var variable_209 = $(this)["val"]();
- var variable_31d = $("#searchtype")["html"]();
- if (variable_209["length"] > 0) {
- $["ajax"]({
- type: "POST",
- url: "app/load/SearchEngine.php",
- data: {
- words: variable_209,
- search: variable_31d
- },
- success: function(variable_20a) {
- $("#searchbloc")["html"](variable_20a);
- $(".loader")["hide"]()
- }
- })
- } else {
- $("#searchbloc")["html"]("");
- $(".loader")["hide"]()
- }
- })
- });
- function SearchClose() {
- $("html")["css"]({
- overflow: "auto"
- });
- $("#search1")["fadeOut"](300);
- $("#searchbloc")["html"]("");
- $("#search3")["val"]("")
- }
- function MdpPerdu() {
- $("#indexl6")["css"]({
- border: "0"
- });
- $(".lostmail")["css"]({
- border: "0"
- });
- $("#indexl5")["html"]("<div id="
- b63 "></div>Chargement...");
- var variable_22 = Math["floor"](Math["random"]() * (1 - 100000 + 1)) + 100000;
- var variable_311 = $(".lostmail")["val"]();
- var variable_248 = $("#indexl6")["val"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/ForgotPassword.php",
- data: {
- step: 1,
- email: variable_311,
- code: variable_248
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "temps") {
- $("#indexl5")["html"]("<div id="
- b63 "></div>Patiente 5 minutes");
- $("#indexl8")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22)
- } else {
- if (variable_25["reponse"] == "captcha") {
- $("#indexl5")["html"]("<div id="
- b63 "></div>Suivant");
- $("#indexl6")["css"]({
- border: "3px solid rgb(237,28,36)"
- });
- $("#indexl8")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22)
- } else {
- if (variable_25["reponse"] == "mail") {
- $("#indexl5")["html"]("<div id="
- b63 "></div>Suivant");
- $(".lostmail")["css"]({
- border: "3px solid rgb(237,28,36)"
- });
- $("#indexl8")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22)
- } else {
- if (variable_25["reponse"] == "ok") {
- $("#indexl2n")["animate"]({
- left: "-800px"
- });
- $("#indexl9")["animate"]({
- left: "30px"
- })
- }
- }
- }
- }
- }
- })
- }
- function MdpPerduEnd() {
- $(".cd15")["html"]("<div id="
- b63 "></div>Chargement...");
- $(".cdcode")["css"]({
- border: ""
- });
- $(".cdmdp")["css"]({
- border: ""
- });
- $(".cdmdp2")["css"]({
- border: ""
- });
- var variable_248 = $(".cdcode")["val"]();
- var variable_285 = $(".cdmdp")["val"]();
- var variable_286 = $(".cdmdp2")["val"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/ForgotPassword.php",
- data: {
- step: 2,
- mdp: variable_285,
- mdpconfirm: variable_286,
- clee: variable_248
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "code") {
- $(".cdcode")["css"]({
- border: "3px solid rgb(237,28,36)"
- });
- $(".cd15")["html"]("<div id="
- b63 "></div>Terminer")
- } else {
- if (variable_25["reponse"] == "error") {
- $(".cdmdp")["css"]({
- border: "3px solid rgb(237,28,36)"
- });
- $(".cdmdp2")["css"]({
- border: "3px solid rgb(237,28,36)"
- });
- $(".cd15")["html"]("<div id="
- b63 "></div>Terminer")
- } else {
- if (variable_25["reponse"] == "ok") {
- $(".cd15")["html"]("<div id="
- b63 "></div>Succès! Connecte-toi!")
- }
- }
- }
- }
- })
- }
- function OpenMdpPerdu() {
- $("#indexl1")["fadeIn"](300)
- }
- function CloseMdpPerdu() {
- $("#indexl1")["fadeOut"](300)
- }
- function FansitesDemande() {
- $("#indexl5")["html"]("<div id="
- b63 "></div>Chargement...");
- var variable_22 = Math["floor"](Math["random"]() * (1 - 100000 + 1)) + 100000;
- var variable_28a = $(".sfdbanniere")["val"]();
- var variable_319 = $(".sfdnom")["val"]();
- var variable_181 = $(".sfdurl")["val"]();
- var variable_28b = $(".sfddescription")["val"]();
- var variable_248 = $(".sfdcaptch")["val"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/FansitePartnership.php",
- data: {
- image: variable_28a,
- title: variable_319,
- url: variable_181,
- presentation: variable_28b,
- code: variable_248
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "captcha") {
- $("#f39")["html"](variable_25["message"]);
- $("#indexl8")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22);
- $("#indexl5")["html"]("<div id="
- b63 "></div>Suivant")
- };
- if (variable_25["reponse"] == "erreur") {
- $("#f39")["html"](variable_25["message"]);
- $("#indexl5")["html"]("<div id="
- b63 "></div>Suivant")
- };
- if (variable_25["reponse"] == "ok") {
- $("#f39")["html"](variable_25["message"]);
- $("#indexl2n")["html"]("<div id="
- indexl3 ">Demande de promotion envoyée, elle sera affichée dans cette liste si validation.</div>");
- setTimeout(function() {
- CloseFansite()
- }, 2000)
- }
- }
- })
- }
- function CloseFansite() {
- $("#f37")["fadeOut"](500)
- }
- function OpenFansite() {
- $("#f37")["fadeIn"](500)
- }
- function FansitesArticles() {
- $("#indexsubmit")["html"]("Chargement...");
- var variable_222 = $("#arttitre")["val"]();
- var variable_28a = $("#artimage")["val"]();
- var variable_181 = $("#arturl")["val"]();
- var variable_28f = $("#editeur")["html"]();
- var variable_28f = $("#editeur")["html"]()["replace"](/<div>/gi, "<br>")["replace"](/<\/div>/gi, "");
- $["ajax"]({
- type: "POST",
- url: "app/actions/FansiteNewsAdd.php",
- data: {
- titre: variable_222,
- image: variable_28a,
- url: variable_181,
- body: variable_28f
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["reponse"] == "ok") {
- $("#lecture42")["fadeOut"]();
- $("#lecture44")["html"](variable_25["message"]);
- $("#indexsubmit")["html"]("Succès!")
- } else {
- if (variable_25["reponse"] == "erreur") {
- $("#lecture42")["fadeIn"]();
- $("#lecture44")["html"](variable_25["message"]);
- $("#indexsubmit")["html"]("Ajouter mon sujet")
- }
- }
- }
- })
- }
- function SupportStart() {
- $("#indexsubmit")["text"]("Un instant...");
- var variable_291 = $("#sujetTitle")["val"]();
- var variable_292 = $("#category")["val"]();
- var variable_293 = $("#priority")["val"]();
- var variable_294 = $("#editeur")["html"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/SupportStartTicket.php",
- data: {
- sujetTitle: variable_291,
- category: variable_292,
- priority: variable_293,
- details: variable_294
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["type"] == "success") {
- OpenStream();
- CloseSupport()
- } else {
- if (variable_25["type"] == "error") {
- $("#indexsubmit")["text"]("Envoyer ma demande d'aide");
- $("#supporterreur")["fadeIn"](300);
- $("#supporterreur")["text"](variable_25["message"])
- }
- }
- }
- })
- }
- function SupportChat(variable_322) {
- $("#waitstream")["css"]({
- display: "block"
- });
- $("#getchat")["css"]({
- display: "block"
- });
- $("#getchat")["load"]("app/load/HabbostreamTalk.php?type=support&userid=" + variable_322, function(variable_26, variable_27, variable_28) {
- if (variable_27 == "success") {
- $("#waitstream")["css"]({
- display: "none"
- });
- $("#getchat")["animate"]({
- left: "0px"
- }, 500);
- $("#chatbox")["animate"]({
- scrollTop: $("#chatbox")["prop"]("scrollHeight")
- }, 500)
- }
- })
- }
- function SupportSendMsg(variable_297, variable_323, variable_314) {
- var run = $("#run")["html"]();
- if (run == "run") {
- $("#run")["html"]("stop");
- $("#sendchat")["html"]("...");
- var variable_216 = $("#editeurchat")["text"]();
- $["ajax"]({
- type: "POST",
- url: "app/actions/SupportSendMessage.php",
- data: {
- message: variable_216,
- ticketid: variable_297
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["type"] == "success") {
- $("#chatinlive" + variable_297)["append"]("<div id="
- stream26 "><a href="
- profil / " + variable_314 + "
- "><div id="
- stream27 " style="
- background: url(" + variable_323 + " & headonly = 0 & direction = 2 & head_direction = 2 & action = & gesture = & size = m);
- "></div></a><div id="
- stream29 "></div><div id="
- stream30 "><div id="
- stream33 "></div><div id="
- motto "><b>" + variable_314 + "</b> : " + variable_216 + "</div><div id="
- stream31 ">1 seconde</div></div><div class="
- chatvue " ></div></div>");
- $("#chatbox")["animate"]({
- scrollTop: $("#chatbox")["prop"]("scrollHeight")
- }, 500);
- $("#sendchat")["html"]("Envoyer");
- $("#editeurchat")["html"]("");
- $("#run")["html"]("run");
- $("#stream46")["text"]("Message envoyé avec succès.");
- $("#stream46")["css"]({
- "visibility": "visible"
- })
- } else {
- if (variable_25["type"] == "error") {
- $("#sendchat")["html"]("Envoyer");
- $("#editeurchat")["css"]({
- border: "2px solid #ED1C24",
- height: "30px"
- });
- setTimeout(function() {
- $("#editeurchat")["css"]({
- border: "0",
- height: "34px"
- })
- }, 700);
- MouvSendChat();
- $("#run")["html"]("run")
- }
- }
- }
- })
- }
- }
- function EntrerHotel(variable_299) {
- if (variable_299 == null) {
- var variable_29a = "hotel"
- } else {
- if (variable_299 == "x") {
- var variable_29a = "hotel"
- } else {
- var variable_29a = "hotel/" + variable_299
- }
- };
- if (variable_299 == "x") {
- var variable_181 = "app/load/CityHotel.php"
- } else {
- var variable_181 = "app/load/CityHotel.php?r=" + variable_299
- };
- var variable_29b = window["location"]["pathname"];
- $("#mnc1x")["show"]();
- $("#HotelManagerLoad")["css"]({
- visibility: "visible"
- });
- $("#HotelManagerSave2")["html"](document["title"]);
- $("#HotelManagerSave")["html"](variable_29b);
- history["pushState"]("HabboCity: Hôtel", null, variable_29a);
- document["title"] = "HabboCity: Hôtel";
- var variable_18 = $("#HotelManager")["html"]();
- $("html")["css"]({
- "overflow": "hidden"
- });
- if (variable_18 == "") {
- displayGoogleAds();
- if (detectZoom["device"]() >= 1.20 && detectZoom["zoom"]() >= 1 && detectZoom["zoom"]() <= 1.1) {
- $("#largeade")["css"]({
- "left": "200px",
- "zoom": "1.25",
- "-ms-zoom:": "1.25",
- "-webkit-zoom": "1.25"
- })
- };
- $("#HotelManager")["load"](variable_181)
- };
- if (variable_18 != "" && variable_299 != null) {
- $["ajax"]({
- type: "POST",
- url: "app/actions/ReturnApartment.php",
- data: {
- id: variable_299
- },
- dataType: "json",
- success: function(variable_25) {
- if (variable_25["type"] == "erreur") {
- alert("Petite érreur, veuillez ré-essayer.")
- }
- }
- })
- };
- $("#HotelManager")["show"]()
- }
- function FermerHotel() {
- $("#HotelManagerLoad")["css"]({
- visibility: "hidden"
- });
- var variable_18 = $("#HotelManagerSave")["html"]();
- var variable_24 = $("#HotelManagerSave2")["html"]();
- document["title"] = variable_24;
- history["pushState"](variable_24, null, variable_18);
- $("#loader")["hide"]();
- $("#HotelManager")["hide"]();
- $("html")["css"]({
- "overflow": "auto"
- })
- }
- function HotelFullScreen(variable_29e) {
- variable_29e = variable_29e || document["documentElement"];
- if (!document["fullscreenElement"] && !document["mozFullScreenElement"] && !document["webkitFullscreenElement"] && !document["msFullscreenElement"]) {
- if (variable_29e["requestFullscreen"]) {
- variable_29e["requestFullscreen"]()
- } else {
- if (variable_29e["msRequestFullscreen"]) {
- variable_29e["msRequestFullscreen"]()
- } else {
- if (variable_29e["mozRequestFullScreen"]) {
- variable_29e["mozRequestFullScreen"]()
- } else {
- if (variable_29e["webkitRequestFullscreen"]) {
- variable_29e["webkitRequestFullscreen"](Element.ALLOW_KEYBOARD_INPUT)
- }
- }
- }
- }
- } else {
- if (document["exitFullscreen"]) {
- document["exitFullscreen"]()
- } else {
- if (document["msExitFullscreen"]) {
- document["msExitFullscreen"]()
- } else {
- if (document["mozCancelFullScreen"]) {
- document["mozCancelFullScreen"]()
- } else {
- if (document["webkitExitFullscreen"]) {
- document["webkitExitFullscreen"]()
- }
- }
- }
- }
- }
- }
- function PostSecurity() {
- $("#secu11")["text"]("Chargement...");
- var variable_300 = $(".Username")["val"](),
- variable_301 = $(".CodeSecour")["val"](),
- variable_302 = $(".Email")["val"](),
- variable_303 = $(".Password")["val"](),
- variable_304 = $(".Captcha")["val"](),
- variable_22 = Math["floor"](Math["random"]() * (1 - 100000 + 1)) + 100000;
- $["ajax"]({
- type: "POST",
- url: "app/load/GoogleSecurity.php?check&pseudo=" + variable_300,
- data: {
- Username: variable_300,
- CodeSecour: variable_301,
- Email: variable_302,
- Password: variable_303,
- Captcha: variable_304
- },
- success: function(variable_23) {
- $("#secuload")["html"](variable_23);
- $("#secu10 img")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22)
- }
- })
- }
- function PostSecurity2() {
- $("#secu14")["text"]("Chargement...");
- var variable_306 = $(".secret")["val"](),
- variable_307 = $(".Code")["val"]();
- $["ajax"]({
- type: "POST",
- url: "app/load/GoogleSecurity.php?valid",
- data: {
- secret: variable_306,
- Code: variable_307
- },
- success: function(variable_23) {
- if (variable_23 == "connexion") {
- window["location"] = "profil"
- } else {
- $("#secuload")["html"](variable_23)
- }
- }
- })
- }
- function displayGoogleAds() {
- $("ins")["each"](function() {
- (adsbygoogle = window["adsbygoogle"] || [])["push"]({})
- })
- }
- $(".play > video")["attr"]("src", "app/assets/img/habbo.mp4");
- setTimeout(function() {
- $("#loader")["fadeOut"](200)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement