Advertisement
Guest User

Untitled

a guest
Jan 7th, 2018
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function(variable_02, variable_03, variable_04) {
  2.         "use strict";
  3.         if (typeof(module) !== "undefined" && module["exports"]) {
  4.             module["exports"] = variable_04(variable_03, variable_02)
  5.         } else {
  6.             if (typeof(define) === "function" && define["amd"]) {
  7.                 define("detect-zoom", function() {
  8.                     return variable_04(variable_03, variable_02)
  9.                 })
  10.             } else {
  11.                 variable_02[variable_03] = variable_04(variable_03, variable_02)
  12.             }
  13.         }
  14.     }(window, "detectZoom", function() {
  15.             (function(variable_02, variable_03, variable_04) {
  16.                 "use strict";
  17.                 if (typeof(module) !== "undefined" && module["exports"]) {
  18.                     module["exports"] = variable_04(variable_03, variable_02)
  19.                 } else {
  20.                     if (typeof(define) === "function" && define["amd"]) {
  21.                         define("detect-zoom", function() {
  22.                             return variable_04(variable_03, variable_02)
  23.                         })
  24.                     } else {
  25.                         variable_02[variable_03] = variable_04(variable_03, variable_02)
  26.                     }
  27.                 }
  28.             }(window, "detectZoom", function() {
  29.                 var variable_1 = function() {
  30.                     return window["devicePixelRatio"] || 1
  31.                 };
  32.                 var variable_2 = function() {
  33.                     return {
  34.                         zoom: 1,
  35.                         devicePxPerCssPx: 1
  36.                     }
  37.                 };
  38.                 var variable_0 = function() {
  39.                     var variable_3 = Math["round"]((screen["deviceXDPI"] / screen["logicalXDPI"]) * 100) / 100;
  40.                     return {
  41.                         zoom: variable_3,
  42.                         devicePxPerCssPx: variable_3 * variable_1()
  43.                     }
  44.                 };
  45.                 var variable_4 = function() {
  46.                     var variable_3 = Math["round"]((document["documentElement"]["offsetHeight"] / window["innerHeight"]) * 100) / 100;
  47.                     return {
  48.                         zoom: variable_3,
  49.                         devicePxPerCssPx: variable_3 * variable_1()
  50.                     }
  51.                 };
  52.                 var variable_5 = function() {
  53.                     var variable_3 = Math["round"](((window["outerWidth"]) / window["innerWidth"]) * 100) / 100;
  54.                     return {
  55.                         zoom: variable_3,
  56.                         devicePxPerCssPx: variable_3 * variable_1()
  57.                     }
  58.                 };
  59.                 var variable_6 = function() {
  60.                     var variable_3 = Math["round"](((document["documentElement"]["clientWidth"]) / window["innerWidth"]) * 100) / 100;
  61.                     return {
  62.                         zoom: variable_3,
  63.                         devicePxPerCssPx: variable_3 * variable_1()
  64.                     }
  65.                 };
  66.                 var variable_7 = function() {
  67.                     var variable_8 = (Math["abs"](window["orientation"]) == 90) ? screen["height"] : screen["width"];
  68.                     var variable_3 = variable_8 / window["innerWidth"];
  69.                     return {
  70.                         zoom: variable_3,
  71.                         devicePxPerCssPx: variable_3 * variable_1()
  72.                     }
  73.                 };
  74.                 var variable_9 = function() {
  75.                     var variable_10 = function(variable_11) {
  76.                         return variable_11["replace"](/;/g, " !important;")
  77.                     };
  78.                     var variable_12 = document["createElement"]("div");
  79.                     variable_12["innerHTML"] = "1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>0";
  80.                     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;"));
  81.                     var variable_13 = document["createElement"]("div");
  82.                     variable_13["setAttribute"]("style", variable_10("width:0; height:0; overflow:hidden; visibility:hidden; position: absolute;"));
  83.                     variable_13["appendChild"](variable_12);
  84.                     document["body"]["appendChild"](variable_13);
  85.                     var variable_3 = 1000 / variable_12["clientHeight"];
  86.                     variable_3 = Math["round"](variable_3 * 100) / 100;
  87.                     document["body"]["removeChild"](variable_13);
  88.                     return {
  89.                         zoom: variable_3,
  90.                         devicePxPerCssPx: variable_3 * variable_1()
  91.                     }
  92.                 };
  93.                 var variable_14 = function() {
  94.                     var variable_3 = variable_21("min--moz-device-pixel-ratio", "", 0, 10, 20, 0.0001);
  95.                     variable_3 = Math["round"](variable_3 * 100) / 100;
  96.                     return {
  97.                         zoom: variable_3,
  98.                         devicePxPerCssPx: variable_3
  99.                     }
  100.                 };
  101.                 var variable_15 = function() {
  102.                     return {
  103.                         zoom: variable_14()["zoom"],
  104.                         devicePxPerCssPx: variable_1()
  105.                     }
  106.                 };
  107.                 var variable_20 = function() {
  108.                     var variable_3 = window["top"]["outerWidth"] / window["top"]["innerWidth"];
  109.                     variable_3 = Math["round"](variable_3 * 100) / 100;
  110.                     return {
  111.                         zoom: variable_3,
  112.                         devicePxPerCssPx: variable_3 * variable_1()
  113.                     }
  114.                 };
  115.                 var variable_21 = function(variable_22, variable_23, variable_24, variable_25, variable_26, variable_27) {
  116.                     var variable_28;
  117.                     var variable_29, variable_2a, variable_12;
  118.                     if (window["matchMedia"]) {
  119.                         variable_28 = window["matchMedia"]
  120.                     } else {
  121.                         variable_29 = document["getElementsByTagName"]("head")[0];
  122.                         variable_2a = document["createElement"]("style");
  123.                         variable_29["appendChild"](variable_2a);
  124.                         variable_12 = document["createElement"]("div");
  125.                         variable_12["className"] = "mediaQueryBinarySearch";
  126.                         variable_12["style"]["display"] = "none";
  127.                         document["body"]["appendChild"](variable_12);
  128.                         variable_28 = function(variable_2b) {
  129.                             variable_2a["sheet"]["insertRule"]("@media " + variable_2b + "{.mediaQueryBinarySearch " + "{text-decoration: underline} }", 0);
  130.                             var variable_2c = getComputedStyle(variable_12, null)["textDecoration"] == "underline";
  131.                             variable_2a["sheet"]["deleteRule"](0);
  132.                             return {
  133.                                 matches: variable_2c
  134.                             }
  135.                         }
  136.                     };
  137.                     var variable_2d = variable_2e(variable_24, variable_25, variable_26);
  138.                     if (variable_12) {
  139.                         variable_29["removeChild"](variable_2a);
  140.                         document["body"]["removeChild"](variable_12)
  141.                     };
  142.                     return variable_2d;
  143.  
  144.                     function variable_2e(variable_24, variable_25, variable_26) {
  145.                         var variable_2f = (variable_24 + variable_25) / 2;
  146.                         if (variable_26 <= 0 || variable_25 - variable_24 < variable_27) {
  147.                             return variable_2f
  148.                         };
  149.                         var variable_2b = "(" + variable_22 + ":" + variable_2f + variable_23 + ")";
  150.                         if (variable_28(variable_2b)["matches"]) {
  151.                             return variable_2e(variable_2f, variable_25, variable_26 - 1)
  152.                         } else {
  153.                             return variable_2e(variable_24, variable_2f, variable_26 - 1)
  154.                         }
  155.                     }
  156.                 };
  157.                 var variable_00 = (function() {
  158.                     var variable_01 = variable_2;
  159.                     if (!isNaN(screen["logicalXDPI"]) && !isNaN(screen["systemXDPI"])) {
  160.                         variable_01 = variable_0
  161.                     } else {
  162.                         if (window["navigator"]["msMaxTouchPoints"]) {
  163.                             variable_01 = variable_4
  164.                         } else {
  165.                             if (!!window["chrome"] && !(!!window["opera"] || navigator["userAgent"]["indexOf"](" Opera") >= 0)) {
  166.                                 variable_01 = variable_5
  167.                             } else {
  168.                                 if (Object["prototype"]["toString"]["call"](window.HTMLElement)["indexOf"]("Constructor") > 0) {
  169.                                     variable_01 = variable_6
  170.                                 } else {
  171.                                     if ("orientation" in window && "webkitRequestAnimationFrame" in window) {
  172.                                         variable_01 = variable_7
  173.                                     } else {
  174.                                         if ("webkitRequestAnimationFrame" in window) {
  175.                                             variable_01 = variable_9
  176.                                         } else {
  177.                                             if (navigator["userAgent"]["indexOf"]("Opera") >= 0) {
  178.                                                 variable_01 = variable_20
  179.                                             } else {
  180.                                                 if (window["devicePixelRatio"]) {
  181.                                                     variable_01 = variable_15
  182.                                                 } else {
  183.                                                     if (variable_14()["zoom"] > 0.001) {
  184.                                                         variable_01 = variable_14
  185.                                                     }
  186.                                                 }
  187.                                             }
  188.                                         }
  189.                                     }
  190.                                 }
  191.                             }
  192.                         }
  193.                     };
  194.                     return variable_01
  195.                 }());
  196.                 return ({
  197.                     zoom: function() {
  198.                         return variable_00()["zoom"]
  199.                     },
  200.                     device: function() {
  201.                         return variable_00()["devicePxPerCssPx"]
  202.                     }
  203.                 })
  204.             }));
  205.  
  206.             function powersize() {
  207.                 var variable_3 = detectZoom["zoom"]();
  208.                 var variable_06 = detectZoom["device"]();
  209.  
  210.                 function variable_07() {
  211.                     return navigator["platform"]["indexOf"]("Mac") > -1
  212.                 }
  213.  
  214.                 function variable_08() {
  215.                     return navigator["platform"]["indexOf"]("Win") > -1
  216.                 }
  217.                 if (variable_06 >= 1.20 && variable_3 >= 1 && variable_3 <= 1.1) {
  218.                     $("html")["css"]({
  219.                         "zoom": "0.8",
  220.                         "-ms-zoom:": "0.8",
  221.                         "-webkit-zoom": "0.8"
  222.                     });
  223.                     $("#largeade")["css"]({
  224.                         "left": "-150px",
  225.                         "zoom": "1.25",
  226.                         "-ms-zoom:": "1.25",
  227.                         "-webkit-zoom": "1.25"
  228.                     });
  229.                     $("#littleads")["css"]({
  230.                         "zoom": "1.25",
  231.                         "-ms-zoom:": "1.25",
  232.                         "-webkit-zoom": "1.25"
  233.                     })
  234.                 } else {
  235.                     if (variable_3 == 0.8) {
  236.                         $("html")["css"]({
  237.                             "zoom": "1",
  238.                             "-ms-zoom:": "1",
  239.                             "-webkit-zoom": "1"
  240.                         })
  241.                     } else {
  242.                         if (variable_3 == 0.9) {
  243.                             $("html")["css"]({
  244.                                 "zoom": "1.12",
  245.                                 "-ms-zoom:": "1.12",
  246.                                 "-webkit-zoom": "1.12"
  247.                             })
  248.                         } else {
  249.                             if (variable_3 == 1.25) {
  250.                                 $("html")["css"]({
  251.                                     "zoom": "0.8",
  252.                                     "-ms-zoom:": "0.8",
  253.                                     "-webkit-zoom": "0.8"
  254.                                 })
  255.                             }
  256.                         }
  257.                     }
  258.                 }
  259.             }
  260.             powersize();
  261.             $(function() {
  262.                 var variable_09 = window["location"],
  263.                     variable_0a = $("#loader"),
  264.                     variable_0b = function(variable_0c, variable_0d) {
  265.                         zx = window["location"]["pathname"];
  266.                         variable_0a["css"]({
  267.                             display: "block"
  268.                         });
  269.                         document["title"] = "Chargement...";
  270.                         $("#HotelManager")["hide"]();
  271.                         if (zx == "/hotel") {
  272.                             document["title"] = "HabboCity: Hôtel";
  273.                             EntrerHotel()
  274.                         } else {
  275.                             if (zx["substring"](0, 5) == "/room") {
  276.                                 variable_0a["fadeOut"](400)
  277.                             } else {
  278.                                 $("#HotelManagerLoad")["css"]({
  279.                                     visibility: "hidden"
  280.                                 });
  281.                                 $("#appcontent")["load"](variable_0c + " #appcontent", function(variable_0e, variable_0f, variable_30) {
  282.                                     displayGoogleAds();
  283.                                     if (variable_0f == "success") {
  284.                                         if (detectZoom["device"]() >= 1.20 && detectZoom["zoom"]() >= 1 && detectZoom["zoom"]() <= 1.1) {
  285.                                             $("#littleads")["css"]({
  286.                                                 "zoom": "1.25",
  287.                                                 "-ms-zoom:": "1.25",
  288.                                                 "-webkit-zoom": "1.25"
  289.                                             });
  290.                                             $("#largeade")["css"]({
  291.                                                 "left": "200px",
  292.                                                 "zoom": "1.25",
  293.                                                 "-ms-zoom:": "1.25",
  294.                                                 "-webkit-zoom": "1.25"
  295.                                             })
  296.                                         };
  297.                                         $("html")["css"]({
  298.                                             "overflow": "auto"
  299.                                         });
  300.                                         document["title"] = variable_0d;
  301.                                         if (variable_0d == null) {
  302.                                             $("html")["css"]({
  303.                                                 "overflow": "auto"
  304.                                             });
  305.                                             document["title"] = "HabboCity"
  306.                                         };
  307.                                         $(document)["lazyload"]();
  308.                                         $(".play > video")["attr"]("src", "app/assets/img/habbo.mp4");
  309.                                         variable_0a["fadeOut"](400);
  310.                                         $("html, body")["animate"]({
  311.                                             scrollTop: 0
  312.                                         }, "slow")
  313.                                     } else {
  314.                                         window["location"]["href"] = "/introuvable"
  315.                                     }
  316.                                 })
  317.                             }
  318.                         }
  319.                     };
  320.                 $(document)["ready"](function() {
  321.                     $("a")["live"]("click", function(variable_31) {
  322.                         var variable_32 = $(this)["attr"]("href"),
  323.                             variable_33 = $(this)["attr"]("room");
  324.                         if (variable_32 == "hotel") {
  325.                             EntrerHotel();
  326.                             return false
  327.                         } else {
  328.                             if (typeof variable_33 !== typeof undefined && variable_33 !== false) {
  329.                                 EntrerHotel(variable_33);
  330.                                 return false
  331.                             } else {
  332.                                 if (variable_32 != "deconnexion") {
  333.                                     variable_31["preventDefault"]()
  334.                                 };
  335.                                 var variable_25 = $(this)["attr"]("target"),
  336.                                     variable_31 = $(this)["attr"]("place");
  337.                                 if (variable_25 == "blank") {
  338.                                     window["open"](variable_32, "_blank")
  339.                                 } else {
  340.                                     history["pushState"](variable_31, null, variable_32);
  341.                                     variable_0b(variable_32, variable_31)
  342.                                 }
  343.                             }
  344.                         }
  345.                     })
  346.                 });
  347.                 window["addEventListener"]("popstate", function(variable_31) {
  348.                     $("html")["css"]({
  349.                         overflow: "auto"
  350.                     });
  351.                     var variable_34 = variable_31["state"];
  352.                     variable_0b(document["location"], variable_34)
  353.                 })
  354.             });
  355.             (function(variable_35) {
  356.                 variable_35["fn"]["lazyload"] = function() {
  357.                     variable_35(window)["scroll"](variable_36);
  358.                     variable_36()
  359.                 };
  360.  
  361.                 function variable_36() {
  362.                     var variable_32 = variable_35(window)["scrollTop"](),
  363.                         variable_37 = variable_35(window)["height"]();
  364.                     variable_35("img.lazy")["each"](function() {
  365.                         var variable_38 = variable_35(this)["offset"]()["top"];
  366.                         if (variable_38 < (variable_37 + variable_32 + 100)) {
  367.                             variable_35(this)["attr"]("src", variable_35(this)["data"]("src"))["fadeOut"](0)["removeClass"]("lazy")["removeAttr"]("data-src")["fadeIn"](1000)
  368.                         }
  369.                     })
  370.                 }
  371.             })(jQuery);
  372.             $(document)["ready"](function() {
  373.                 $(document)["lazyload"]()
  374.             });
  375.             $("#userbarre")["live"]("click", function() {
  376.                 var variable_39 = $("#usertoggle"),
  377.                     variable_3a = $("#userfleche");
  378.                 if (variable_39["is"](":visible")) {
  379.                     variable_39["slideUp"](150);
  380.                     variable_3a["animate"]({
  381.                         textIndent: 0
  382.                     }, {
  383.                         step: function(variable_3b, variable_3c) {
  384.                             $(this)["css"]("-webkit-transform", "rotate(" + variable_3b + "deg)")
  385.                         },
  386.                         duration: 250
  387.                     }, "linear")
  388.                 } else {
  389.                     variable_3a["animate"]({
  390.                         textIndent: 180
  391.                     }, {
  392.                         step: function(variable_3b, variable_3c) {
  393.                             $(this)["css"]("-webkit-transform", "rotate(" + variable_3b + "deg)")
  394.                         },
  395.                         duration: 250
  396.                     }, "linear");
  397.                     variable_39["slideDown"](150)
  398.                 };;
  399.             });
  400.             var us4 = $("#usernotif");
  401.             setInterval(function() {
  402.                 us4["animate"]({
  403.                     top: "-14"
  404.                 }, 400)
  405.             }, 400);
  406.             setInterval(function() {
  407.                 us4["animate"]({
  408.                     top: "-8"
  409.                 }, 400)
  410.             }, 400);
  411.             $(".community_hover")["live"]("hover", function() {
  412.                 $(".menu_community_hover")["fadeIn"](100);
  413.                 $(".menu_palmares_hover")["fadeOut"](100)
  414.             });
  415.             $(".palmares_hover")["live"]("hover", function() {
  416.                 $(".menu_palmares_hover")["fadeIn"](100);
  417.                 $(".menu_community_hover")["fadeOut"](100)
  418.             });
  419.             $(".normal_hover")["live"]("hover", function() {
  420.                 $(".menu_community_hover")["fadeOut"](100);
  421.                 $(".menu_palmares_hover")["fadeOut"](100)
  422.             });
  423.             $(".menu")["live"]("mouseleave", function() {
  424.                 $(".menu_community_hover")["fadeOut"](100);
  425.                 $(".menu_palmares_hover")["fadeOut"](100)
  426.             });
  427.  
  428.             function MenuScroll() {
  429.                 var variable_34 = $(".menu");
  430.                 if ($(window)["scrollTop"]() > 124) {
  431.                     variable_34["css"]({
  432.                         "position": "fixed",
  433.                         "z-index": "9999999"
  434.                     })
  435.                 } else {
  436.                     variable_34["css"]({
  437.                         "position": "relative",
  438.                         "z-index": "99"
  439.                     })
  440.                 }
  441.             }
  442.             $(window)["scroll"](MenuScroll);
  443.             MenuScroll();
  444.  
  445.             function NewsSignale() {
  446.                 var variable_40 = $("#articlesignale");
  447.                 if ($(window)["scrollTop"]() > 0) {
  448.                     variable_40["css"]({
  449.                         "bottom": "18px",
  450.                         "right": "calc(15% - 70px)"
  451.                     })
  452.                 } else {
  453.                     variable_40["css"]({
  454.                         "bottom": "calc(100% - 295px)",
  455.                         "right": "calc(15% - 70px)"
  456.                     })
  457.                 }
  458.             }
  459.             $(window)["scroll"](NewsSignale);
  460.             NewsSignale();
  461.             $(window)["load"](function() {
  462.                 var variable_41, variable_42, variable_43, variable_44, variable_45;
  463.                 $("#stories")["live"]("mousedown", function(variable_31) {
  464.                     variable_31["preventDefault"]();
  465.                     variable_45 = true;
  466.                     variable_41 = variable_31["pageX"];
  467.                     variable_42 = variable_31["pageY"];
  468.                     variable_43 = $(this)["scrollTop"]();
  469.                     variable_44 = $(this)["scrollLeft"]()
  470.                 });
  471.                 $("body")["live"]("mousemove", function(variable_31) {
  472.                     if (variable_45) {
  473.                         var variable_46 = variable_31["pageX"];
  474.                         var variable_47 = variable_31["pageY"];
  475.                         $("#stories")["scrollLeft"](variable_44 - variable_46 + variable_41)
  476.                     }
  477.                 });
  478.                 $("body")["live"]("mouseup", function(variable_31) {
  479.                     variable_45 = false
  480.                 })
  481.             })
  482.  
  483.             function NewsLeft() {
  484.                 var a = $("#articlesui"),
  485.                     right = parseInt(a.css("right")) - 420;
  486.                 if (right > -420) {
  487.                     a.animate({
  488.                         right
  489.                     }, 120);
  490.                 }
  491.             }
  492.             $(document)["ready"](function() {
  493.                 $("#editeur")["live"]("click", function(variable_16) {
  494.                     var variable_17 = $(this)["html"]();
  495.                     if (variable_17 == "écrire quelque chose...") {
  496.                         $(this)["html"]("")
  497.                     }
  498.                 })
  499.             });
  500.             $(document)["ready"](function() {
  501.                 $("#editeurchat")["live"]("click", function(variable_16) {
  502.                     var variable_17 = $(this)["html"]();
  503.                     if (variable_17 == "écrire quelque chose...") {
  504.                         $(this)["html"]("")
  505.                     }
  506.                 })
  507.             })
  508.  
  509.             function NewsRight() {
  510.                 var a = $("#articlesui"),
  511.                     right = parseInt(a.css("right")) + 420;
  512.                 if (right < 2200) {
  513.                     a.animate({
  514.                         right
  515.                     }, 120);
  516.                 }
  517.             }
  518.  
  519.             function MouvConnexion() {
  520.                 var variable_18 = $("#FormConnexion");
  521.                 variable_18["animate"]({
  522.                     right: "15px"
  523.                 }, 70);
  524.                 variable_18["animate"]({
  525.                     right: "-15px"
  526.                 }, 70);
  527.                 variable_18["animate"]({
  528.                     right: "15px"
  529.                 }, 70);
  530.                 variable_18["animate"]({
  531.                     right: "-15px"
  532.                 }, 70);
  533.                 variable_18["animate"]({
  534.                     right: "15px"
  535.                 }, 70);
  536.                 variable_18["animate"]({
  537.                     right: "-15px"
  538.                 }, 70);
  539.                 variable_18["animate"]({
  540.                     right: "15px"
  541.                 }, 70);
  542.                 variable_18["animate"]({
  543.                     right: "0px"
  544.                 }, 70)
  545.             }
  546.  
  547.             function AnimateConnexion() {
  548.                 $("#identifiant")["css"]({
  549.                     border: "3px solid rgb(242,91,99)"
  550.                 }, 100);
  551.                 $("#password")["css"]({
  552.                     border: "3px solid rgb(242,91,99)"
  553.                 }, 100);
  554.                 MouvConnexion()
  555.             }
  556.  
  557.             function AnimateCaptchaIndex() {
  558.                 $("#captcha")["css"]({
  559.                     border: "3px solid rgb(242,91,99)"
  560.                 }, 100);
  561.                 $("#identifiant")["css"]({
  562.                     border: "0"
  563.                 }, 100);
  564.                 $("#password")["css"]({
  565.                     border: "0"
  566.                 }, 100);
  567.                 MouvConnexion()
  568.             }
  569.             $(document)["ready"](function() {
  570.                 $("#FormConnexion")["live"]("submit", function() {
  571.                     var variable_19 = $("#identifiant")["val"](),
  572.                         variable_20 = $("#captcha")["val"](),
  573.                         variable_21 = $("#password")["val"](),
  574.                         variable_22 = Math["floor"](Math["random"]() * (1 - 100000 + 1)) + 100000,
  575.                         variable_23 = {
  576.                             identifiant: variable_19,
  577.                             password: variable_21,
  578.                             method: "ajax",
  579.                             captcha: variable_20
  580.                         },
  581.                         variable_24 = $("#indexsubmit");
  582.                     if (variable_19 == "" || variable_21 == "") {
  583.                         AnimateConnexion()
  584.                     } else {
  585.                         variable_24["html"]("Chargement...");
  586.                         $["ajax"]({
  587.                             url: $(this)["attr"]("action"),
  588.                             type: $(this)["attr"]("method"),
  589.                             data: variable_23,
  590.                             dataType: "json",
  591.                             success: function(variable_25) {
  592.                                 if (variable_25["reponse"] == "ok") {
  593.                                     window["location"]["href"] = "profil"
  594.                                 } else {
  595.                                     if (variable_25["reponse"] == "erreur") {
  596.                                         variable_24["html"]("Se connecter");
  597.                                         AnimateConnexion()
  598.                                     } else {
  599.                                         if (variable_25["reponse"] == "bannis") {
  600.                                             location["href"] = "ban"
  601.                                         } else {
  602.                                             if (variable_25["reponse"] == "captcha") {
  603.                                                 $("#loadcaptcha > img")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22);
  604.                                                 variable_24["html"]("Se connecter");
  605.                                                 AnimateCaptchaIndex();
  606.                                                 $("#indexcaptcha")["css"]({
  607.                                                     display: "block"
  608.                                                 })
  609.                                             } else {
  610.                                                 if ("staff") {
  611.                                                     $("#secu1")["css"]({
  612.                                                         visibility: "visible"
  613.                                                     });
  614.                                                     $("#secuload")["load"]("app/load/GoogleSecurity.php?pseudo=" + variable_25["pseudo"], function(variable_26, variable_27, variable_28) {
  615.                                                         if (variable_27 == "success") {
  616.                                                             $("#secu3")["text"](variable_25["pseudo"] + " ton compte est bloqué")
  617.                                                         }
  618.                                                     })
  619.                                                 }
  620.                                             }
  621.                                         }
  622.                                     }
  623.                                 }
  624.                             }
  625.                         })
  626.                     };
  627.                     return false
  628.                 })
  629.             });
  630.             $(document)["ready"](function() {
  631.                 $("#identifiant")["live"]("keyup", function() {
  632.                     var variable_29 = $(this)["val"](),
  633.                         variable_18 = $("#indexusername > a");
  634.                     if (variable_29 == "") {
  635.                         variable_18["html"]("HEY")
  636.                     } else {
  637.                         variable_18["html"](variable_29)
  638.                     };
  639.                     var variable_23 = "username=" + variable_29;
  640.                     if (variable_29["length"] > 0) {
  641.                         $["ajax"]({
  642.                             type: "GET",
  643.                             url: "app/actions/PlayerGetFigure.php",
  644.                             data: variable_23,
  645.                             dataType: "json",
  646.                             success: function(variable_25) {
  647.                                 var variable_30 = variable_25["reponse"] + "&size=l&direction=2&head_direction=2";
  648.                                 $("#indexfigure > img")["attr"]("src", variable_30)
  649.                             }
  650.                         })
  651.                     }
  652.                 })
  653.             });
  654.  
  655.             function SetLook(variable_30, variable_181, variable_182) {
  656.                 var variable_183 = variable_181 + variable_30 + "&direction=4&head_direction=3&action=sit&gesture=sml&size=l",
  657.                     variable_184 = $("#setlook > img");
  658.                 variable_184["fadeOut"](0);
  659.                 variable_184["attr"]("src", variable_183);
  660.                 variable_184["fadeIn"](500);
  661.                 $("#figurejs")["html"]("<input id="
  662.                     figure_id "  value="
  663.                     " + variable_30 + "
  664.                     "></input>");
  665.                 $("#genderjs")["html"]("<input id="
  666.                     gender "  value="
  667.                     " + variable_182 + "
  668.                     "></input>")
  669.             }
  670.  
  671.             function RegisterNext() {
  672.                 $("#choisistonlook")["fadeIn"](500)
  673.             }
  674.  
  675.             function CloseRegisterNext() {
  676.                 $("#choisistonlook")["css"]({
  677.                     "display": "none"
  678.                 })
  679.             }
  680.  
  681.             function MouvInscription() {
  682.                 var variable_188 = $("#FormInscription");
  683.                 variable_188["animate"]({
  684.                     right: "15px"
  685.                 }, 70);
  686.                 variable_188["animate"]({
  687.                     right: "-15px"
  688.                 }, 70);
  689.                 variable_188["animate"]({
  690.                     right: "15px"
  691.                 }, 70);
  692.                 variable_188["animate"]({
  693.                     right: "-15px"
  694.                 }, 70);
  695.                 variable_188["animate"]({
  696.                     right: "15px"
  697.                 }, 70);
  698.                 variable_188["animate"]({
  699.                     right: "-15px"
  700.                 }, 70);
  701.                 variable_188["animate"]({
  702.                     right: "15px"
  703.                 }, 70);
  704.                 variable_188["animate"]({
  705.                     right: "0px"
  706.                 }, 70)
  707.             }
  708.  
  709.             function ResetInscription() {
  710.                 $("#username")["css"]({
  711.                     border: "0"
  712.                 }, 100);
  713.                 $("#mail")["css"]({
  714.                     border: "0"
  715.                 }, 100);
  716.                 $("#password")["css"]({
  717.                     border: "0"
  718.                 }, 100);
  719.                 $("#repassword")["css"]({
  720.                     border: "0"
  721.                 }, 100);
  722.                 $("#captcha")["css"]({
  723.                     border: "0"
  724.                 }, 100)
  725.             }
  726.  
  727.             function AnimateInscription() {
  728.                 ResetInscription();
  729.                 $("#choisistonlook")["fadeOut"](100);
  730.                 $("#username")["css"]({
  731.                     border: "3px solid rgb(242,91,99)"
  732.                 }, 100);
  733.                 $("#mail")["css"]({
  734.                     border: "3px solid rgb(242,91,99)"
  735.                 }, 100);
  736.                 $("#password")["css"]({
  737.                     border: "3px solid rgb(242,91,99)"
  738.                 }, 100);
  739.                 $("#repassword")["css"]({
  740.                     border: "3px solid rgb(242,91,99)"
  741.                 }, 100);
  742.                 $("#captcha")["css"]({
  743.                     border: "3px solid rgb(242,91,99)"
  744.                 }, 100);
  745.                 MouvInscription()
  746.             }
  747.  
  748.             function AnimatePassword() {
  749.                 ResetInscription();
  750.                 $("#choisistonlook")["fadeOut"](100);
  751.                 $("#password")["css"]({
  752.                     border: "3px solid rgb(242,91,99)"
  753.                 }, 100);
  754.                 $("#repassword")["css"]({
  755.                     border: "3px solid rgb(242,91,99)"
  756.                 }, 100);
  757.                 MouvInscription()
  758.             }
  759.  
  760.             function AnimateMail() {
  761.                 ResetInscription();
  762.                 $("#choisistonlook")["fadeOut"](100);
  763.                 $("#mail")["css"]({
  764.                     border: "3px solid rgb(242,91,99)"
  765.                 }, 100);
  766.                 MouvInscription()
  767.             }
  768.  
  769.             function AnimatePseudo() {
  770.                 ResetInscription();
  771.                 $("#choisistonlook")["fadeOut"](100);
  772.                 $("#username")["css"]({
  773.                     border: "3px solid rgb(242,91,99)"
  774.                 }, 100);
  775.                 MouvInscription()
  776.             }
  777.  
  778.             function AnimateCaptcha() {
  779.                 ResetInscription();
  780.                 $("#choisistonlook")["fadeOut"](100);
  781.                 $("#captcha")["css"]({
  782.                     border: "3px solid rgb(242,91,99)"
  783.                 }, 100);
  784.                 MouvInscription()
  785.             }
  786.  
  787.             function JeSuisPret() {
  788.                 $("#lookchoisis2")["html"]("");
  789.                 $("#lookchoisis")["html"]("<button onclick="
  790.                     LookChoisis()
  791.                     " style="
  792.                     width: 100 % ;
  793.                     " type="
  794.                     submit " id="
  795.                     registerpret ">Je suis prêt</button>")
  796.             }
  797.  
  798.             function validateEmail(variable_311) {
  799.                 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,}))$/;
  800.                 return variable_312["test"](variable_311)
  801.             }
  802.             $(document)["ready"](function() {
  803.                 var variable_313 = $("#FormInscription");
  804.                 variable_313["live"]("submit", function() {
  805.                     var variable_22 = Math["floor"](Math["random"]() * (1 - 100000 + 1)) + 100000,
  806.                         variable_314 = $("#username")["val"](),
  807.                         variable_315 = $("#mail")["val"](),
  808.                         variable_21 = $("#password")["val"](),
  809.                         variable_316 = $("#repassword")["val"](),
  810.                         variable_20 = $("#captcha")["val"](),
  811.                         variable_183 = $("#figure_id")["val"](),
  812.                         variable_182 = $("#gender")["val"](),
  813.                         variable_23 = {
  814.                             pseudo: variable_314,
  815.                             mail: variable_315,
  816.                             password: variable_21,
  817.                             repassword: variable_316,
  818.                             captcha: variable_20,
  819.                             figure: variable_183,
  820.                             gender: variable_182,
  821.                             method: "ajax"
  822.                         };
  823.                     if (variable_314 == "" || variable_314["length"] < 4 || variable_314["length"] > 25) {
  824.                         JeSuisPret();
  825.                         AnimatePseudo()
  826.                     } else {
  827.                         if (variable_315 == "") {
  828.                             JeSuisPret();
  829.                             AnimateMail()
  830.                         } else {
  831.                             if (variable_21 == "" || variable_316 == "" || variable_21 != variable_316) {
  832.                                 JeSuisPret();
  833.                                 AnimatePassword()
  834.                             } else {
  835.                                 if (variable_20 == "") {
  836.                                     JeSuisPret();
  837.                                     AnimateCaptcha()
  838.                                 } else {
  839.                                     if (validateEmail(variable_315)) {
  840.                                         var variable_317 = $("#registerpret");
  841.                                         variable_317["html"]("Chargement...");
  842.                                         $["ajax"]({
  843.                                             url: $(this)["attr"]("action"),
  844.                                             type: $(this)["attr"]("method"),
  845.                                             data: variable_23,
  846.                                             dataType: "json",
  847.                                             success: function(variable_25) {
  848.                                                 if (variable_25["reponse"] == "ok") {
  849.                                                     window["location"]["href"] = "profil"
  850.                                                 } else {
  851.                                                     if (variable_25["reponse"] == "pseudo") {
  852.                                                         $("#lookchoisis2")["html"]("");
  853.                                                         $("#lookchoisis")["html"]("<button onclick="
  854.                                                             LookChoisis()
  855.                                                             " style="
  856.                                                             width: 100 % ;
  857.                                                             " type="
  858.                                                             submit " id="
  859.                                                             registerpret ">Je suis prêt</button>");
  860.                                                         AnimatePseudo();
  861.                                                         variable_317["html"]("Je suis prêt");
  862.                                                         JeSuisPret()
  863.                                                     } else {
  864.                                                         if (variable_25["reponse"] == "email") {
  865.                                                             AnimateMail();
  866.                                                             variable_317["html"]("Je suis prêt");
  867.                                                             JeSuisPret()
  868.                                                         } else {
  869.                                                             if (variable_25["reponse"] == "captcha") {
  870.                                                                 $("#loadcaptcha > img")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22);
  871.                                                                 AnimateCaptcha();
  872.                                                                 variable_317["html"]("Je suis prêt");
  873.                                                                 JeSuisPret()
  874.                                                             } else {
  875.                                                                 if (variable_25["reponse"] == "password") {
  876.                                                                     AnimatePassword();
  877.                                                                     variable_317["html"]("Je suis prêt");
  878.                                                                     JeSuisPret()
  879.                                                                 } else {
  880.                                                                     if (variable_25["reponse"] == "erreur") {
  881.                                                                         JeSuisPret();
  882.                                                                         variable_317["html"]("Je suis prêt");
  883.                                                                         AnimateInscription()
  884.                                                                     }
  885.                                                                 }
  886.                                                             }
  887.                                                         }
  888.                                                     }
  889.                                                 }
  890.                                             }
  891.                                         })
  892.                                     } else {
  893.                                         JeSuisPret();
  894.                                         AnimateMail()
  895.                                     }
  896.                                 }
  897.                             }
  898.                         }
  899.                     };
  900.                     return false
  901.                 })
  902.             });
  903.  
  904.             function LoadPageSupport(variable_181, variable_319) {
  905.                 var variable_31a = $("#footer31");
  906.                 variable_31a["html"]("Chargement en cours...");
  907.                 $("#footer23")["load"](variable_181, function(variable_26, variable_27, variable_28) {
  908.                     if (variable_27 == "success") {
  909.                         variable_31a["html"](variable_319)
  910.                     } else {
  911.                         window["location"]["href"] = baseUrl + "/introuvable"
  912.                     }
  913.                 })
  914.             }
  915.  
  916.             function OpenSupportToPage(variable_181, variable_319) {
  917.                 LoadPageSupport(variable_181, variable_319);
  918.                 $("#support")["fadeIn"](500);
  919.                 $("html")["css"]({
  920.                     overflow: "hidden"
  921.                 })
  922.             }
  923.  
  924.             function OpenSupport(variable_31d, variable_181) {
  925.                 var variable_31e = $("#footer31"),
  926.                     variable_31f = $("#footer23");
  927.                 if (variable_31d == "forum") {
  928.                     variable_31e["html"]("Chargement en cours...");
  929.                     variable_31f["load"]("app/load/HelpIndex.php", function(variable_26, variable_27, variable_28) {
  930.                         if (variable_27 == "success") {
  931.                             variable_31e["html"]("Besoin d'aide ?");
  932.                             $("#helpmenu")["prepend"]("<div onclick="
  933.                                 LoadPageSupport('" + variable_181 + "', 'Abus sur le forum')
  934.                                 " id="
  935.                                 footer34 ">Quelqu'un se comporte mal sur le forum</div>")
  936.                         } else {
  937.                             window["location"]["href"] = baseUrl + "/introuvable"
  938.                         }
  939.                     })
  940.                 } else {
  941.                     if (variable_31d == "news") {
  942.                         variable_31e["html"]("Chargement en cours...");
  943.                         variable_31f["load"]("app/load/HelpIndex.php", function(variable_26, variable_27, variable_28) {
  944.                             if (variable_27 == "success") {
  945.                                 variable_31e["html"]("Besoin d'aide ?");
  946.                                 $("#helpmenu")["prepend"]("<div onclick="
  947.                                     LoadPageSupport('" + variable_181 + "', 'Abus sur un article')
  948.                                     " id="
  949.                                     footer34 ">Quelqu'un se comporte mal dans les commentaires</div>")
  950.                             } else {
  951.                                 window["location"]["href"] = baseUrl + "/introuvable"
  952.                             }
  953.                         })
  954.                     } else {
  955.                         if (variable_31d == "user") {
  956.                             variable_31e["html"]("Chargement en cours...");
  957.                             variable_31f["load"]("app/load/HelpIndex.php", function(variable_26, variable_27, variable_28) {
  958.                                 if (variable_27 == "success") {
  959.                                     variable_31e["html"]("Besoin d'aide ?");
  960.                                     $("#helpmenu")["prepend"]("<div onclick="
  961.                                         LoadPageSupport('" + variable_181 + "', 'Abus sur le chat')
  962.                                         " id="
  963.                                         footer34 ">Quelqu'un se comporte mal sur le chat</div>")
  964.                                 } else {
  965.                                     window["location"]["href"] = baseUrl + "/introuvable"
  966.                                 }
  967.                             })
  968.                         } else {
  969.                             LoadPageSupport("app/load/HelpIndex.php", "Besoin d'aide ?")
  970.                         }
  971.                     }
  972.                 };
  973.                 $("#support")["fadeIn"](500);
  974.                 $("html")["css"]({
  975.                     overflow: "hidden"
  976.                 })
  977.             }
  978.  
  979.             function CloseSupport() {
  980.                 $("#support")["fadeOut"](500);
  981.                 $("html")["css"]({
  982.                     overflow: "auto"
  983.                 })
  984.             }
  985.  
  986.             function SelectForumSupport(variable_322, variable_314, variable_323) {
  987.                 $(".footer42")["each"](function() {
  988.                     $(this)["css"]({
  989.                         background: "transparent"
  990.                     })
  991.                 });
  992.                 $("#fofo" + variable_322)["css"]({
  993.                     background: "rgb(127,127,127)"
  994.                 });
  995.                 $("#footer39")["html"](variable_314);
  996.                 $("#footer38")["css"]({
  997.                     background: "url(https://avatar-retro.com/habbo-imaging/avatarimage?figure=" + variable_323 + "&headonly=1&direction=4&head_direction=3&size=l)"
  998.                 });
  999.                 $("#content2")["html"](variable_322)
  1000.             }
  1001.  
  1002.             function AnimateHelp() {
  1003.                 var variable_325 = $("#footer47");
  1004.                 variable_325["animate"]({
  1005.                     left: "10px"
  1006.                 }, 70);
  1007.                 variable_325["animate"]({
  1008.                     left: "-10px"
  1009.                 }, 70);
  1010.                 variable_325["animate"]({
  1011.                     left: "10px"
  1012.                 }, 70);
  1013.                 variable_325["animate"]({
  1014.                     left: "-10px"
  1015.                 }, 70);
  1016.                 variable_325["animate"]({
  1017.                     left: "10px"
  1018.                 }, 70);
  1019.                 variable_325["animate"]({
  1020.                     left: "-10px"
  1021.                 }, 70);
  1022.                 variable_325["animate"]({
  1023.                     left: "10px"
  1024.                 }, 70);
  1025.                 variable_325["animate"]({
  1026.                     left: "-10px"
  1027.                 }, 70);
  1028.                 variable_325["animate"]({
  1029.                     left: "10px"
  1030.                 }, 70);
  1031.                 variable_325["animate"]({
  1032.                     left: "0px"
  1033.                 }, 70)
  1034.             }
  1035.  
  1036.             function SupportNext() {
  1037.                 var variable_18 = $("#footer41"),
  1038.                     variable_31e = $("#footer47"),
  1039.                     variable_31f = $("#footer34"),
  1040.                     variable_327 = $("#footer40");
  1041.                 if (variable_18["is"](":visible")) {
  1042.                     variable_31e["show"]();
  1043.                     variable_18["hide"]();
  1044.                     variable_31f["text"]("Retour");
  1045.                     variable_327["text"]("Choisis le sujet qui correspond le plus à ta demande.")
  1046.                 } else {
  1047.                     if (variable_31e["is"](":visible")) {
  1048.                         variable_31e["hide"]();
  1049.                         variable_18["show"]();
  1050.                         variable_327["text"]("Choisis le habbo à signaler.");
  1051.                         variable_31f["text"]("Suivant")
  1052.                     }
  1053.                 }
  1054.             }
  1055.  
  1056.             function SupportFinal(variable_329) {
  1057.                 var variable_31d = $("#type")["html"](),
  1058.                     variable_32a = $("#content")["html"](),
  1059.                     variable_32b = $("#content2")["html"](),
  1060.                     variable_32c = $("#footer34");
  1061.                 variable_32c["text"]("Chargement...");
  1062.                 $["ajax"]({
  1063.                     type: "POST",
  1064.                     url: "app/actions/Report.php",
  1065.                     data: {
  1066.                         type: variable_31d,
  1067.                         content: variable_32a,
  1068.                         contenu_text: variable_32b,
  1069.                         signalement: variable_329
  1070.                     },
  1071.                     dataType: "json",
  1072.                     success: function(variable_25) {
  1073.                         if (variable_25["reponse"] == "ok") {
  1074.                             variable_32c["animate"]({
  1075.                                 top: "200px"
  1076.                             }, 100);
  1077.                             $("#footer40")["text"]("");
  1078.                             variable_32c["text"]("Succès! Veille à ne pas abuser de cet outil.");
  1079.                             $("#footer47")["hide"](340)
  1080.                         } else {
  1081.                             if (variable_25["reponse"] == "erreur") {
  1082.                                 AnimateHelp()
  1083.                             }
  1084.                         }
  1085.                     }
  1086.                 })
  1087.             }
  1088.  
  1089.             function balise(variable_32e, variable_32f) {
  1090.                 if (typeof variable_32f === "undefined") {
  1091.                     variable_32f = ""
  1092.                 };
  1093.                 switch (variable_32e) {
  1094.                     case "createLink":
  1095.                         variable_32f = prompt("Quelle est l'adresse du lien ?", "http://");
  1096.                         break;
  1097.                     case "insertImage":
  1098.                         variable_32f = prompt("Quelle est l'adresse de l'image ?");
  1099.                         break;
  1100.                     case "redcolor":
  1101.                         document["execCommand"]("foreColor", false, "#ED1C24");
  1102.                         break;
  1103.                     case "vertcolor":
  1104.                         document["execCommand"]("foreColor", false, "#22B14C");
  1105.                         break;
  1106.                     case "bleucolor":
  1107.                         document["execCommand"]("foreColor", false, "#4286CA");
  1108.                         break
  1109.                 };
  1110.                 document["execCommand"](variable_32e, false, variable_32f);
  1111.                 var variable_190 = document["getSelection"]();
  1112.                 variable_190["anchorNode"]["parentElement"]["target"] = "blank"
  1113.             }
  1114.             $("#ar_reaction")["live"]("hover", function() {
  1115.                 $("#js_reaction")["animate"]({
  1116.                     left: "7px"
  1117.                 }, 500)
  1118.             });
  1119.             $("#ar_reaction")["live"]("mouseleave", function() {
  1120.                 $("#js_reaction")["animate"]({
  1121.                     left: "400px"
  1122.                 }, 300)
  1123.             });
  1124.  
  1125.             function Share(variable_192, variable_181) {
  1126.                 window["open"](variable_192 + variable_181, "nom_popup", "menubar=no, status=no, scrollbars=no, menubar=no, width=200, height=100")
  1127.             }
  1128.  
  1129.             function React(variable_194, variable_31d, variable_195, variable_196, variable_197) {
  1130.                 var variable_23 = {
  1131.                         contentid: variable_194,
  1132.                         type: variable_31d,
  1133.                         page: variable_197
  1134.                     },
  1135.                     variable_31e = $("#lecture32");
  1136.                 $["ajax"]({
  1137.                     type: "POST",
  1138.                     url: "app/actions/ReactionSent.php",
  1139.                     data: variable_23,
  1140.                     dataType: "json",
  1141.                     success: function(variable_25) {
  1142.                         if (variable_25["reponse"] == "new") {
  1143.                             var variable_198 = parseInt($("." + variable_196)["html"]()) + 1;
  1144.                             $("." + variable_196)["html"](variable_198);
  1145.                             variable_31e["css"]({
  1146.                                 "background-position": variable_195
  1147.                             }, 100);
  1148.                             $("#nbreact")["html"](parseInt($("#nbreact")["html"]()) + 1)
  1149.                         } else {
  1150.                             if (variable_25["reponse"] == "remove") {
  1151.                                 var variable_198 = parseInt($("." + variable_196)["html"]()) - 1;
  1152.                                 $("." + variable_196)["html"](variable_198);
  1153.                                 $("#nbreact")["html"](parseInt($("#nbreact")["html"]()) - 1);
  1154.                                 variable_31e["css"]({
  1155.                                     "background-position": ""
  1156.                                 }, 100)
  1157.                             } else {
  1158.                                 if (variable_25["reponse"] == "edit") {
  1159.                                     var variable_322 = ".react" + variable_25["type"];
  1160.                                     var variable_198 = parseInt($("." + variable_196)["html"]()) + 1;
  1161.                                     $(variable_322)["html"](parseInt($(variable_322)["html"]()) - 1);
  1162.                                     $("." + variable_196)["html"](variable_198);
  1163.                                     variable_31e["css"]({
  1164.                                         "background-position": variable_195
  1165.                                     }, 100)
  1166.                                 }
  1167.                             }
  1168.                         }
  1169.                     }
  1170.                 })
  1171.             }
  1172.  
  1173.             function LikeStories(variable_322) {
  1174.                 x = $(".df" + variable_322);
  1175.                 s = $(".dx" + variable_322);
  1176.                 $["ajax"]({
  1177.                     type: "POST",
  1178.                     url: "app/actions/StoriesLike.php",
  1179.                     data: {
  1180.                         id: variable_322
  1181.                     },
  1182.                     dataType: "json",
  1183.                     success: function(variable_25) {
  1184.                         if (variable_25["type"] == "1") {
  1185.                             s["html"](parseInt(s["html"]()) + 1);
  1186.                             x["css"]({
  1187.                                 "transform": "scale(1.5)",
  1188.                                 "top": "26px"
  1189.                             })
  1190.                         } else {
  1191.                             if (variable_25["type"] == "2") {
  1192.                                 s["html"](parseInt(s["html"]()) - 1);
  1193.                                 x["css"]({
  1194.                                     "transform": "scale(1.0)",
  1195.                                     "top": "10px"
  1196.                                 })
  1197.                             }
  1198.                         }
  1199.                     }
  1200.                 })
  1201.             }
  1202.  
  1203.             function FlecheStories() {
  1204.                 var variable_31e = $(".stories");
  1205.                 if (variable_31e["height"]() == 62) {
  1206.                     document["cookie"] = "stories=open";
  1207.                     $("#profil20")["animate"]({
  1208.                         textIndent: 0
  1209.                     }, {
  1210.                         step: function(variable_19b, variable_19c) {
  1211.                             $(this)["css"]("-webkit-transform", "rotate(" + variable_19b + "deg)")
  1212.                         },
  1213.                         duration: 250
  1214.                     }, "linear");
  1215.                     variable_31e["animate"]({
  1216.                         height: "195px"
  1217.                     })
  1218.                 } else {
  1219.                     document["cookie"] = "stories=close";
  1220.                     $("#profil20")["animate"]({
  1221.                         textIndent: 180
  1222.                     }, {
  1223.                         step: function(variable_19b, variable_19c) {
  1224.                             $(this)["css"]("-webkit-transform", "rotate(" + variable_19b + "deg)")
  1225.                         },
  1226.                         duration: 250
  1227.                     }, "linear");
  1228.                     variable_31e["animate"]({
  1229.                         height: "62px"
  1230.                     })
  1231.                 }
  1232.             }
  1233.             $(".comediteur")["live"]("keydown", function(variable_19d) {
  1234.                 var variable_19e = (variable_19d["keyCode"] ? variable_19d["keyCode"] : variable_19d["which"]);
  1235.                 if (variable_19e == 13) {
  1236.                     return false
  1237.                 }
  1238.             });
  1239.  
  1240.             function AddCom(variable_29, variable_323, variable_200, variable_201, variable_202) {
  1241.                 var variable_31e = $("#lecture42"),
  1242.                     variable_31f = $(".articlecomsend"),
  1243.                     variable_327 = $("#commentairesliste");
  1244.                 variable_31e["fadeOut"]();
  1245.                 variable_31f["html"]("Chargement...");
  1246.                 var variable_203 = variable_327["html"](),
  1247.                     variable_204 = $("#editeur")["html"]()["replace"](/<div>/gi, "<br>")["replace"](/<\/div>/gi, "");
  1248.                 $["ajax"]({
  1249.                     type: "POST",
  1250.                     url: "app/actions/NewsCommentsAdd.php",
  1251.                     data: {
  1252.                         contenu: variable_204,
  1253.                         newsid: variable_200,
  1254.                         link: variable_202
  1255.                     },
  1256.                     dataType: "json",
  1257.                     success: function(variable_25) {
  1258.                         if (variable_25["reponse"] == "ok") {
  1259.                             if (variable_203 == "Hey toi, sois le premier à commenter !") {
  1260.                                 variable_327["html"]("")
  1261.                             };
  1262.                             if (variable_201 > 10) {
  1263.                                 variable_327["prepend"]($("<div class="
  1264.                                     com " id="
  1265.                                     lecture40 "><div id="
  1266.                                     habboforumbulle "style="
  1267.                                     left: 73 px; top: 35 px;
  1268.                                     "></div><div id="
  1269.                                     articlescombadge "></div><a href="
  1270.                                     profil / " + variable_29 + "
  1271.                                     "><div id="
  1272.                                     articlescomtete " style="
  1273.                                     background: url(" + variable_323 + " & action = std & direction = 2 & head_direction = 2 & gesture = sml & headonly = l & size = l);
  1274.                                     "></div></a><div id="
  1275.                                     lecture41 "><div id="
  1276.                                     articlescomtext "><b>" + variable_29 + "</b> : " + convertmention(variable_204) + "</div></div></div> ")["fadeIn"]())
  1277.                             } else {
  1278.                                 variable_327["prepend"]($("<div class="
  1279.                                     com " id="
  1280.                                     lecture40 "><div id="
  1281.                                     habboforumbulle "style="
  1282.                                     left: 73 px; top: 35 px;
  1283.                                     "></div><a href="
  1284.                                     profil / " + variable_29 + "
  1285.                                     "><div id="
  1286.                                     articlescomtete " style="
  1287.                                     background: url(" + variable_323 + " & action = std & direction = 2 & head_direction = 2 & gesture = sml & headonly = l & size = l);
  1288.                                     "></div></a><div id="
  1289.                                     lecture41 "><div id="
  1290.                                     articlescomtext "><b>" + variable_29 + "</b> : " + convertmention(variable_204) + "</div></div></div> ")["fadeIn"]())
  1291.                             };
  1292.                             variable_31f["html"]("Réagir")
  1293.                         } else {
  1294.                             if (variable_25["reponse"] == "erreur") {
  1295.                                 variable_31e["fadeIn"]();
  1296.                                 $("#lecture44")["html"](variable_25["message"]);
  1297.                                 variable_31f["html"]("Réagir")
  1298.                             }
  1299.                         }
  1300.                     }
  1301.                 })
  1302.             }
  1303.  
  1304.             function convertmention(variable_206) {
  1305.                 $str = variable_206;
  1306.                 $format_search = [/\@(.*?)\ /ig];
  1307.                 $format_replace = ["<a href="
  1308.                     profil / $1 " style="
  1309.                     color: rgb(0, 162, 232);
  1310.                     "><b>@$1 </b></a>"
  1311.                 ];
  1312.                 for (var variable_188 = 0; variable_188 < $format_search["length"]; variable_188++) {
  1313.                     $str = $str["replace"]($format_search[variable_188], $format_replace[variable_188])
  1314.                 };
  1315.                 return $str
  1316.             }
  1317.  
  1318.             function DeleteCom(variable_208) {
  1319.                 var variable_23 = "id=" + variable_208;
  1320.                 $["ajax"]({
  1321.                     type: "POST",
  1322.                     url: "app/actions/NewsCommentsRemove.php",
  1323.                     data: variable_23,
  1324.                     dataType: "json",
  1325.                     success: function(variable_25) {
  1326.                         if (variable_25["reponse"] == "ok") {
  1327.                             $(".com" + variable_208)["html"]("<div id="
  1328.                                 lecture40s ">Commentaire supprimé</div>")
  1329.                         } else {
  1330.                             if (variable_25["reponse"] == "erreur") {
  1331.                                 alert("Petit soucis: Erreur")
  1332.                             }
  1333.                         }
  1334.                     }
  1335.                 })
  1336.             }
  1337.             $(document)["ready"](function() {
  1338.                 $("#articles20")["live"]("keyup", function() {
  1339.                     var variable_18 = $("#articles23");
  1340.                     variable_18["show"]();
  1341.                     var variable_209 = $(this)["val"]();
  1342.                     var variable_23 = "search=" + variable_209;
  1343.                     if (variable_209["length"] > 0) {
  1344.                         $["ajax"]({
  1345.                             type: "GET",
  1346.                             url: "app/actions/NewsSearch.php",
  1347.                             data: variable_23,
  1348.                             success: function(variable_20a) {
  1349.                                 $(".searchnews")["html"](variable_20a)["show"]();
  1350.                                 variable_18["hide"]()
  1351.                             }
  1352.                         })
  1353.                     } else {
  1354.                         $["ajax"]({
  1355.                             type: "GET",
  1356.                             url: "app/actions/NewsSearch.php?get=null",
  1357.                             data: variable_23,
  1358.                             success: function(variable_20a) {
  1359.                                 $(".searchnews")["html"](variable_20a)["show"]();
  1360.                                 variable_18["hide"]()
  1361.                             }
  1362.                         })
  1363.                     }
  1364.                 })
  1365.             });
  1366.  
  1367.             function OpenStream() {
  1368.                 var variable_31e = $("#stream1"),
  1369.                     variable_31f = $("#waitstream");
  1370.                 $("#usernotif")["css"]({
  1371.                     display: "none"
  1372.                 });
  1373.                 variable_31e["animate"]({
  1374.                     right: "0px"
  1375.                 }, 500);
  1376.                 variable_31e["css"]({
  1377.                     display: "block"
  1378.                 });
  1379.                 variable_31f["css"]({
  1380.                     display: "block"
  1381.                 });
  1382.                 $("#getstream")["load"]("app/load/Habbostream.php", function(variable_26, variable_27, variable_28) {
  1383.                     if (variable_27 == "success") {
  1384.                         variable_31f["css"]({
  1385.                             display: "none"
  1386.                         })
  1387.                     };
  1388.                     if (variable_27 == "error") {
  1389.                         alert("Petit soucis: " + variable_28["status"] + ": " + variable_28["statusText"])
  1390.                     }
  1391.                 })
  1392.             }
  1393.  
  1394.             function CloseStream() {
  1395.                 var variable_31e = $("#stream1");
  1396.                 variable_31e["animate"]({
  1397.                     right: "-370px"
  1398.                 }, 500);
  1399.                 setTimeout(function() {
  1400.                     variable_31e["css"]({
  1401.                         display: "none"
  1402.                     })
  1403.                 }, 500)
  1404.             }
  1405.  
  1406.             function OpenHelpChat() {
  1407.                 $("#chatemojishelp")["fadeIn"](100)
  1408.             }
  1409.  
  1410.             function CloseHelpChat() {
  1411.                 $("#chatemojishelp")["fadeOut"](100)
  1412.             }
  1413.  
  1414.             function HideNotif(variable_322) {
  1415.                 $(".hidestream" + variable_322)["fadeOut"]();
  1416.                 $["ajax"]({
  1417.                     type: "POST",
  1418.                     url: "app/actions/StreamRemoveNotification.php",
  1419.                     data: {
  1420.                         id: variable_322
  1421.                     },
  1422.                     success: function(variable_20a) {}
  1423.                 })
  1424.             }
  1425.  
  1426.             function GetChat(variable_211) {
  1427.                 var variable_31e = $("#waitstream"),
  1428.                     variable_31f = $("#getchat");
  1429.                 variable_31e["css"]({
  1430.                     display: "block"
  1431.                 });
  1432.                 variable_31f["css"]({
  1433.                     display: "block"
  1434.                 });
  1435.                 variable_31f["load"]("app/load/HabbostreamTalk.php?userid=" + variable_211, function(variable_26, variable_27, variable_28) {
  1436.                     if (variable_27 == "success") {
  1437.                         variable_31e["css"]({
  1438.                             display: "none"
  1439.                         });
  1440.                         variable_31f["animate"]({
  1441.                             left: "0px"
  1442.                         }, 500);
  1443.                         $(".msgnotif" + variable_211)["css"]({
  1444.                             display: "none"
  1445.                         });
  1446.                         $("#identity" + variable_211)["css"]({
  1447.                             display: "block"
  1448.                         });
  1449.                         $("#chatbox")["animate"]({
  1450.                             scrollTop: $("#chatbox")["prop"]("scrollHeight")
  1451.                         }, 500)
  1452.                     }
  1453.                 })
  1454.             }
  1455.  
  1456.             function MouvSendChat() {
  1457.                 var variable_31e = $("#editeurchat");
  1458.                 variable_31e["animate"]({
  1459.                     left: "15px"
  1460.                 }, 70);
  1461.                 variable_31e["animate"]({
  1462.                     left: "25px"
  1463.                 }, 70);
  1464.                 variable_31e["animate"]({
  1465.                     left: "15px"
  1466.                 }, 70);
  1467.                 variable_31e["animate"]({
  1468.                     left: "25px"
  1469.                 }, 70);
  1470.                 variable_31e["animate"]({
  1471.                     left: "15px"
  1472.                 }, 70);
  1473.                 variable_31e["animate"]({
  1474.                     left: "25px"
  1475.                 }, 70);
  1476.                 variable_31e["animate"]({
  1477.                     left: "15px"
  1478.                 }, 70);
  1479.                 variable_31e["animate"]({
  1480.                     left: "25px"
  1481.                 }, 70)
  1482.             }
  1483.  
  1484.             function SendMsg(variable_211, variable_323, variable_314) {
  1485.                 var variable_31e = $("#run"),
  1486.                     variable_31f = $("#sendchat"),
  1487.                     variable_214 = $("#editeurchat");
  1488.                 var run = variable_31e["html"]();
  1489.                 if (run == "run") {
  1490.                     variable_31e["html"]("stop");
  1491.                     variable_31f["html"]("...");
  1492.                     var variable_216 = variable_214["text"]();
  1493.                     $["ajax"]({
  1494.                         type: "POST",
  1495.                         url: "app/actions/StreamSendMessage.php",
  1496.                         data: {
  1497.                             message: variable_216,
  1498.                             userid: variable_211
  1499.                         },
  1500.                         dataType: "json",
  1501.                         success: function(variable_25) {
  1502.                             if (variable_25["reponse"] == "ok") {
  1503.                                 $("#chatinlive" + variable_211)["append"]("<div id="
  1504.                                     stream26 "><a href="
  1505.                                     profil / " + variable_314 + "
  1506.                                     "><div id="
  1507.                                     stream27 " style="
  1508.                                     background: url(" + variable_323 + " & headonly = 0 & direction = 2 & head_direction = 2 & action = & gesture = & size = m);
  1509.                                     "></div></a><div id="
  1510.                                     stream29 "></div><div id="
  1511.                                     stream30 "><div id="
  1512.                                     stream33 "></div><div id="
  1513.                                     motto "><b>" + variable_314 + "</b> : " + variable_216 + "</div><div id="
  1514.                                     stream31 ">1 seconde</div></div><div class="
  1515.                                     chatvue " ></div></div>");
  1516.                                 $("#chatbox")["animate"]({
  1517.                                     scrollTop: $("#chatbox")["prop"]("scrollHeight")
  1518.                                 }, 500);
  1519.                                 variable_31f["html"]("Envoyer");
  1520.                                 variable_214["html"]("");
  1521.                                 variable_31e["html"]("run")
  1522.                             } else {
  1523.                                 if (variable_25["reponse"] == "erreur") {
  1524.                                     variable_31f["html"]("Envoyer");
  1525.                                     variable_214["css"]({
  1526.                                         border: "2px solid #ED1C24",
  1527.                                         height: "30px"
  1528.                                     });
  1529.                                     setTimeout(function() {
  1530.                                         variable_214["css"]({
  1531.                                             border: "0",
  1532.                                             height: "34px"
  1533.                                         })
  1534.                                     }, 700);
  1535.                                     MouvSendChat();
  1536.                                     variable_31e["html"]("run")
  1537.                                 }
  1538.                             }
  1539.                         }
  1540.                     })
  1541.                 }
  1542.             }
  1543.             $(document)["ready"](function() {
  1544.                 $("#stream36")["live"]("keyup", function() {
  1545.                     var variable_29 = $(this)["val"]();
  1546.                     var variable_23 = "username=" + variable_29;
  1547.                     $["ajax"]({
  1548.                         type: "GET",
  1549.                         url: "app/actions/StreamSearchFriend.php",
  1550.                         data: variable_23,
  1551.                         success: function(variable_20a) {
  1552.                             $("#friendslist")["html"](variable_20a)["show"]()
  1553.                         }
  1554.                     })
  1555.                 })
  1556.             });
  1557.             $(".editeurchat")["live"]("keydown", function(variable_19d) {
  1558.                 var variable_19e = (variable_19d["keyCode"] ? variable_19d["keyCode"] : variable_19d["which"]);
  1559.                 if (variable_19e == 13) {
  1560.                     var variable_322 = $("#chatmyid")["html"]();
  1561.                     var variable_314 = $("#chatmypseudo")["html"]();
  1562.                     var variable_323 = $("#chatmyavatar")["html"]();
  1563.                     SendMsg(variable_322, variable_323, variable_314);
  1564.                     return false
  1565.                 }
  1566.             });
  1567.  
  1568.             function CloseChat(variable_211) {
  1569.                 $("#getchat")["animate"]({
  1570.                     left: "-400px"
  1571.                 }, 500);
  1572.                 $("#identity" + variable_211)["css"]({
  1573.                     display: "none"
  1574.                 })
  1575.             }
  1576.  
  1577.             function CloseTuto() {
  1578.                 $("#profil51")["fadeOut"](500)
  1579.             }
  1580.  
  1581.             function ForumPostAdd(variable_21a, variable_183, variable_21b, variable_21c, variable_202) {
  1582.                 var variable_18 = $("#forum42");
  1583.                 variable_18["html"]("Chargement...");
  1584.                 var variable_216 = $("#editeur")["html"]()["replace"](/<div>/gi, "<br>")["replace"](/<\/div>/gi, "");
  1585.                 $["ajax"]({
  1586.                     type: "POST",
  1587.                     url: "app/actions/ForumAddPost.php",
  1588.                     data: {
  1589.                         message: variable_216,
  1590.                         threadid: variable_21a,
  1591.                         link: variable_202
  1592.                     },
  1593.                     dataType: "json",
  1594.                     success: function(variable_25) {
  1595.                         if (variable_25["reponse"] == "ok") {
  1596.                             $("#lecture42")["fadeOut"]();
  1597.                             variable_18["html"]("Envoyer mon message");
  1598.                             $("#forumposts")["append"]($("<div  class="
  1599.                                 gjshd " + variable_25["
  1600.                                 id "] + "
  1601.                                 " id="
  1602.                                 forum27 "><div id="
  1603.                                 forum28 "><div id="
  1604.                                 forum29 " style="
  1605.                                 background: url(" + variable_21c + ") center center;
  1606.                                 "><div id="
  1607.                                 teamshadow "><div id="
  1608.                                 teamshadowbox "></div></div><a place="
  1609.                                 HabboCity: " + variable_21b + "
  1610.                                 " href="
  1611.                                 profil / " + variable_21b + "
  1612.                                 "><div id="
  1613.                                 forum30 " style="
  1614.                                 background: url(" + variable_183 + " & headonly = 0 & direction = 2 & head_direction = 2 & size = l);
  1615.                                 "></div></a><div id="
  1616.                                 forum31 "><h2>Par " + variable_21b + "</h2></div><div id="
  1617.                                 forum32 "></div><div id="
  1618.                                 forum33 ">à l'instant</div></div><div id="
  1619.                                 forum34 "><div id="
  1620.                                 forum54 ">Tu dois actualiser la page pour voir tes badges</div></div></div><div id="
  1621.                                 forum37 "><p><div class="
  1622.                                 forummess " + variable_25["
  1623.                                 id "] + "
  1624.                                 "id="
  1625.                                 motto ">" + convertmention(variable_216) + "</div></p><div id="
  1626.                                 forum38 "></div></div><div id="
  1627.                                 forum61 "></div><div onclick="
  1628.                                 ForumEditMsg(" + variable_25["
  1629.                                     id "] + ")
  1630.                                 " id="
  1631.                                 forum62 ">Modifier le message</div><div onclick="
  1632.                                 ForumAction(" + variable_25["
  1633.                                     id "] + ", 'deletepostid')
  1634.                                 "  class="
  1635.                                 fghjk " + variable_25["
  1636.                                 id "] + "
  1637.                                 " id="
  1638.                                 forum63 ">Supprimer</div></div>")["fadeIn"](500));
  1639.                             $("#editeur")["html"]("")
  1640.                         } else {
  1641.                             if (variable_25["reponse"] == "erreur") {
  1642.                                 variable_18["html"]("Envoyer mon message");
  1643.                                 $("#lecture42")["fadeIn"]();
  1644.                                 $("#lecture44")["html"](variable_25["message"])
  1645.                             }
  1646.                         }
  1647.                     }
  1648.                 })
  1649.             }
  1650.  
  1651.             function ForumAction(variable_21a, variable_31d) {
  1652.                 if (variable_31d == "epingle") {
  1653.                     $(".forumt4ep")["html"]("...")
  1654.                 };
  1655.                 if (variable_31d == "close") {
  1656.                     $(".forumt4cl")["html"]("...")
  1657.                 };
  1658.                 if (variable_31d == "delete") {
  1659.                     $(".forumt4de")["html"]("...")
  1660.                 };
  1661.                 if (variable_31d == "deletepostid") {
  1662.                     $(".fghjk" + variable_21a)["html"]("...")
  1663.                 };
  1664.                 $["ajax"]({
  1665.                     type: "POST",
  1666.                     url: "app/actions/ForumAction.php",
  1667.                     data: {
  1668.                         threadid: variable_21a,
  1669.                         type: variable_31d
  1670.                     },
  1671.                     dataType: "json",
  1672.                     success: function(variable_25) {
  1673.                         if (variable_25["reponse"] == "epingle") {
  1674.                             if (variable_25["type"] == "add") {
  1675.                                 $(".forumt4ep")["html"]("Epingler le sujet")
  1676.                             } else {
  1677.                                 if (variable_25["type"] == "rem") {
  1678.                                     $(".forumt4ep")["html"]("Retirer le sujet")
  1679.                                 }
  1680.                             }
  1681.                         } else {
  1682.                             if (variable_25["reponse"] == "close") {
  1683.                                 if (variable_25["type"] == "cadd") {
  1684.                                     $(".forumt4cl")["html"]("Fermer le sujet")
  1685.                                 } else {
  1686.                                     if (variable_25["type"] == "crem") {
  1687.                                         $(".forumt4cl")["html"]("Ouvrir le sujet")
  1688.                                     }
  1689.                                 }
  1690.                             } else {
  1691.                                 if (variable_25["reponse"] == "delete") {
  1692.                                     window["location"]["href"] = "forum/categorie/mes/1/mes-sujets"
  1693.                                 } else {
  1694.                                     if (variable_25["reponse"] == "deletepostid") {
  1695.                                         $(".gjshd" + variable_21a)["fadeOut"]()
  1696.                                     }
  1697.                                 }
  1698.                             }
  1699.                         }
  1700.                     }
  1701.                 })
  1702.             }
  1703.  
  1704.             function ForumEditMsg(variable_322) {
  1705.                 $("html")["css"]({
  1706.                     overflow: "hidden"
  1707.                 });
  1708.                 $("#forum64")["css"]({
  1709.                     "display": "block"
  1710.                 });
  1711.                 $("#loadeditmsg")["load"]("app/load/ForumEditMessage.php?id=" + variable_322, function(variable_26, variable_27, variable_28) {
  1712.                     if (variable_27 == "success") {
  1713.                         $("#forum65")["html"]("Modifier un message")
  1714.                     }
  1715.                 })
  1716.             }
  1717.  
  1718.             function ForumEditMsgClose() {
  1719.                 $("html")["css"]({
  1720.                     overflow: "auto"
  1721.                 });
  1722.                 $("#forum64")["css"]({
  1723.                     "display": "none"
  1724.                 })
  1725.             }
  1726.  
  1727.             function ForumPostEdit(variable_322) {
  1728.                 $(".editf24")["html"]("Chargement...");
  1729.                 var variable_216 = $(".messediteur")["html"]()["replace"](/<div>/gi, "<br>")["replace"](/<\/div>/gi, "");
  1730.                 $["ajax"]({
  1731.                     type: "POST",
  1732.                     url: "app/actions/ForumEditPost.php",
  1733.                     data: {
  1734.                         id: variable_322,
  1735.                         message: variable_216
  1736.                     },
  1737.                     dataType: "json",
  1738.                     success: function(variable_25) {
  1739.                         if (variable_25["reponse"] == "ok") {
  1740.                             $(".editf24")["html"]("Envoyer mon message");
  1741.                             $(".dhsjd44")["fadeOut"]();
  1742.                             $("#forum64")["css"]({
  1743.                                 "display": "none"
  1744.                             });
  1745.                             $("html")["css"]({
  1746.                                 overflow: "auto"
  1747.                             });
  1748.                             $(".forummess" + variable_322)["html"](variable_25["message"])
  1749.                         } else {
  1750.                             if (variable_25["reponse"] == "erreur") {
  1751.                                 $(".editf24")["html"]("Envoyer mon message");
  1752.                                 $(".dhsjd44")["fadeIn"]();
  1753.                                 $(".4dsSs")["html"](variable_25["message"])
  1754.                             }
  1755.                         }
  1756.                     }
  1757.                 })
  1758.             }
  1759.  
  1760.             function addnewusjet(variable_31d, variable_322) {
  1761.                 $("#indexsubmit")["html"]("Chargement...");
  1762.                 var variable_222 = $("#topictitl")["val"]();
  1763.                 var variable_223 = $("#topiccategory")["val"]();
  1764.                 var variable_216 = $("#editeur")["html"]()["replace"](/<div>/gi, "<br>")["replace"](/<\/div>/gi, "");
  1765.                 $["ajax"]({
  1766.                     type: "POST",
  1767.                     url: "app/actions/ForumActionTopic.php",
  1768.                     data: {
  1769.                         titre: variable_222,
  1770.                         categorie: variable_223,
  1771.                         message: variable_216,
  1772.                         type: variable_31d,
  1773.                         id: variable_322
  1774.                     },
  1775.                     dataType: "json",
  1776.                     success: function(variable_25) {
  1777.                         if (variable_25["reponse"] == "ok") {
  1778.                             location["href"] = "forum/" + variable_25["id"]
  1779.                         } else {
  1780.                             if (variable_25["reponse"] == "erreur") {
  1781.                                 $("#lecture42")["fadeIn"]();
  1782.                                 $("#lecture44")["html"](variable_25["message"]);
  1783.                                 $("#indexsubmit")["html"]("Ajouter mon sujet")
  1784.                             }
  1785.                         }
  1786.                     }
  1787.                 })
  1788.             }
  1789.  
  1790.             function hsgSQGyhd444(variable_322) {
  1791.                 $("#rydHSG45s")["css"]({
  1792.                     transform: "scale(0.5)"
  1793.                 });
  1794.                 $(".hsQJwn" + variable_322)["css"]({
  1795.                     background: "rgb(192,192,192)"
  1796.                 });
  1797.                 $("#rydHSG45s")["show"]();
  1798.                 $("#strload")["show"]();
  1799.                 $("#rydHSG45s")["load"]("app/load/StoriesView.php?userid=" + variable_322, function(variable_26, variable_27, variable_28) {
  1800.                     if (variable_27 == "success") {
  1801.                         $("#strload")["fadeOut"](500);
  1802.                         $("#rydHSG45s")["css"]({
  1803.                             transform: "scale(1)",
  1804.                             transition: "0.3s"
  1805.                         })
  1806.                     }
  1807.                 })
  1808.             }
  1809.  
  1810.             function fghjk() {
  1811.                 $("#rydHSG45s")["css"]({
  1812.                     transform: "scale(0.0)",
  1813.                     transition: "0.2s"
  1814.                 });
  1815.                 $("#rydHSG45s")["fadeOut"](400);
  1816.                 var variable_226 = 0,
  1817.                     variable_227 = 0;
  1818.                 bar["stop"]();
  1819.                 bar["width"](0)
  1820.             }
  1821.  
  1822.             function showPane(variable_229) {
  1823.                 ePanes["eq"](currentIndex)["stop"](true, true)["hide"]();
  1824.                 currentIndex = variable_229;
  1825.                 if (currentIndex < 0) {
  1826.                     currentIndex = ePanes["length"] - 1
  1827.                 } else {
  1828.                     if (currentIndex >= ePanes["length"]) {
  1829.                         currentIndex = 0
  1830.                     }
  1831.                 };
  1832.                 ePanes["eq"](currentIndex)["stop"](true, true)["show"]();
  1833.                 nowstor();
  1834.                 $("#nowstor-" + (currentIndex))["css"]({
  1835.                     transform: "scale(0.8)",
  1836.                     transition: "0.3s"
  1837.                 });
  1838.                 $(".storieviewlist li")["removeClass"]("current")["eq"](currentIndex)["addClass"]("current")
  1839.             }
  1840.  
  1841.             function nowstor() {
  1842.                 $(".nowstor")["each"](function() {
  1843.                     $(this)["css"]({
  1844.                         transform: "scale(1)",
  1845.                         transition: "0.3s"
  1846.                     })
  1847.                 })
  1848.             }
  1849.  
  1850.             function run() {
  1851.                 if ($("#rydHSG45s")["is"](":visible")) {
  1852.                     bar["width"](0);
  1853.                     showPane(currentIndex + 1);
  1854.                     if (($(".vistoriecontent")["size"]() == (currentIndex + 1)) && $(".vistoriecontent")["size"]() == 1) {
  1855.                         bar["animate"]({
  1856.                             "width": "+=320"
  1857.                         }, time, fghjk)
  1858.                     } else {
  1859.                         bar["animate"]({
  1860.                             "width": "+=320"
  1861.                         }, time, run)
  1862.                     }
  1863.                 }
  1864.             }
  1865.             $("#viewstorie")["live"]("hover", function() {
  1866.                 bar["stop"]()
  1867.             });
  1868.             $("#viewstorie")["live"]("mouseleave", function stredem() {
  1869.                 if ($("#rydHSG45s")["is"](":visible")) {
  1870.                     if ($(".vistoriecontent")["size"]() == (currentIndex + 1)) {
  1871.                         bar["animate"]({
  1872.                             "width": "+=300"
  1873.                         }, time, fghjk)
  1874.                     } else {
  1875.                         var variable_22c = (300 - bar["width"]()) * 16;
  1876.                         bar["animate"]({
  1877.                             "width": "+=300"
  1878.                         }, variable_22c, run)
  1879.                     }
  1880.                 }
  1881.             });
  1882.  
  1883.             function shQH4xs() {
  1884.                 $("#rydHSG45s")["css"]({
  1885.                     transform: "scale(0.5)"
  1886.                 });
  1887.                 $("#rydHSG45s")["show"]();
  1888.                 $("#strload")["show"]();
  1889.                 $("#rydHSG45s")["load"]("app/load/StoriesGallery.php", function(variable_26, variable_27, variable_28) {
  1890.                     if (variable_27 == "success") {
  1891.                         $("#strload")["fadeOut"](500);
  1892.                         $("#rydHSG45s")["css"]({
  1893.                             transform: "scale(1)",
  1894.                             transition: "0.3s"
  1895.                         })
  1896.                     }
  1897.                 })
  1898.             }
  1899.  
  1900.             function resetslectstorie() {
  1901.                 $(".stories13")["each"](function() {
  1902.                     $(this)["css"]({
  1903.                         transform: "scale(1)",
  1904.                         transition: "0.3s"
  1905.                     })
  1906.                 })
  1907.             }
  1908.  
  1909.             function SelctStorie(variable_230, variable_322, variable_231, variable_232) {
  1910.                 resetslectstorie();
  1911.                 if ($("#mypic" + variable_322)["css"]("transform") == "matrix(1, 0, 0, 1, 0, 0)") {
  1912.                     $("#mypic" + variable_322)["css"]({
  1913.                         transform: "scale(0.8)",
  1914.                         transition: "0.3s"
  1915.                     });
  1916.                     $("#stories14")["css"]({
  1917.                         display: "block"
  1918.                     });
  1919.                     $("#stories19")["html"](variable_231 + "<p style="
  1920.                         font - size: 50 % ;
  1921.                         ">Prise il y a " + variable_232 + "</p>");
  1922.                     $("#strid")["html"](variable_322);
  1923.                     $("#stories16")["css"]({
  1924.                         background: "url(" + variable_230 + ")",
  1925.                         "background-size": "contain"
  1926.                     })
  1927.                 } else {
  1928.                     $("#mypic" + variable_322)["css"]({
  1929.                         transform: "scale(1)",
  1930.                         transition: "0.3s"
  1931.                     });
  1932.                     $("#stories14")["css"]({
  1933.                         display: "none"
  1934.                     })
  1935.                 }
  1936.             }
  1937.  
  1938.             function animatesendstr() {
  1939.                 var variable_18 = $("#stories17");
  1940.                 variable_18["animate"]({
  1941.                     right: "-10px"
  1942.                 }, 70);
  1943.                 variable_18["animate"]({
  1944.                     right: "10px"
  1945.                 }, 70);
  1946.                 variable_18["animate"]({
  1947.                     right: "-10px"
  1948.                 }, 70);
  1949.                 variable_18["animate"]({
  1950.                     right: "10px"
  1951.                 }, 70);
  1952.                 variable_18["animate"]({
  1953.                     right: "-10px"
  1954.                 }, 70);
  1955.                 variable_18["animate"]({
  1956.                     right: "10px"
  1957.                 }, 70);
  1958.                 variable_18["animate"]({
  1959.                     right: "-10px"
  1960.                 }, 70);
  1961.                 variable_18["animate"]({
  1962.                     right: "10px"
  1963.                 }, 70)
  1964.             }
  1965.  
  1966.             function StoriePost() {
  1967.                 var variable_322 = $("#strid")["html"]();
  1968.                 $("#stories20")["html"]("Envoi en cours");
  1969.                 $["ajax"]({
  1970.                     type: "POST",
  1971.                     url: "app/actions/StoryCreate.php",
  1972.                     data: {
  1973.                         id: variable_322
  1974.                     },
  1975.                     dataType: "json",
  1976.                     success: function(variable_25) {
  1977.                         if (variable_25["reponse"] == "ok") {
  1978.                             $("#stories14")["css"]({
  1979.                                 display: "none"
  1980.                             });
  1981.                             $("#stories20")["html"]("Ajouter à ma storie");
  1982.                             $("#mypic" + variable_322)["css"]({
  1983.                                 transform: "scale(1)",
  1984.                                 transition: "0.3s"
  1985.                             });
  1986.                             $("#mypic" + variable_322)["append"]("<div id="
  1987.                                 stories21 "><div id="
  1988.                                 stories22 "></div></div>");
  1989.                             $("#mypic" + variable_322)["attr"]("onclick", "")
  1990.                         } else {
  1991.                             if (variable_25["reponse"] == "error") {
  1992.                                 $("#stories20")["html"]("Ajouter à ma storie");
  1993.                                 animatesendstr()
  1994.                             }
  1995.                         }
  1996.                     }
  1997.                 })
  1998.             }
  1999.  
  2000.             function moreprofil(variable_31d, variable_236) {
  2001.                 var variable_31e = $("#profil87");
  2002.                 variable_31e["css"]({
  2003.                     transform: "scale(0.5)"
  2004.                 });
  2005.                 variable_31e["show"]();
  2006.                 $("#strload")["show"]();
  2007.                 variable_31e["load"]("app/load/ProfilViewMore.php?type=" + variable_31d + "&uid=" + variable_236, function(variable_26, variable_27, variable_28) {
  2008.                     if (variable_27 == "success") {
  2009.                         $("#strload")["fadeOut"](400);
  2010.                         variable_31e["css"]({
  2011.                             transform: "scale(1)",
  2012.                             transition: "0.3s"
  2013.                         })
  2014.                     }
  2015.                 })
  2016.             }
  2017.  
  2018.             function closemoreprofil() {
  2019.                 $("#profil87")["css"]({
  2020.                     transform: "scale(0,0)",
  2021.                     transition: "0.3s"
  2022.                 })
  2023.             }
  2024.  
  2025.             function SettingsSimpleAction(variable_322, variable_31d) {
  2026.                 $(".settwait" + variable_322)["html"](".......");
  2027.                 $["ajax"]({
  2028.                     type: "POST",
  2029.                     url: "app/actions/SettingsActionBasic.php",
  2030.                     data: {
  2031.                         type: variable_31d
  2032.                     },
  2033.                     dataType: "json",
  2034.                     success: function(variable_25) {
  2035.                         if (variable_25["reponse"] == "ok") {
  2036.                             $(".settwait" + variable_322)["html"](variable_25["text"])
  2037.                         }
  2038.                     }
  2039.                 })
  2040.             }
  2041.  
  2042.             function RandomPin() {
  2043.                 var variable_327 = document["getElementsByClassName"]("pin");
  2044.                 var variable_23a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
  2045.                 for (var variable_188 = 0; variable_188 < variable_327["length"]; variable_188++) {
  2046.                     if (variable_23a["length"] == 1) {
  2047.                         variable_327[variable_188]["firstChild"]["nodeValue"] = variable_23a[0]
  2048.                     } else {
  2049.                         var variable_23b = Math["round"](Math["random"]() * (variable_23a["length"] - 1));
  2050.                         variable_327[variable_188]["firstChild"]["nodeValue"] = variable_23a[variable_23b];
  2051.                         variable_23a["splice"](variable_23b, 1)
  2052.                     }
  2053.                 }
  2054.             }
  2055.  
  2056.             function CliquePin(variable_322) {
  2057.                 if (variable_322 == "x") {
  2058.                     var variable_23d = $("#currentpin")["val"]();
  2059.                     variable_23d = variable_23d["substring"](0, variable_23d["length"] - 1);
  2060.                     $("#currentpin")["val"](variable_23d)
  2061.                 } else {
  2062.                     var variable_23e = $("#" + variable_322)["html"]();
  2063.                     var variable_23d = $("#currentpin")["val"]();
  2064.                     if (variable_23d["length"] < 4) {
  2065.                         $("#currentpin")["val"](variable_23d + variable_23e)
  2066.                     }
  2067.                 }
  2068.             }
  2069.  
  2070.             function OpenSettingsAvances(variable_197) {
  2071.                 var variable_31e = $(".settingsload");
  2072.                 variable_31e["css"]({
  2073.                     transform: "scale(0.5)",
  2074.                     transition: "0.2s"
  2075.                 });
  2076.                 $(".settingsloader")["show"]();
  2077.                 variable_31e["load"]("app/load/SettingsAvances.php?page=" + variable_197, function(variable_26, variable_27, variable_28) {
  2078.                     if (variable_27 == "success") {
  2079.                         variable_31e["show"]();
  2080.                         $(".settingsloader")["fadeOut"](500);
  2081.                         variable_31e["css"]({
  2082.                             transform: "scale(1)",
  2083.                             transition: "0.4s"
  2084.                         });
  2085.                         if (variable_197 == "pin") {
  2086.                             setTimeout(function() {
  2087.                                 RandomPin()
  2088.                             }, 1000)
  2089.                         }
  2090.                     }
  2091.                 })
  2092.             }
  2093.  
  2094.             function CloseSettingsAvances() {
  2095.                 $(".settingsload")["css"]({
  2096.                     transform: "scale(0.0)",
  2097.                     transition: "0.2s"
  2098.                 })["fadeOut"](400)
  2099.             }
  2100.  
  2101.             function SelectFriend(variable_31d, variable_322) {
  2102.                 if (variable_31d == "friendsinfo") {
  2103.                     $("#settings29")["html"]("...<br><x style="
  2104.                         font - size: 50 % ;
  2105.                         ">Chargement...</x>");
  2106.                     $(".settings24")["each"](function() {
  2107.                         if ($(this)["attr"]("onclick") != "nofriend") {
  2108.                             $(this)["css"]({
  2109.                                 background: "rgb(200,200,200)"
  2110.                             })
  2111.                         }
  2112.                     });
  2113.                     $("#selectfriends" + variable_322)["css"]({
  2114.                         background: "white"
  2115.                     })
  2116.                 } else {
  2117.                     if (variable_31d == "deletefriend") {
  2118.                         var variable_322 = $("#friendid")["html"]();
  2119.                         $("#settings35")["html"]("...")
  2120.                     } else {
  2121.                         if (variable_31d == "deleteallfriend") {
  2122.                             $("#settings36")["html"]("...")
  2123.                         }
  2124.                     }
  2125.                 };
  2126.                 $["ajax"]({
  2127.                     type: "POST",
  2128.                     url: "app/actions/SettingsFriends.php",
  2129.                     data: {
  2130.                         type: variable_31d,
  2131.                         id: variable_322
  2132.                     },
  2133.                     dataType: "json",
  2134.                     success: function(variable_25) {
  2135.                         if (variable_31d == "friendsinfo") {
  2136.                             $("#settings29")["html"](variable_25["username"] + "<br><x style="
  2137.                                 font - size: 50 % ;
  2138.                                 ">" + variable_25["motto"] + "</x>");
  2139.                             $("#settings31")["html"](variable_25["activity_points"]);
  2140.                             $("#settings32")["html"]("Actif il y a " + variable_25["last_online"]);
  2141.                             $("#settings34")["css"]({
  2142.                                 "background": "url(" + variable_25["figure"] + ")"
  2143.                             });
  2144.                             $("#settings35")["html"]("Supprimer " + variable_25["username"] + " de mes amis");
  2145.                             $("#friendid")["html"](variable_25["id"])
  2146.                         } else {
  2147.                             if (variable_31d == "deletefriend") {
  2148.                                 if (variable_25["type"] == "error") {
  2149.                                     $("#settings35")["html"](variable_25["message"])
  2150.                                 } else {
  2151.                                     if (variable_25["type"] == "success") {
  2152.                                         $("#settings35")["html"](variable_25["message"]);
  2153.                                         $("#selectfriends" + variable_322)["css"]({
  2154.                                             background: "rgb(254,166,75)",
  2155.                                             border: "3px solid rgb(254,166,75)"
  2156.                                         });
  2157.                                         $("#selectfriends" + variable_322)["attr"]("onclick", "nofriend")
  2158.                                     }
  2159.                                 }
  2160.                             } else {
  2161.                                 if (variable_31d == "deleteallfriend") {
  2162.                                     if (variable_25["type"] == "error") {
  2163.                                         $("#settings36")["html"](variable_25["message"])
  2164.                                     } else {
  2165.                                         if (variable_25["type"] == "success") {
  2166.                                             $("#settings36")["html"](variable_25["message"]);
  2167.                                             setTimeout(function() {
  2168.                                                 OpenSettingsAvances("friends")
  2169.                                             }, 600)
  2170.                                         }
  2171.                                     }
  2172.                                 }
  2173.                             }
  2174.                         }
  2175.                     }
  2176.                 })
  2177.             }
  2178.  
  2179.             function SettingsActionPassword() {
  2180.                 $("#settings43")["html"]("Chargement...");
  2181.                 var variable_243 = $("#newpassword")["val"]();
  2182.                 var variable_244 = $("#verifpassword")["val"]();
  2183.                 var variable_245 = $("#oldpassword")["val"]();
  2184.                 $["ajax"]({
  2185.                     type: "POST",
  2186.                     url: "app/actions/SettingsActionAdvanced.php",
  2187.                     data: {
  2188.                         n: variable_243,
  2189.                         v: variable_244,
  2190.                         o: variable_245,
  2191.                         type: "password"
  2192.                     },
  2193.                     dataType: "json",
  2194.                     success: function(variable_25) {
  2195.                         if (variable_25["reponse"] == "ok") {
  2196.                             $("#settings43")["html"](variable_25["message"]);
  2197.                             $("#settings41")["html"]("Dernier changement de mot de passe à l'instant")
  2198.                         } else {
  2199.                             if (variable_25["reponse"] == "erreur") {
  2200.                                 $("#settings43")["html"](variable_25["message"])
  2201.                             }
  2202.                         }
  2203.                     }
  2204.                 })
  2205.             }
  2206.  
  2207.             function SettingsActionMail(variable_247) {
  2208.                 if (variable_247 == "one") {
  2209.                     $(".fghjs1")["html"]("Envoi en cours...");
  2210.                     var variable_315 = $("#email")["val"]();
  2211.                     $["ajax"]({
  2212.                         type: "POST",
  2213.                         url: "app/actions/SettingsActionAdvanced.php",
  2214.                         data: {
  2215.                             mail: variable_315,
  2216.                             type: "mail1"
  2217.                         },
  2218.                         dataType: "json",
  2219.                         success: function(variable_25) {
  2220.                             if (variable_25["reponse"] == "ok") {
  2221.                                 $("#settings42")["html"]("Recopier le code reçu par mail");
  2222.                                 $("#settings45")["animate"]({
  2223.                                     left: "-100%"
  2224.                                 });
  2225.                                 setTimeout(function() {
  2226.                                     $("#settings45")["hide"]();
  2227.                                     $("#settings44")["fadeIn"](300)
  2228.                                 }, 400)
  2229.                             } else {
  2230.                                 if (variable_25["reponse"] == "erreur") {
  2231.                                     $(".fghjs1")["html"](variable_25["message"])
  2232.                                 }
  2233.                             }
  2234.                         }
  2235.                     })
  2236.                 };
  2237.                 if (variable_247 == "two") {
  2238.                     $(".fghjs2")["html"]("Chargement...");
  2239.                     var variable_248 = $("#code")["val"]();
  2240.                     $["ajax"]({
  2241.                         type: "POST",
  2242.                         url: "app/actions/SettingsActionAdvanced.php",
  2243.                         data: {
  2244.                             code: variable_248,
  2245.                             type: "mail2"
  2246.                         },
  2247.                         dataType: "json",
  2248.                         success: function(variable_25) {
  2249.                             if (variable_25["reponse"] == "ok") {
  2250.                                 $(".fghjs2")["html"](variable_25["message"]);
  2251.                                 $(".nmail")["hide"]();
  2252.                                 OpenSettingsAvances("mail")
  2253.                             } else {
  2254.                                 if (variable_25["reponse"] == "erreur") {
  2255.                                     $("#settings41")["html"]("Ton adresse email a bien été confirmer");
  2256.                                     $(".fghjs2")["html"](variable_25["message"])
  2257.                                 }
  2258.                             }
  2259.                         }
  2260.                     })
  2261.                 }
  2262.             }
  2263.  
  2264.             function SettingsActionPin(variable_247, variable_24a) {
  2265.                 if (variable_24a == "supp") {
  2266.                     var variable_24b = $(".3sjU");
  2267.                     var variable_23d = "supp"
  2268.                 } else {
  2269.                     var variable_24b = $(".4sjU");
  2270.                     var variable_23d = $("#currentpin")["val"]()
  2271.                 };
  2272.                 var variable_21 = $("#password")["val"]();
  2273.                 if (variable_247 == "one") {
  2274.                     var variable_24c = $("#oldpin")["val"]()
  2275.                 } else {
  2276.                     if (variable_247 == "two") {
  2277.                         var variable_24c = $("#oldpin")["val"]()
  2278.                     }
  2279.                 };
  2280.                 $(variable_24b)["html"]("Chargement...");
  2281.                 $["ajax"]({
  2282.                     type: "POST",
  2283.                     url: "app/actions/SettingsActionAdvanced.php",
  2284.                     data: {
  2285.                         pin: variable_23d,
  2286.                         password: variable_21,
  2287.                         oldpin: variable_24c,
  2288.                         type: "pin" + variable_247
  2289.                     },
  2290.                     dataType: "json",
  2291.                     success: function(variable_25) {
  2292.                         if (variable_247 == "one") {
  2293.                             if (variable_25["reponse"] == "ok") {
  2294.                                 $(".npin")["hide"]();
  2295.                                 $("#settings43")["html"]("Succès!");
  2296.                                 setTimeout(function() {
  2297.                                     OpenSettingsAvances("pin")
  2298.                                 }, 600)
  2299.                             } else {
  2300.                                 if (variable_25["reponse"] == "erreur") {
  2301.                                     $("#settings43")["html"](variable_25["message"])
  2302.                                 }
  2303.                             }
  2304.                         } else {
  2305.                             if (variable_247 == "two") {
  2306.                                 if (variable_25["reponse"] == "ok") {
  2307.                                     $(variable_24b)["html"]("Succès!");
  2308.                                     setTimeout(function() {
  2309.                                         OpenSettingsAvances("pin")
  2310.                                     }, 600)
  2311.                                 } else {
  2312.                                     if (variable_25["reponse"] == "erreur") {
  2313.                                         $(variable_24b)["html"](variable_25["message"])
  2314.                                     }
  2315.                                 }
  2316.                             }
  2317.                         }
  2318.                     }
  2319.                 })
  2320.             }
  2321.  
  2322.             function LockPin() {
  2323.                 $("#pin6")["fadeOut"](250);
  2324.                 setTimeout(function() {
  2325.                     $("#pin7")["slideDown"](500);
  2326.                     RandomPin()
  2327.                 }, 250)
  2328.             }
  2329.  
  2330.             function MouvPinResult() {
  2331.                 var variable_24f = $("#pin9");
  2332.                 variable_24f["animate"]({
  2333.                     left: "-10px"
  2334.                 }, 70);
  2335.                 variable_24f["animate"]({
  2336.                     left: "10px"
  2337.                 }, 70);
  2338.                 variable_24f["animate"]({
  2339.                     left: "-10px"
  2340.                 }, 70);
  2341.                 variable_24f["animate"]({
  2342.                     left: "10px"
  2343.                 }, 70);
  2344.                 variable_24f["animate"]({
  2345.                     left: "-10px"
  2346.                 }, 70);
  2347.                 variable_24f["animate"]({
  2348.                     left: "10px"
  2349.                 }, 70);
  2350.                 variable_24f["animate"]({
  2351.                     left: "-10px"
  2352.                 }, 70);
  2353.                 variable_24f["animate"]({
  2354.                     left: "10px"
  2355.                 }, 70);
  2356.                 variable_24f["animate"]({
  2357.                     left: "0px"
  2358.                 }, 70)
  2359.             }
  2360.  
  2361.             function MouvPinTentative() {
  2362.                 var variable_24f = $("#pin4");
  2363.                 variable_24f["animate"]({
  2364.                     top: "-30px"
  2365.                 }, 70);
  2366.                 variable_24f["animate"]({
  2367.                     top: "0px"
  2368.                 }, 70);
  2369.                 variable_24f["animate"]({
  2370.                     top: "-20px"
  2371.                 }, 70);
  2372.                 variable_24f["animate"]({
  2373.                     top: "0px"
  2374.                 }, 70);
  2375.                 variable_24f["animate"]({
  2376.                     top: "-10px"
  2377.                 }, 70);
  2378.                 variable_24f["animate"]({
  2379.                     top: "0px"
  2380.                 }, 70)
  2381.             }
  2382.  
  2383.             function PostSecureTrue() {
  2384.                 $("#pin2")["animate"]({
  2385.                     left: "55%"
  2386.                 }, 150);
  2387.                 $("#pin2")["animate"]({
  2388.                     left: "-200%"
  2389.                 }, 400);
  2390.                 $("#pin1")["fadeOut"](500);
  2391.                 setTimeout(function() {
  2392.                     window["location"]["href"] = "profil"
  2393.                 }, 500)
  2394.             }
  2395.  
  2396.             function PostSecurePin() {
  2397.                 var variable_23d = $("#currentpin")["val"]();
  2398.                 $["ajax"]({
  2399.                     type: "POST",
  2400.                     url: "app/actions/PinCode.php",
  2401.                     data: {
  2402.                         pin: variable_23d,
  2403.                         t: "1"
  2404.                     },
  2405.                     dataType: "json",
  2406.                     success: function(variable_25) {
  2407.                         if (variable_25["reponse"] == "ok") {
  2408.                             PostSecureTrue()
  2409.                         } else {
  2410.                             if (variable_25["reponse"] == "erreur") {
  2411.                                 MouvPinTentative();
  2412.                                 $("#pinmsg u")["html"](parseInt($("#pinmsg u")["html"]()) - 1)
  2413.                             } else {
  2414.                                 if (variable_25["reponse"] == "erreur2") {
  2415.                                     window["location"]["href"] = "index"
  2416.                                 } else {
  2417.                                     if (variable_25["reponse"] == "erreur3") {
  2418.                                         MouvPinResult()
  2419.                                     }
  2420.                                 }
  2421.                             }
  2422.                         }
  2423.                     }
  2424.                 })
  2425.             }
  2426.  
  2427.             function LostPin(variable_247) {
  2428.                 if (variable_247 == "one") {
  2429.                     $("#pin11")["show"]()
  2430.                 } else {
  2431.                     if (variable_247 == "close") {
  2432.                         $("#pin11")["hide"]()
  2433.                     } else {
  2434.                         if (variable_247 == "two") {
  2435.                             $("#pin11")["hide"]();
  2436.                             $("#pin10")["html"]("Chargement...");
  2437.                             $["ajax"]({
  2438.                                 type: "POST",
  2439.                                 url: "app/actions/PinCode.php",
  2440.                                 data: {
  2441.                                     t: 2
  2442.                                 },
  2443.                                 dataType: "json",
  2444.                                 success: function(variable_25) {
  2445.                                     if (variable_25["reponse"] == "ok") {
  2446.                                         $("#pin10")["html"]("Email envoyé")
  2447.                                     } else {
  2448.                                         if (variable_25["reponse"] == "erreur") {}
  2449.                                     }
  2450.                                 }
  2451.                             })
  2452.                         }
  2453.                     }
  2454.                 }
  2455.             }
  2456.  
  2457.             function BoutiqueLoaderStart() {
  2458.                 $shop = $("#b42");
  2459.                 $("#b41")["show"]();
  2460.                 $("#b43")["hide"]();
  2461.                 $($shop)["css"]({
  2462.                     top: "40%",
  2463.                     left: "calc(50% - 32px)"
  2464.                 })["show"]()
  2465.             }
  2466.  
  2467.             function BoutiqueLoaderEnd(variable_32e) {
  2468.                 $shop = $("#b42");
  2469.                 $("#b41")["fadeOut"](500);
  2470.                 if (variable_32e != "x") {
  2471.                     $("#b43")["html"](variable_32e);
  2472.                     $("#b43")["show"]()
  2473.                 };
  2474.                 if (variable_32e == "x") {
  2475.                     $shop["hide"]()
  2476.                 };
  2477.                 $("#boutiqueload")["show"]();
  2478.                 $($shop)["css"]({
  2479.                     top: "75px",
  2480.                     left: "15%"
  2481.                 });
  2482.                 $($shop)["css"]({
  2483.                     "transform": "scale(1.0)",
  2484.                     transition: "0.4s"
  2485.                 })
  2486.             }
  2487.  
  2488.             function PorteMonnaie() {
  2489.                 var variable_18 = $("#b65");
  2490.                 variable_18["animate"]({
  2491.                     top: "10px"
  2492.                 }, 0)
  2493.             }
  2494.  
  2495.             function AnimateMonnaie(variable_258, variable_259) {
  2496.                 var variable_25a = variable_259;
  2497.                 var variable_25b = $("#" + variable_258)["text"]();
  2498.                 var variable_25c = setInterval(function() {
  2499.                     $("#" + variable_258)["text"](variable_25b);
  2500.                     if (variable_259 < variable_25b) {
  2501.                         if (variable_25b <= variable_25a) {
  2502.                             clearInterval(variable_25c);
  2503.                             $(".b" + variable_258)["clearQueue"]();
  2504.                             $(".b" + variable_258)["animate"]({
  2505.                                 top: "1px"
  2506.                             }, 200)
  2507.                         } else {
  2508.                             variable_25b--;
  2509.                             variable_25b--;
  2510.                             $(".b" + variable_258)["animate"]({
  2511.                                 top: "-4px"
  2512.                             }, 200);
  2513.                             $(".b" + variable_258)["animate"]({
  2514.                                 top: "4px"
  2515.                             }, 200)
  2516.                         }
  2517.                     } else {
  2518.                         if (variable_25b >= variable_25a) {
  2519.                             clearInterval(variable_25c);
  2520.                             $(".b" + variable_258)["clearQueue"]();
  2521.                             $(".b" + variable_258)["animate"]({
  2522.                                 top: "1px"
  2523.                             }, 200)
  2524.                         } else {
  2525.                             variable_25b++;
  2526.                             $(".b" + variable_258)["animate"]({
  2527.                                 top: "-4px"
  2528.                             }, 200);
  2529.                             $(".b" + variable_258)["animate"]({
  2530.                                 top: "4px"
  2531.                             }, 200)
  2532.                         }
  2533.                     }
  2534.                 }, 0)
  2535.             }
  2536.             var titleactuel = null;
  2537.  
  2538.             function BoutiquePage(variable_32e, variable_181) {
  2539.                 titleactuel = document["title"];
  2540.                 document["title"] = variable_32e;
  2541.                 $("html")["css"]({
  2542.                     overflow: "hidden"
  2543.                 });
  2544.                 BoutiqueLoaderStart();
  2545.                 $("#boutiqueload")["load"](variable_181, function(variable_26, variable_27, variable_28) {
  2546.                     if (variable_27 == "success") {
  2547.                         BoutiqueLoaderEnd(variable_32e);
  2548.                         if (variable_32e != "x") {
  2549.                             PorteMonnaie()
  2550.                         }
  2551.                     } else {
  2552.                         alert("Erreur, veuillez recharger la page")
  2553.                     }
  2554.                 })
  2555.             }
  2556.  
  2557.             function BoutiquePageClose() {
  2558.                 document["title"] = titleactuel;
  2559.                 $("html")["css"]({
  2560.                     overflow: "auto"
  2561.                 });
  2562.                 $("#b41")["hide"]();
  2563.                 $("#b42")["hide"]();
  2564.                 $("#b43")["hide"]();
  2565.                 $("#boutiqueload")["hide"]();
  2566.                 $("#b65")["animate"]({
  2567.                     top: "-100px"
  2568.                 }, 0)
  2569.             }
  2570.  
  2571.             function BoutiqueVIPClose() {
  2572.                 $("#b69")["fadeOut"](500)
  2573.             }
  2574.  
  2575.             function BoutiqueVIPOpen() {
  2576.                 $("#b69")["fadeIn"](250)
  2577.             }
  2578.  
  2579.             function AnimatePortfeuil() {
  2580.                 var variable_263 = $("#b65");
  2581.                 $(variable_263)["css"]({
  2582.                     background: "red"
  2583.                 });
  2584.                 setTimeout(function() {
  2585.                     $(variable_263)["css"]({
  2586.                         background: "rgba(0,0,0,0.8)"
  2587.                     })
  2588.                 }, 300);
  2589.                 setTimeout(function() {
  2590.                     $(variable_263)["css"]({
  2591.                         background: "rgb(237,28,36)"
  2592.                     })
  2593.                 }, 600);
  2594.                 setTimeout(function() {
  2595.                     $(variable_263)["css"]({
  2596.                         background: "rgba(0,0,0,0.8)"
  2597.                     })
  2598.                 }, 900);
  2599.                 setTimeout(function() {
  2600.                     $(variable_263)["css"]({
  2601.                         background: "rgb(237,28,36)"
  2602.                     })
  2603.                 }, 1200);
  2604.                 setTimeout(function() {
  2605.                     $(variable_263)["css"]({
  2606.                         background: "rgba(0,0,0,0.8)"
  2607.                     })
  2608.                 }, 1500)
  2609.             }
  2610.  
  2611.             function BoutiqueAchatBadge(variable_322) {
  2612.                 $("#b62")["css"]({
  2613.                     opacity: "0.4"
  2614.                 });
  2615.                 $["ajax"]({
  2616.                     type: "POST",
  2617.                     url: "app/actions/ShopBuyObject.php",
  2618.                     data: {
  2619.                         type: "badges",
  2620.                         id: variable_322
  2621.                     },
  2622.                     dataType: "json",
  2623.                     success: function(variable_25) {
  2624.                         if (variable_25["reponse"] == "monnaie") {
  2625.                             AnimatePortfeuil();
  2626.                             $("#b62")["css"]({
  2627.                                 opacity: "1"
  2628.                             })
  2629.                         } else {
  2630.                             if (variable_25["reponse"] == "unite") {
  2631.                                 $("#b62")["css"]({
  2632.                                     opacity: "1"
  2633.                                 });
  2634.                                 $("#b62")["css"]({
  2635.                                     background: "rgb(237,28,36)"
  2636.                                 });
  2637.                                 $("#b62")["text"]("Rupture de stock")
  2638.                             } else {
  2639.                                 if (variable_25["reponse"] == "ok") {
  2640.                                     $("#badgeHYrest")["html"]($("#badgeHYrest")["html"]() - 1);
  2641.                                     AnimateMonnaie("duckets", variable_25["jetons"]);
  2642.                                     AnimateMonnaie("diamants", variable_25["diamants"]);
  2643.                                     var variable_18 = $("#b67")["position"]();
  2644.                                     var variable_195 = variable_18["left"] - 100;
  2645.                                     $("#b67")["css"]({
  2646.                                         filter: "drop-shadow(2px 1px 0 #fff) drop-shadow(-2px 1px 0 #fff) drop-shadow(0 -2px 0 #fff)"
  2647.                                     });
  2648.                                     $(".buybdg")["each"](function() {
  2649.                                         $(this)["css"]({
  2650.                                             filter: "drop-shadow(2px 1px 0 #fff) drop-shadow(-2px 1px 0 #fff) drop-shadow(0 -2px 0 #fff)"
  2651.                                         });
  2652.                                         $(this)["animate"]({
  2653.                                             left: variable_195 - $(this)["attr"]("pos"),
  2654.                                             top: -$(window)["height"]() / 2.5 - 50
  2655.                                         }, 1000)
  2656.                                     });
  2657.                                     $(".buybdg")["each"](function() {
  2658.                                         $(this)["fadeOut"](200)
  2659.                                     });
  2660.                                     setTimeout(function() {
  2661.                                         $("#b67")["css"]({
  2662.                                             filter: ""
  2663.                                         })
  2664.                                     }, 1150);
  2665.                                     $("#b62")["html"]("Badges achetés")["attr"]("onclick", "");
  2666.                                     $("#b62")["css"]({
  2667.                                         opacity: "1"
  2668.                                     })
  2669.                                 }
  2670.                             }
  2671.                         }
  2672.                     }
  2673.                 })
  2674.             }
  2675.  
  2676.             function OpenMyBadgeBackground() {
  2677.                 $("#b179x")["show"]();
  2678.                 $("img")["each"](function() {
  2679.                     $(this)["attr"]("src", $(this)["data"]("src"))
  2680.                 })
  2681.             }
  2682.  
  2683.             function CloseMyBadgeBackground() {
  2684.                 $("#b179x")["hide"]()
  2685.             }
  2686.  
  2687.             function MyBadgeBackground(variable_268) {
  2688.                 $("#b187")["css"]({
  2689.                     background: "url(app/assets/img/badge-perso/" + variable_268 + ".png)"
  2690.                 });
  2691.                 $("#mybfond")["attr"]("value", variable_268)
  2692.             }
  2693.  
  2694.             function MyBadgeBackground(variable_268) {
  2695.                 $("#b187")["css"]({
  2696.                     background: "url(app/assets/img/badge-perso/" + variable_268 + ".png)"
  2697.                 });
  2698.                 $("#mybfond")["attr"]("value", variable_268)
  2699.             }
  2700.  
  2701.             function CloseMyBadgeDirection() {
  2702.                 $("#b179u")["hide"]()
  2703.             }
  2704.  
  2705.             function OpenMyBadgeDirection() {
  2706.                 $("#b179u")["show"]()
  2707.             }
  2708.  
  2709.             function MyBadgeDirection(variable_268, variable_230) {
  2710.                 $("#b187img")["attr"]("src", variable_230);
  2711.                 $("#mybdirection")["attr"]("value", variable_268)
  2712.             }
  2713.  
  2714.             function BuyMyBadge() {
  2715.                 $(".ghj4112")["text"]("Chargement...");
  2716.                 var variable_26d = $("#mybdescription")["val"](),
  2717.                     variable_222 = $("#mybtitre")["val"](),
  2718.                     variable_26e = $("#mybfond")["attr"]("value"),
  2719.                     variable_30 = $("#b187img")["attr"]("src"),
  2720.                     variable_26f = $("#mybdirection")["attr"]("value"),
  2721.                     variable_270 = $("#mybtoken")["val"]();
  2722.                 $["ajax"]({
  2723.                     type: "POST",
  2724.                     url: "app/actions/BuyMyBadge.php",
  2725.                     data: {
  2726.                         description: variable_26d,
  2727.                         titre: variable_222,
  2728.                         fond: variable_26e,
  2729.                         look: variable_30,
  2730.                         direction: variable_26f,
  2731.                         token: variable_270
  2732.                     },
  2733.                     dataType: "json",
  2734.                     success: function(variable_25) {
  2735.                         if (variable_25["type"] == "error") {
  2736.                             $(".ghj4112")["text"]("Acheter mon badge");
  2737.                             $("#b179h")["css"]({
  2738.                                 visibility: "visible"
  2739.                             });
  2740.                             $("#b179h")["html"](variable_25["message"]);
  2741.                             setTimeout(function() {
  2742.                                 $("#b179h")["css"]({
  2743.                                     visibility: "hidden"
  2744.                                 });
  2745.                                 $("#b179h")["html"]("")
  2746.                             }, 2500)
  2747.                         } else {
  2748.                             if (variable_25["type"] == "success") {
  2749.                                 $(".ghj4112")["text"]("Acheter mon badge");
  2750.                                 $("#b179h")["css"]({
  2751.                                     visibility: "visible"
  2752.                                 });
  2753.                                 $("#b179h")["html"](variable_25["message"]);
  2754.                                 setTimeout(function() {
  2755.                                     $("#b179h")["css"]({
  2756.                                         visibility: "hidden"
  2757.                                     });
  2758.                                     BoutiquePage("Mon inventaire", "app/load/BoutiquePage.php?page=inventaire&type=badges");
  2759.                                     AnimateMonnaie("duckets", variable_25["prix"])
  2760.                                 }, 3500)
  2761.                             }
  2762.                         }
  2763.                     }
  2764.                 })
  2765.             }
  2766.  
  2767.             function BoutiqueAchatVip() {
  2768.                 $("#b62")["css"]({
  2769.                     opacity: "0.4"
  2770.                 });
  2771.                 $["ajax"]({
  2772.                     type: "POST",
  2773.                     url: "app/actions/ShopBuyObject.php",
  2774.                     data: {
  2775.                         type: "vip"
  2776.                     },
  2777.                     dataType: "json",
  2778.                     success: function(variable_25) {
  2779.                         if (variable_25["reponse"] == "monnaie") {
  2780.                             AnimatePortfeuil();
  2781.                             $("#b62")["css"]({
  2782.                                 opacity: "1"
  2783.                             })
  2784.                         } else {
  2785.                             if (variable_25["reponse"] == "ok") {
  2786.                                 AnimateMonnaie("duckets", variable_25["jetons"]);
  2787.                                 AnimateMonnaie("diamants", variable_25["diamants"]);
  2788.                                 $("#b62")["css"]({
  2789.                                     opacity: "1"
  2790.                                 });
  2791.                                 $("#btxtvip")["text"](variable_25["date"]);
  2792.                                 $("#b59")["text"](variable_25["date"])
  2793.                             } else {
  2794.                                 if (variable_25["reponse"] == "erreur") {
  2795.                                     $("#b62")["css"]({
  2796.                                         opacity: "1"
  2797.                                     });
  2798.                                     alert("Ton grade est au dessus du VIP.")
  2799.                                 }
  2800.                             }
  2801.                         }
  2802.                     }
  2803.                 })
  2804.             }
  2805.  
  2806.             function BoutiqueAchatLoto() {
  2807.                 $("#b62")["css"]({
  2808.                     opacity: "0.4"
  2809.                 });
  2810.                 var variable_273 = $("#b83")["val"]();
  2811.                 var variable_263 = $("#b62");
  2812.                 $["ajax"]({
  2813.                     type: "POST",
  2814.                     url: "app/actions/ShopBuyObject.php",
  2815.                     data: {
  2816.                         type: "loto",
  2817.                         chiffre: variable_273
  2818.                     },
  2819.                     dataType: "json",
  2820.                     success: function(variable_25) {
  2821.                         if (variable_25["reponse"] == "monnaie") {
  2822.                             AnimatePortfeuil();
  2823.                             $("#b62")["css"]({
  2824.                                 opacity: "1"
  2825.                             })
  2826.                         } else {
  2827.                             if (variable_25["reponse"] == "ok") {
  2828.                                 AnimateMonnaie("duckets", variable_25["jetons"]);
  2829.                                 AnimateMonnaie("diamants", variable_25["diamants"]);
  2830.                                 $("#b62")["css"]({
  2831.                                     opacity: "1"
  2832.                                 });
  2833.                                 variable_263["text"]("Participation validée")["attr"]("onclick", "")
  2834.                             } else {
  2835.                                 if (variable_25["reponse"] == "erreur") {
  2836.                                     variable_263["css"]({
  2837.                                         background: "red",
  2838.                                         opacity: "1"
  2839.                                     });
  2840.                                     setTimeout(function() {
  2841.                                         variable_263["css"]({
  2842.                                             background: "rgb(48,177,24)"
  2843.                                         })
  2844.                                     }, 1150)
  2845.                                 }
  2846.                             }
  2847.                         }
  2848.                     }
  2849.                 })
  2850.             }
  2851.  
  2852.             function BoutiqueInventaireObjet(variable_31d, variable_322) {
  2853.                 BoutiqueLoaderStart();
  2854.                 $["ajax"]({
  2855.                     type: "POST",
  2856.                     url: "app/actions/ManageInventory.php",
  2857.                     data: {
  2858.                         type: variable_31d,
  2859.                         id: variable_322
  2860.                     },
  2861.                     dataType: "json",
  2862.                     success: function(variable_25) {
  2863.                         if (variable_25["reponse"] == "ok") {
  2864.                             $("#b108 > img")["attr"]("src", variable_25["image"]);
  2865.                             $("#b110")["text"](variable_25["nom"]);
  2866.                             $("#b106")["fadeIn"](500);
  2867.                             $("#b62")["attr"]("onclick", "BoutiqueInventaireDelete('" + variable_31d + "','" + variable_322 + "')");
  2868.                             BoutiqueLoaderEnd("Mon inventaire")
  2869.                         } else {
  2870.                             if (variable_25["reponse"] == "erreur") {
  2871.                                 if (variable_31d == "badges") {
  2872.                                     $(".bsnz" + variable_322)["fadeOut"](400)
  2873.                                 } else {
  2874.                                     $(".ysnz" + variable_322)["fadeOut"](400)
  2875.                                 };
  2876.                                 BoutiqueLoaderEnd("Mon inventaire")
  2877.                             }
  2878.                         }
  2879.                     }
  2880.                 })
  2881.             }
  2882.  
  2883.             function BoutiqueInventaireClose() {
  2884.                 $("#b106")["fadeOut"](500)
  2885.             }
  2886.  
  2887.             function BoutiqueInventaireDelete(variable_31d, variable_322) {
  2888.                 $("#b62")["css"]({
  2889.                     opacity: "0.4"
  2890.                 });
  2891.                 $["ajax"]({
  2892.                     type: "POST",
  2893.                     url: "app/actions/ManageInventory.php",
  2894.                     data: {
  2895.                         type: variable_31d + "delete",
  2896.                         id: variable_322
  2897.                     },
  2898.                     dataType: "json",
  2899.                     success: function(variable_25) {
  2900.                         if (variable_25["reponse"] == "ok") {
  2901.                             BoutiqueInventaireClose();
  2902.                             $("#b62")["css"]({
  2903.                                 opacity: "1"
  2904.                             });
  2905.                             if (variable_31d == "badges") {
  2906.                                 $(".bsnz" + variable_322)["fadeOut"](400)
  2907.                             } else {
  2908.                                 $(".ysnz" + variable_322)["fadeOut"](400)
  2909.                             }
  2910.                         }
  2911.                     }
  2912.                 })
  2913.             }
  2914.  
  2915.             function BoutiqueInventairePage(variable_197) {
  2916.                 $("#loader")["css"]({
  2917.                     display: "block"
  2918.                 });
  2919.                 $(".b102")["each"](function() {
  2920.                     $(this)["removeAttr"]("style")
  2921.                 });
  2922.                 $("#b103")["load"]("app/load/InventoryCategory.php?page=" + variable_197, function(variable_26, variable_27, variable_28) {
  2923.                     if (variable_27 == "success") {
  2924.                         $("#loader")["fadeOut"](400);
  2925.                         $("#hgs" + variable_197)["css"]({
  2926.                             background: "rgba(255,255,255,0.3)"
  2927.                         })
  2928.                     }
  2929.                 })
  2930.             }
  2931.             $(document)["ready"](function() {
  2932.                 $("#b101")["live"]("keyup", function() {
  2933.                     $(".b102")["each"](function() {
  2934.                         $(this)["removeAttr"]("style")
  2935.                     });
  2936.                     $("#hgsmobis")["css"]({
  2937.                         background: "rgba(255,255,255,0.3)"
  2938.                     });
  2939.                     var variable_209 = $(this)["val"]();
  2940.                     var variable_23 = "search=" + variable_209;
  2941.                     if (variable_209["length"] > 0) {
  2942.                         $["ajax"]({
  2943.                             type: "GET",
  2944.                             url: "app/load/InventoryCategory.php?page=recherche",
  2945.                             data: variable_23,
  2946.                             success: function(variable_20a) {
  2947.                                 $("#b103")["html"](variable_20a)["show"]()
  2948.                             }
  2949.                         })
  2950.                     } else {
  2951.                         $["ajax"]({
  2952.                             type: "GET",
  2953.                             url: "app/load/InventoryCategory.php?page=recherche&get=vide",
  2954.                             data: variable_23,
  2955.                             success: function(variable_20a) {
  2956.                                 $("#b103")["html"](variable_20a)["show"]()
  2957.                             }
  2958.                         })
  2959.                     }
  2960.                 })
  2961.             });
  2962.  
  2963.             function BoutiqueRareOpen(variable_279, variable_27a, variable_230) {
  2964.                 titleactuel = document["title"];
  2965.                 document["title"] = variable_27a;
  2966.                 var variable_32e = "x";
  2967.                 var variable_279 = JSON["parse"](variable_279);
  2968.                 var variable_27b = JSON["parse"]($("#JrXYzr")["html"]());
  2969.                 BoutiqueLoaderStart();
  2970.                 jQuery["ajax"]({
  2971.                     type: "GET",
  2972.                     url: "app/assets/js/chart.js",
  2973.                     dataType: "script",
  2974.                     cache: true,
  2975.                     success: function() {
  2976.                         $("#boutiqueload")["load"]("app/load/BoutiquePage.php?page=rare", function(variable_26, variable_27, variable_28) {
  2977.                             if (variable_27 == "success") {
  2978.                                 $("#b147")["html"](variable_27a);
  2979.                                 $("#b148 > img")["attr"]("src", variable_230);
  2980.                                 var variable_27c = document["getElementById"]("RareEvolution");
  2981.                                 var variable_27d = new Chart(variable_27c, {
  2982.                                     type: "line",
  2983.                                     data: {
  2984.                                         labels: variable_27b,
  2985.                                         datasets: [{
  2986.                                             label: "Valeur en rares classiques",
  2987.                                             data: variable_279,
  2988.                                             backgroundColor: ["transparent"],
  2989.                                             pointBackgroundColor: ["red"],
  2990.                                             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)"],
  2991.                                             borderColor: ["rgb(111,156,240)"],
  2992.                                             borderWidth: 7
  2993.                                         }]
  2994.                                     },
  2995.                                     options: {
  2996.                                         legend: {
  2997.                                             display: false
  2998.                                         },
  2999.                                         scales: {
  3000.                                             xAxes: [{
  3001.                                                 display: false
  3002.                                             }],
  3003.                                             yAxes: [{
  3004.                                                 display: false
  3005.                                             }]
  3006.                                         },
  3007.                                         tooltips: {
  3008.                                             backgroundColor: "#FFF",
  3009.                                             titleFontColor: "black",
  3010.                                             displayColors: false
  3011.                                         }
  3012.                                     }
  3013.                                 });
  3014.                                 BoutiqueLoaderEnd(variable_32e);
  3015.                                 if (variable_32e != "x") {
  3016.                                     PorteMonnaie()
  3017.                                 }
  3018.                             } else {
  3019.                                 alert("Erreur, veuillez recharger la page")
  3020.                             }
  3021.                         })
  3022.                     }
  3023.                 })
  3024.             }
  3025.  
  3026.             function BoutiqueBuyCoffre(variable_322) {
  3027.                 $("#b62")["css"]({
  3028.                     opacity: "0.4"
  3029.                 });
  3030.                 $["ajax"]({
  3031.                     type: "POST",
  3032.                     url: "app/actions/ShopBuyChest.php",
  3033.                     data: {
  3034.                         id: variable_322
  3035.                     },
  3036.                     dataType: "json",
  3037.                     success: function(variable_25) {
  3038.                         if (variable_25["reponse"] == "monnaie") {
  3039.                             AnimatePortfeuil();
  3040.                             $("#b62")["css"]({
  3041.                                 opacity: "1"
  3042.                             })
  3043.                         } else {
  3044.                             if (variable_25["reponse"] == "rupture") {
  3045.                                 $("#b62")["css"]({
  3046.                                     opacity: "1"
  3047.                                 });
  3048.                                 $("#b62")["css"]({
  3049.                                     background: "rgb(237,28,36)"
  3050.                                 });
  3051.                                 $("#b62")["text"]("Rupture de stock");
  3052.                                 $("#JSHnsh421")["html"]("0")
  3053.                             } else {
  3054.                                 if (variable_25["reponse"] == "ok") {
  3055.                                     if (variable_25["carresse"] != 0) {
  3056.                                         $("#b172")["append"]("  <div title="
  3057.                                             " + variable_25["
  3058.                                             carresse "] + "
  3059.                                             caresses " id="
  3060.                                             b171 "><div id="
  3061.                                             b164 " style="
  3062.                                             transform: scale(4); top: -1 px; background: url(app / assets / img / pagecoffres.png) - 55 px - 352 px;
  3063.                                             "></div></div>")
  3064.                                     };
  3065.                                     if (variable_25["winwins"] != 0) {
  3066.                                         $("#b172")["append"]("  <div title="
  3067.                                             " + variable_25["
  3068.                                             winwins "] + "
  3069.                                             winwins " id="
  3070.                                             b171 "><div id="
  3071.                                             b164 "style="
  3072.                                             transform: scale(4); top: 6 px; background: url(app / assets / img / pagecoffres.png) - 79 px - 354 px;
  3073.                                             "></div></div>")
  3074.                                     };
  3075.                                     if (variable_25["windiamants"] != 0) {
  3076.                                         $("#b172")["append"]("  <div title="
  3077.                                             " + variable_25["
  3078.                                             windiamants "] + "
  3079.                                             diamants " id="
  3080.                                             b171 "><div id="
  3081.                                             b164 "style="
  3082.                                             transform: scale(4); top: 6 px; background: url(app / assets / img / pagecoffres.png) - 55 px - 376 px;
  3083.                                             "></div></div>")
  3084.                                     };
  3085.                                     if (variable_25["respects"] != 0) {
  3086.                                         $("#b172")["append"]("  <div title="
  3087.                                             " + variable_25["
  3088.                                             respects "] + "
  3089.                                             respects " id="
  3090.                                             b171 "><div id="
  3091.                                             b164 "style="
  3092.                                             transform: scale(4); top: 0 px; background: url(app / assets / img / pagecoffres.png) - 79 px - 375 px;
  3093.                                             "></div></div>")
  3094.                                     };
  3095.                                     var variable_18 = JSON["parse"](variable_25["rares"]);
  3096.                                     if (variable_18 != "mobis0") {
  3097.                                         for (var variable_188 = 0; variable_188 < variable_18["length"]; variable_188++) {
  3098.                                             $("#b172")["append"]("<div id="
  3099.                                                 b171 "><img style="
  3100.                                                 transform: scale(3);
  3101.                                                 " src="
  3102.                                                 " + variable_18[variable_188] + "
  3103.                                                 "/></div>")
  3104.                                         }
  3105.                                     };
  3106.                                     $("#b62")["css"]({
  3107.                                         opacity: "1"
  3108.                                     });
  3109.                                     AnimateMonnaie("duckets", variable_25["jetons"]);
  3110.                                     AnimateMonnaie("diamants", variable_25["diamants"]);
  3111.                                     BoutiqueAnimateCoffre()
  3112.                                 }
  3113.                             }
  3114.                         }
  3115.                     }
  3116.                 })
  3117.             }
  3118.  
  3119.             function BoutiqueOpenCoffre() {
  3120.                 $("#b62")["hide"]();
  3121.                 var variable_263 = $("#b168");
  3122.                 variable_263["animate"]({
  3123.                     "bottom": "-18%"
  3124.                 }, 200);
  3125.                 variable_263["animate"]({
  3126.                     "bottom": "-22%"
  3127.                 }, 190);
  3128.                 variable_263["animate"]({
  3129.                     "bottom": "-18%"
  3130.                 }, 180);
  3131.                 variable_263["animate"]({
  3132.                     "bottom": "-22%"
  3133.                 }, 170);
  3134.                 variable_263["animate"]({
  3135.                     "bottom": "-18%"
  3136.                 }, 150);
  3137.                 variable_263["animate"]({
  3138.                     "bottom": "-22%"
  3139.                 }, 140);
  3140.                 variable_263["animate"]({
  3141.                     "bottom": "-18%"
  3142.                 }, 130);
  3143.                 variable_263["animate"]({
  3144.                     "bottom": "-22%"
  3145.                 }, 110);
  3146.                 variable_263["animate"]({
  3147.                     "bottom": "-18%"
  3148.                 }, 100);
  3149.                 variable_263["animate"]({
  3150.                     "bottom": "-22%"
  3151.                 }, 90);
  3152.                 variable_263["animate"]({
  3153.                     "bottom": "-18%"
  3154.                 }, 70);
  3155.                 variable_263["animate"]({
  3156.                     "bottom": "-22%"
  3157.                 }, 70);
  3158.                 variable_263["animate"]({
  3159.                     "bottom": "-18%"
  3160.                 }, 70);
  3161.                 variable_263["animate"]({
  3162.                     "bottom": "-22%"
  3163.                 }, 70);
  3164.                 variable_263["animate"]({
  3165.                     "bottom": "-18%"
  3166.                 }, 70);
  3167.                 variable_263["animate"]({
  3168.                     "bottom": "-22%"
  3169.                 }, 70);
  3170.                 setTimeout(function() {
  3171.                     $("#b172")["fadeIn"](500)
  3172.                 }, 1900)
  3173.             }
  3174.  
  3175.             function BoutiqueAnimateCoffre() {
  3176.                 $("#b170")["css"]({
  3177.                     display: "none"
  3178.                 });
  3179.                 $("#b168")["animate"]({
  3180.                     "bottom": "-20%"
  3181.                 }, 400);
  3182.                 $("#b169")["css"]({
  3183.                     "background": "transparent",
  3184.                     "filter": "drop-shadow(2px 1px 0 #fff) drop-shadow(-2px 1px 0 #fff) drop-shadow(0 -2px 0 #fff)"
  3185.                 });
  3186.                 $("#b62")["html"]("<div id="
  3187.                     b63 "></div>Ouvrir le coffre")["attr"]("onclick", "BoutiqueOpenCoffre()")
  3188.             }
  3189.  
  3190.             function SearchOpen(variable_31d) {
  3191.                 $("html")["css"]({
  3192.                     overflow: "hidden"
  3193.                 });
  3194.                 $("#search1")["fadeIn"](300);
  3195.                 $("#search3")["focus"]();
  3196.                 $("#searchtype")["html"](variable_31d)
  3197.             }
  3198.             $(document)["ready"](function() {
  3199.                 $("#search3")["live"]("keyup", function() {
  3200.                     $(".loader")["show"]();
  3201.                     var variable_209 = $(this)["val"]();
  3202.                     var variable_31d = $("#searchtype")["html"]();
  3203.                     if (variable_209["length"] > 0) {
  3204.                         $["ajax"]({
  3205.                             type: "POST",
  3206.                             url: "app/load/SearchEngine.php",
  3207.                             data: {
  3208.                                 words: variable_209,
  3209.                                 search: variable_31d
  3210.                             },
  3211.                             success: function(variable_20a) {
  3212.                                 $("#searchbloc")["html"](variable_20a);
  3213.                                 $(".loader")["hide"]()
  3214.                             }
  3215.                         })
  3216.                     } else {
  3217.                         $("#searchbloc")["html"]("");
  3218.                         $(".loader")["hide"]()
  3219.                     }
  3220.                 })
  3221.             });
  3222.  
  3223.             function SearchClose() {
  3224.                 $("html")["css"]({
  3225.                     overflow: "auto"
  3226.                 });
  3227.                 $("#search1")["fadeOut"](300);
  3228.                 $("#searchbloc")["html"]("");
  3229.                 $("#search3")["val"]("")
  3230.             }
  3231.  
  3232.             function MdpPerdu() {
  3233.                 $("#indexl6")["css"]({
  3234.                     border: "0"
  3235.                 });
  3236.                 $(".lostmail")["css"]({
  3237.                     border: "0"
  3238.                 });
  3239.                 $("#indexl5")["html"]("<div id="
  3240.                     b63 "></div>Chargement...");
  3241.                 var variable_22 = Math["floor"](Math["random"]() * (1 - 100000 + 1)) + 100000;
  3242.                 var variable_311 = $(".lostmail")["val"]();
  3243.                 var variable_248 = $("#indexl6")["val"]();
  3244.                 $["ajax"]({
  3245.                     type: "POST",
  3246.                     url: "app/actions/ForgotPassword.php",
  3247.                     data: {
  3248.                         step: 1,
  3249.                         email: variable_311,
  3250.                         code: variable_248
  3251.                     },
  3252.                     dataType: "json",
  3253.                     success: function(variable_25) {
  3254.                         if (variable_25["reponse"] == "temps") {
  3255.                             $("#indexl5")["html"]("<div id="
  3256.                                 b63 "></div>Patiente 5 minutes");
  3257.                             $("#indexl8")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22)
  3258.                         } else {
  3259.                             if (variable_25["reponse"] == "captcha") {
  3260.                                 $("#indexl5")["html"]("<div id="
  3261.                                     b63 "></div>Suivant");
  3262.                                 $("#indexl6")["css"]({
  3263.                                     border: "3px solid rgb(237,28,36)"
  3264.                                 });
  3265.                                 $("#indexl8")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22)
  3266.                             } else {
  3267.                                 if (variable_25["reponse"] == "mail") {
  3268.                                     $("#indexl5")["html"]("<div id="
  3269.                                         b63 "></div>Suivant");
  3270.                                     $(".lostmail")["css"]({
  3271.                                         border: "3px solid rgb(237,28,36)"
  3272.                                     });
  3273.                                     $("#indexl8")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22)
  3274.                                 } else {
  3275.                                     if (variable_25["reponse"] == "ok") {
  3276.                                         $("#indexl2n")["animate"]({
  3277.                                             left: "-800px"
  3278.                                         });
  3279.                                         $("#indexl9")["animate"]({
  3280.                                             left: "30px"
  3281.                                         })
  3282.                                     }
  3283.                                 }
  3284.                             }
  3285.                         }
  3286.                     }
  3287.                 })
  3288.             }
  3289.  
  3290.             function MdpPerduEnd() {
  3291.                 $(".cd15")["html"]("<div id="
  3292.                     b63 "></div>Chargement...");
  3293.                 $(".cdcode")["css"]({
  3294.                     border: ""
  3295.                 });
  3296.                 $(".cdmdp")["css"]({
  3297.                     border: ""
  3298.                 });
  3299.                 $(".cdmdp2")["css"]({
  3300.                     border: ""
  3301.                 });
  3302.                 var variable_248 = $(".cdcode")["val"]();
  3303.                 var variable_285 = $(".cdmdp")["val"]();
  3304.                 var variable_286 = $(".cdmdp2")["val"]();
  3305.                 $["ajax"]({
  3306.                     type: "POST",
  3307.                     url: "app/actions/ForgotPassword.php",
  3308.                     data: {
  3309.                         step: 2,
  3310.                         mdp: variable_285,
  3311.                         mdpconfirm: variable_286,
  3312.                         clee: variable_248
  3313.                     },
  3314.                     dataType: "json",
  3315.                     success: function(variable_25) {
  3316.                         if (variable_25["reponse"] == "code") {
  3317.                             $(".cdcode")["css"]({
  3318.                                 border: "3px solid rgb(237,28,36)"
  3319.                             });
  3320.                             $(".cd15")["html"]("<div id="
  3321.                                 b63 "></div>Terminer")
  3322.                         } else {
  3323.                             if (variable_25["reponse"] == "error") {
  3324.                                 $(".cdmdp")["css"]({
  3325.                                     border: "3px solid rgb(237,28,36)"
  3326.                                 });
  3327.                                 $(".cdmdp2")["css"]({
  3328.                                     border: "3px solid rgb(237,28,36)"
  3329.                                 });
  3330.                                 $(".cd15")["html"]("<div id="
  3331.                                     b63 "></div>Terminer")
  3332.                             } else {
  3333.                                 if (variable_25["reponse"] == "ok") {
  3334.                                     $(".cd15")["html"]("<div id="
  3335.                                         b63 "></div>Succès! Connecte-toi!")
  3336.                                 }
  3337.                             }
  3338.                         }
  3339.                     }
  3340.                 })
  3341.             }
  3342.  
  3343.             function OpenMdpPerdu() {
  3344.                 $("#indexl1")["fadeIn"](300)
  3345.             }
  3346.  
  3347.             function CloseMdpPerdu() {
  3348.                 $("#indexl1")["fadeOut"](300)
  3349.             }
  3350.  
  3351.             function FansitesDemande() {
  3352.                 $("#indexl5")["html"]("<div id="
  3353.                     b63 "></div>Chargement...");
  3354.                 var variable_22 = Math["floor"](Math["random"]() * (1 - 100000 + 1)) + 100000;
  3355.                 var variable_28a = $(".sfdbanniere")["val"]();
  3356.                 var variable_319 = $(".sfdnom")["val"]();
  3357.                 var variable_181 = $(".sfdurl")["val"]();
  3358.                 var variable_28b = $(".sfddescription")["val"]();
  3359.                 var variable_248 = $(".sfdcaptch")["val"]();
  3360.                 $["ajax"]({
  3361.                     type: "POST",
  3362.                     url: "app/actions/FansitePartnership.php",
  3363.                     data: {
  3364.                         image: variable_28a,
  3365.                         title: variable_319,
  3366.                         url: variable_181,
  3367.                         presentation: variable_28b,
  3368.                         code: variable_248
  3369.                     },
  3370.                     dataType: "json",
  3371.                     success: function(variable_25) {
  3372.                         if (variable_25["reponse"] == "captcha") {
  3373.                             $("#f39")["html"](variable_25["message"]);
  3374.                             $("#indexl8")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22);
  3375.                             $("#indexl5")["html"]("<div id="
  3376.                                 b63 "></div>Suivant")
  3377.                         };
  3378.                         if (variable_25["reponse"] == "erreur") {
  3379.                             $("#f39")["html"](variable_25["message"]);
  3380.                             $("#indexl5")["html"]("<div id="
  3381.                                 b63 "></div>Suivant")
  3382.                         };
  3383.                         if (variable_25["reponse"] == "ok") {
  3384.                             $("#f39")["html"](variable_25["message"]);
  3385.                             $("#indexl2n")["html"]("<div id="
  3386.                                 indexl3 ">Demande de promotion envoyée, elle sera affichée dans cette liste si validation.</div>");
  3387.                             setTimeout(function() {
  3388.                                 CloseFansite()
  3389.                             }, 2000)
  3390.                         }
  3391.                     }
  3392.                 })
  3393.             }
  3394.  
  3395.             function CloseFansite() {
  3396.                 $("#f37")["fadeOut"](500)
  3397.             }
  3398.  
  3399.             function OpenFansite() {
  3400.                 $("#f37")["fadeIn"](500)
  3401.             }
  3402.  
  3403.             function FansitesArticles() {
  3404.                 $("#indexsubmit")["html"]("Chargement...");
  3405.                 var variable_222 = $("#arttitre")["val"]();
  3406.                 var variable_28a = $("#artimage")["val"]();
  3407.                 var variable_181 = $("#arturl")["val"]();
  3408.                 var variable_28f = $("#editeur")["html"]();
  3409.                 var variable_28f = $("#editeur")["html"]()["replace"](/<div>/gi, "<br>")["replace"](/<\/div>/gi, "");
  3410.                 $["ajax"]({
  3411.                     type: "POST",
  3412.                     url: "app/actions/FansiteNewsAdd.php",
  3413.                     data: {
  3414.                         titre: variable_222,
  3415.                         image: variable_28a,
  3416.                         url: variable_181,
  3417.                         body: variable_28f
  3418.                     },
  3419.                     dataType: "json",
  3420.                     success: function(variable_25) {
  3421.                         if (variable_25["reponse"] == "ok") {
  3422.                             $("#lecture42")["fadeOut"]();
  3423.                             $("#lecture44")["html"](variable_25["message"]);
  3424.                             $("#indexsubmit")["html"]("Succès!")
  3425.                         } else {
  3426.                             if (variable_25["reponse"] == "erreur") {
  3427.                                 $("#lecture42")["fadeIn"]();
  3428.                                 $("#lecture44")["html"](variable_25["message"]);
  3429.                                 $("#indexsubmit")["html"]("Ajouter mon sujet")
  3430.                             }
  3431.                         }
  3432.                     }
  3433.                 })
  3434.             }
  3435.  
  3436.             function SupportStart() {
  3437.                 $("#indexsubmit")["text"]("Un instant...");
  3438.                 var variable_291 = $("#sujetTitle")["val"]();
  3439.                 var variable_292 = $("#category")["val"]();
  3440.                 var variable_293 = $("#priority")["val"]();
  3441.                 var variable_294 = $("#editeur")["html"]();
  3442.                 $["ajax"]({
  3443.                     type: "POST",
  3444.                     url: "app/actions/SupportStartTicket.php",
  3445.                     data: {
  3446.                         sujetTitle: variable_291,
  3447.                         category: variable_292,
  3448.                         priority: variable_293,
  3449.                         details: variable_294
  3450.                     },
  3451.                     dataType: "json",
  3452.                     success: function(variable_25) {
  3453.                         if (variable_25["type"] == "success") {
  3454.                             OpenStream();
  3455.                             CloseSupport()
  3456.                         } else {
  3457.                             if (variable_25["type"] == "error") {
  3458.                                 $("#indexsubmit")["text"]("Envoyer ma demande d'aide");
  3459.                                 $("#supporterreur")["fadeIn"](300);
  3460.                                 $("#supporterreur")["text"](variable_25["message"])
  3461.                             }
  3462.                         }
  3463.                     }
  3464.                 })
  3465.             }
  3466.  
  3467.             function SupportChat(variable_322) {
  3468.                 $("#waitstream")["css"]({
  3469.                     display: "block"
  3470.                 });
  3471.                 $("#getchat")["css"]({
  3472.                     display: "block"
  3473.                 });
  3474.                 $("#getchat")["load"]("app/load/HabbostreamTalk.php?type=support&userid=" + variable_322, function(variable_26, variable_27, variable_28) {
  3475.                     if (variable_27 == "success") {
  3476.                         $("#waitstream")["css"]({
  3477.                             display: "none"
  3478.                         });
  3479.                         $("#getchat")["animate"]({
  3480.                             left: "0px"
  3481.                         }, 500);
  3482.                         $("#chatbox")["animate"]({
  3483.                             scrollTop: $("#chatbox")["prop"]("scrollHeight")
  3484.                         }, 500)
  3485.                     }
  3486.                 })
  3487.             }
  3488.  
  3489.             function SupportSendMsg(variable_297, variable_323, variable_314) {
  3490.                 var run = $("#run")["html"]();
  3491.                 if (run == "run") {
  3492.                     $("#run")["html"]("stop");
  3493.                     $("#sendchat")["html"]("...");
  3494.                     var variable_216 = $("#editeurchat")["text"]();
  3495.                     $["ajax"]({
  3496.                         type: "POST",
  3497.                         url: "app/actions/SupportSendMessage.php",
  3498.                         data: {
  3499.                             message: variable_216,
  3500.                             ticketid: variable_297
  3501.                         },
  3502.                         dataType: "json",
  3503.                         success: function(variable_25) {
  3504.                             if (variable_25["type"] == "success") {
  3505.                                 $("#chatinlive" + variable_297)["append"]("<div id="
  3506.                                     stream26 "><a href="
  3507.                                     profil / " + variable_314 + "
  3508.                                     "><div id="
  3509.                                     stream27 " style="
  3510.                                     background: url(" + variable_323 + " & headonly = 0 & direction = 2 & head_direction = 2 & action = & gesture = & size = m);
  3511.                                     "></div></a><div id="
  3512.                                     stream29 "></div><div id="
  3513.                                     stream30 "><div id="
  3514.                                     stream33 "></div><div id="
  3515.                                     motto "><b>" + variable_314 + "</b> : " + variable_216 + "</div><div id="
  3516.                                     stream31 ">1 seconde</div></div><div class="
  3517.                                     chatvue " ></div></div>");
  3518.                                 $("#chatbox")["animate"]({
  3519.                                     scrollTop: $("#chatbox")["prop"]("scrollHeight")
  3520.                                 }, 500);
  3521.                                 $("#sendchat")["html"]("Envoyer");
  3522.                                 $("#editeurchat")["html"]("");
  3523.                                 $("#run")["html"]("run");
  3524.                                 $("#stream46")["text"]("Message envoyé avec succès.");
  3525.                                 $("#stream46")["css"]({
  3526.                                     "visibility": "visible"
  3527.                                 })
  3528.                             } else {
  3529.                                 if (variable_25["type"] == "error") {
  3530.                                     $("#sendchat")["html"]("Envoyer");
  3531.                                     $("#editeurchat")["css"]({
  3532.                                         border: "2px solid #ED1C24",
  3533.                                         height: "30px"
  3534.                                     });
  3535.                                     setTimeout(function() {
  3536.                                         $("#editeurchat")["css"]({
  3537.                                             border: "0",
  3538.                                             height: "34px"
  3539.                                         })
  3540.                                     }, 700);
  3541.                                     MouvSendChat();
  3542.                                     $("#run")["html"]("run")
  3543.                                 }
  3544.                             }
  3545.                         }
  3546.                     })
  3547.                 }
  3548.             }
  3549.  
  3550.             function EntrerHotel(variable_299) {
  3551.                 if (variable_299 == null) {
  3552.                     var variable_29a = "hotel"
  3553.                 } else {
  3554.                     if (variable_299 == "x") {
  3555.                         var variable_29a = "hotel"
  3556.                     } else {
  3557.                         var variable_29a = "hotel/" + variable_299
  3558.                     }
  3559.                 };
  3560.                 if (variable_299 == "x") {
  3561.                     var variable_181 = "app/load/CityHotel.php"
  3562.                 } else {
  3563.                     var variable_181 = "app/load/CityHotel.php?r=" + variable_299
  3564.                 };
  3565.                 var variable_29b = window["location"]["pathname"];
  3566.                 $("#mnc1x")["show"]();
  3567.                 $("#HotelManagerLoad")["css"]({
  3568.                     visibility: "visible"
  3569.                 });
  3570.                 $("#HotelManagerSave2")["html"](document["title"]);
  3571.                 $("#HotelManagerSave")["html"](variable_29b);
  3572.                 history["pushState"]("HabboCity: Hôtel", null, variable_29a);
  3573.                 document["title"] = "HabboCity: Hôtel";
  3574.                 var variable_18 = $("#HotelManager")["html"]();
  3575.                 $("html")["css"]({
  3576.                     "overflow": "hidden"
  3577.                 });
  3578.                 if (variable_18 == "") {
  3579.                     displayGoogleAds();
  3580.                     if (detectZoom["device"]() >= 1.20 && detectZoom["zoom"]() >= 1 && detectZoom["zoom"]() <= 1.1) {
  3581.                         $("#largeade")["css"]({
  3582.                             "left": "200px",
  3583.                             "zoom": "1.25",
  3584.                             "-ms-zoom:": "1.25",
  3585.                             "-webkit-zoom": "1.25"
  3586.                         })
  3587.                     };
  3588.                     $("#HotelManager")["load"](variable_181)
  3589.                 };
  3590.                 if (variable_18 != "" && variable_299 != null) {
  3591.                     $["ajax"]({
  3592.                         type: "POST",
  3593.                         url: "app/actions/ReturnApartment.php",
  3594.                         data: {
  3595.                             id: variable_299
  3596.                         },
  3597.                         dataType: "json",
  3598.                         success: function(variable_25) {
  3599.                             if (variable_25["type"] == "erreur") {
  3600.                                 alert("Petite érreur, veuillez ré-essayer.")
  3601.                             }
  3602.                         }
  3603.                     })
  3604.                 };
  3605.                 $("#HotelManager")["show"]()
  3606.             }
  3607.  
  3608.             function FermerHotel() {
  3609.                 $("#HotelManagerLoad")["css"]({
  3610.                     visibility: "hidden"
  3611.                 });
  3612.                 var variable_18 = $("#HotelManagerSave")["html"]();
  3613.                 var variable_24 = $("#HotelManagerSave2")["html"]();
  3614.                 document["title"] = variable_24;
  3615.                 history["pushState"](variable_24, null, variable_18);
  3616.                 $("#loader")["hide"]();
  3617.                 $("#HotelManager")["hide"]();
  3618.                 $("html")["css"]({
  3619.                     "overflow": "auto"
  3620.                 })
  3621.             }
  3622.  
  3623.             function HotelFullScreen(variable_29e) {
  3624.                 variable_29e = variable_29e || document["documentElement"];
  3625.                 if (!document["fullscreenElement"] && !document["mozFullScreenElement"] && !document["webkitFullscreenElement"] && !document["msFullscreenElement"]) {
  3626.                     if (variable_29e["requestFullscreen"]) {
  3627.                         variable_29e["requestFullscreen"]()
  3628.                     } else {
  3629.                         if (variable_29e["msRequestFullscreen"]) {
  3630.                             variable_29e["msRequestFullscreen"]()
  3631.                         } else {
  3632.                             if (variable_29e["mozRequestFullScreen"]) {
  3633.                                 variable_29e["mozRequestFullScreen"]()
  3634.                             } else {
  3635.                                 if (variable_29e["webkitRequestFullscreen"]) {
  3636.                                     variable_29e["webkitRequestFullscreen"](Element.ALLOW_KEYBOARD_INPUT)
  3637.                                 }
  3638.                             }
  3639.                         }
  3640.                     }
  3641.                 } else {
  3642.                     if (document["exitFullscreen"]) {
  3643.                         document["exitFullscreen"]()
  3644.                     } else {
  3645.                         if (document["msExitFullscreen"]) {
  3646.                             document["msExitFullscreen"]()
  3647.                         } else {
  3648.                             if (document["mozCancelFullScreen"]) {
  3649.                                 document["mozCancelFullScreen"]()
  3650.                             } else {
  3651.                                 if (document["webkitExitFullscreen"]) {
  3652.                                     document["webkitExitFullscreen"]()
  3653.                                 }
  3654.                             }
  3655.                         }
  3656.                     }
  3657.                 }
  3658.             }
  3659.  
  3660.             function PostSecurity() {
  3661.                 $("#secu11")["text"]("Chargement...");
  3662.                 var variable_300 = $(".Username")["val"](),
  3663.                     variable_301 = $(".CodeSecour")["val"](),
  3664.                     variable_302 = $(".Email")["val"](),
  3665.                     variable_303 = $(".Password")["val"](),
  3666.                     variable_304 = $(".Captcha")["val"](),
  3667.                     variable_22 = Math["floor"](Math["random"]() * (1 - 100000 + 1)) + 100000;
  3668.                 $["ajax"]({
  3669.                     type: "POST",
  3670.                     url: "app/load/GoogleSecurity.php?check&pseudo=" + variable_300,
  3671.                     data: {
  3672.                         Username: variable_300,
  3673.                         CodeSecour: variable_301,
  3674.                         Email: variable_302,
  3675.                         Password: variable_303,
  3676.                         Captcha: variable_304
  3677.                     },
  3678.                     success: function(variable_23) {
  3679.                         $("#secuload")["html"](variable_23);
  3680.                         $("#secu10 img")["attr"]("src", "app/captcha/captchacolor.php?" + variable_22)
  3681.                     }
  3682.                 })
  3683.             }
  3684.  
  3685.             function PostSecurity2() {
  3686.                 $("#secu14")["text"]("Chargement...");
  3687.                 var variable_306 = $(".secret")["val"](),
  3688.                     variable_307 = $(".Code")["val"]();
  3689.                 $["ajax"]({
  3690.                     type: "POST",
  3691.                     url: "app/load/GoogleSecurity.php?valid",
  3692.                     data: {
  3693.                         secret: variable_306,
  3694.                         Code: variable_307
  3695.                     },
  3696.                     success: function(variable_23) {
  3697.                         if (variable_23 == "connexion") {
  3698.                             window["location"] = "profil"
  3699.                         } else {
  3700.                             $("#secuload")["html"](variable_23)
  3701.                         }
  3702.                     }
  3703.                 })
  3704.             }
  3705.  
  3706.             function displayGoogleAds() {
  3707.                 $("ins")["each"](function() {
  3708.                     (adsbygoogle = window["adsbygoogle"] || [])["push"]({})
  3709.                 })
  3710.             }
  3711.             $(".play > video")["attr"]("src", "app/assets/img/habbo.mp4");
  3712.             setTimeout(function() {
  3713.                 $("#loader")["fadeOut"](200)
  3714.             })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement