gm13.min.js 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. 
  2. function rtalt() {
  3. 0 == window.orientation && (-1 == navigator.userAgent.indexOf("Android") || 425 > window.innerHeight && 2 > window.devicePixelRatio) && setTimeout(scrollTo, 100, 0, 1)
  4. }
  5. function lcir(e, t) {
  6. for (var n = 0, r = 0, i = 0, n = 0; 12 > n; n++) r = ldri + n, 12 < r && (r -= 12), ctx.beginPath(), ctx.lineWidth = 2, ctx.strokeStyle = "#FFFFFF", ctx.globalAlpha = r / 10, ctx.moveTo(e + 8 * Math.cos(i), t + 8 * Math.sin(i)), ctx.lineTo(e + 15 * Math.cos(i), t + 15 * Math.sin(i)), ctx.stroke(), i += .5225;
  7. ctx.globalAlpha = 1;
  8. ldri--;
  9. 1 > ldri && (ldri = 12)
  10. }
  11. function lding() {
  12. ctx.clearRect(0, 0, 320, 416);
  13. lcir(160, 190)
  14. }
  15. function srt(e, t) {
  16. e.sort(function(e, n) {
  17. return e[t] - n[t]
  18. });
  19. return e
  20. }
  21. function scs(e, t) {
  22. var n = String(e),
  23. r = n.length - 1,
  24. i;
  25. switch (t) {
  26. case 1:
  27. for (scx = 0; scx <= r; scx++) i = Math.floor(n.substr(scx, 1)), spt(13 + i, scrux[6 - r + scx], 11);
  28. 2 < r && (spt(23, 88, 12), 5 < r && spt(23, 63, 12));
  29. break;
  30. case 2:
  31. for (scx = 0; scx <= r; scx++) i = Math.floor(n.substr(scx, 1)), spt(35 + i, scrux2[5 - r + scx], 247);
  32. 2 < r && spt(79, 153, 247)
  33. }
  34. }
  35. function scs2(e, t) {
  36. var n;
  37. n = ("0000000000" + t).substr(-9, 9);
  38. var r = Array(10);
  39. for (scx = 1; scx <= e; scx++) {
  40. var i = Math.floor(n.substr(10 - scx - 1, 1));
  41. r[scx - 1] = i
  42. }
  43. return {
  44. n0: r[0],
  45. n1: r[1],
  46. n2: r[2],
  47. n3: r[3],
  48. n4: r[4],
  49. n5: r[5]
  50. }
  51. }
  52. function spt(e, t, n) {
  53. var r = iw[e],
  54. i = ih[e];
  55. ctx.drawImage(img2, ix[e], iy[e], r, i, t, n, r, i)
  56. }
  57. function spt2(e, t, n) {
  58. var r = iw[e],
  59. i = ih[e];
  60. ctx.drawImage(img4, ix[e], iy[e], r, i, t, n, r, i)
  61. }
  62. function ralp2() {
  63. lps += .5;
  64. 1 < lps && (lps--, lp())
  65. }
  66. function ralp() {
  67. ralp2();
  68. window.requestAnimationFrame(ralp)
  69. }
  70. function gst() {
  71. s = 0;
  72. clearInterval(ldlp);
  73. 6 == dvid ? (window.requestAnimationFrame = function() {
  74. return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e, t) {
  75. window.setTimeout(e, 1e3 / 60)
  76. }
  77. }(), ralp()) : lp();
  78. setTimeout(scrollTo, 200, 0, 1);
  79. ctx.drawImage(img3, 0, 0, 320, 416, 0, 0, 320, 416)
  80. }
  81. function gsts2() {
  82. gldt2++;
  83. 2 < gldt2 && setTimeout("gst();", 120)
  84. }
  85. function gsts() {
  86. gldt++
  87. }
  88. function asd2() {}
  89. function asd() {
  90. var e = 1 / window.devicePixelRatio,
  91. t = document.createElement("meta"),
  92. e = Math.floor(screen.width / 3.2) / 100 * e;
  93. t.setAttribute("name", "viewport");
  94. t.setAttribute("content", "width = device-width, initial-scale = " + e + ", minimum-scale = " + e + ", maximum-scale = " + e);
  95. document.getElementsByTagName("head")[0].appendChild(t)
  96. }
  97. function init() {
  98. var e = navigator.userAgent;
  99. dvid = 0; - 1 < e.indexOf("Android") && (dvid = 1, 3 <= Math.floor(navigator.userAgent.substr(e.indexOf("Android") + 8, 1)) && -1 == e.indexOf("GT-I9100") && (dvid = 2)); - 1 < e.indexOf("iPad") && (dvid = 3); - 1 < e.indexOf("iPhone") && (dvid = 4, 2 <= window.devicePixelRatio && (dvid = 5, 568 == window.screen.height && (dvid = 5)));
  100. wdpr = 1;
  101. 1 != dvid ? (chf2.innerHTML = '<canvas id="gcvs" width="320" height="416"></canvas>', canvas = document.getElementById("gcvs"), ctx = canvas.getContext("2d")) : (e = 1 / window.devicePixelRatio, chf2.innerHTML = '<canvas id="gcvs" width="' + (320 * e | 0) + '" height="' + (416 * e | 0) + '"></canvas>', canvas = document.getElementById("gcvs"), ctx = canvas.getContext("2d"), ctx.scale(e, e), document.getElementById("chf2").style.webkitTransformOrigin = "0 0", document.getElementById("chf2").style.webkitTransform = "scale(" + 1 / e + "," + 1 / e + ")");
  102. canvas.addEventListener("touchstart", tev1, !1);
  103. canvas.addEventListener("touchend", tev2, !1);
  104. canvas.addEventListener("touchmove", tev3, !1);
  105. canvas.addEventListener("mousedown", tev11, !1);
  106. canvas.addEventListener("mouseup", tev22, !1);
  107. canvas.addEventListener("mousemove", tev33, !1);
  108. flt = mt = tm = lps = gldt2 = gldt = 0;
  109. img1 = new Image;
  110. img1.src = "pks/bg_long.jpg";
  111. img1.onload = function() {
  112. gsts2()
  113. };
  114. img2 = new Image; - 1 < document.URL.indexOf("spielaffe") ? img2.src = "pks/cs_pks_sa.png" : -1 == document.URL.indexOf("page") ? img2.src = "pks/cs_pks.png" : img2.src = "pks/cs_pks_nolink.png";
  115. img2.onload = function() {
  116. gsts()
  117. };
  118. img3 = new Image; - 1 < document.URL.indexOf("spielaffe") ? img3.src = "pks/title_pks_sa.jpg" : -1 == document.URL.indexOf("page") ? img3.src = "pks/title_pks.jpg" : img3.src = "pks/title_pks_nolink.jpg";
  119. img3.onload = function() {
  120. gsts2()
  121. };
  122. img4 = new Image;
  123. img4.src = "pks/cs_pks_fst.png";
  124. img4.onload = function() {
  125. gsts2()
  126. };
  127. document.body.buttonMode = null;
  128. document.body.backgroundColor = null;
  129. dm_vp = 25;
  130. dm_x = 160;
  131. dm_y = 50;
  132. by = bx = 0;
  133. bz = -20.5;
  134. upy3 = upx3 = upy2 = upx2 = upy = upx = us = uy2 = uy1 = ux = pwy = uty = utx = pwy3 = pwx3 = pwx2 = pwx = bdc = cvy = cvx = sz = sy = sx = 0;
  135. bp_f = {};
  136. pac = bp_fi = 0;
  137. em = 7;
  138. ex = [0, 10, 20, -43, -33, -23, -13];
  139. ez = [0, -6, -6, -11, -11, -11, -11];
  140. ep = Array(em);
  141. epa = [0, 48, 98];
  142. epx = Array(em);
  143. epy = Array(em);
  144. esx = Array(em);
  145. esy = Array(em);
  146. edpx = Array(em);
  147. edpy = Array(em);
  148. edsx = Array(em);
  149. edsy = Array(em);
  150. gtx = 0;
  151. gta = 1;
  152. bout = 0;
  153. eps();
  154. gp_f = {};
  155. gp_fi = 0;
  156. ix = [0, 484, 484, 320, 314, 352, 390, 330, 428, 444, 460, 428, 314, 314, 321, 328, 335, 342, 349, 356, 363, 370, 377, 384, 434, 0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 484, 484, 524, 300, 0, 0, 314, 376, 0, 285, 416, 285, 285, 0, 300, 517, 131, 386, 386];
  157. iy = [0, 48, 81, 398, 26, 26, 26, 0, 72, 72, 72, 88, 126, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 126, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 30, 39, 26, 0, 120, 22, 26, 359, 167, 291, 291, 274, 167, 0, 26, 48, 0, 291, 321];
  158. iw = [0, 33, 95, 56, 38, 38, 38, 188, 16, 16, 16, 30, 120, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 4, 78, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 40, 48, 12, 30, 30, 240, 151, 140, 285, 101, 47, 200, 320, 131, 14, 33, 113, 30, 57];
  159. ih = [0, 33, 23, 46, 100, 100, 100, 24, 16, 16, 16, 30, 22, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 37, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 9, 9, 13, 26, 47, 231, 140, 163, 192, 47, 26, 17, 107, 22, 51, 33, 22, 30, 16];
  160. fani1 = [103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 208, 0, 321, 218, 1, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 209, .04, 321, 218, 1, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 211, .16, 321, 218, 1, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 214, .36, 107, 208, 0, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, .64, 107, 209, .04, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 224, 1, 107, 211, .16, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 220, 1, 107, 214, .36, 137, 208, 0, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 216, 1, 107, 218, .64, 137, 209, .04, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 224, 1, 137, 211, .16, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 220, 1, 137, 214, .36, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 216, 1, 137, 218, .64, 213, 208, 0, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 224, 1, 213, 209, .04, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 220, 1, 213, 211, .16, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 216, 1, 213, 214, .36, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, .64, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 224, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 220, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 216, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 77, 218, 1, 107, 218, 1, 137, 218, 1, 213, 218, 1, 103, 204, .86, 203, 204, .86, 188, 231, .86, 77, 218, .86, 107, 218, .86, 137, 218, .86, 213, 218, .86, 103, 204, .71, 203, 204, .71, 188, 231, .71, 77, 218, .71, 107, 218, .71, 137, 218, .71, 213, 218, .71, 103, 204, .57, 203, 204, .57, 188, 231, .57, 77, 218, .57, 107, 218, .57, 137, 218, .57, 213, 218, .57, 103, 204, .43, 203, 204, .43, 188, 231, .43, 77, 218, .43, 107, 218, .43, 137, 218, .43, 213, 218, .43, 103, 204, .29, 203, 204, .29, 188, 231, .29, 77, 218, .29, 107, 218, .29, 137, 218, .29, 213, 218, .29, 103, 204, .14, 203, 204, .14, 188, 231, .14, 77, 218, .14, 107, 218, .14, 137, 218, .14, 213, 218, .14, 103, 204, 0, 203, 204, 0, 188, 231, 0, 77, 218, 0, 107, 218, 0, 137, 218, 0, 213, 218, 0];
  161. fanf1 = [65, 66, 67, 35, 35, 35, 55];
  162. fafi1 = -1;
  163. fani2 = [103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 208, 0, 321, 218, 1, 321, 218, 1, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 209, .04, 321, 218, 1, 321, 218, 1, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 211, .16, 321, 218, 1, 321, 218, 1, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 214, .36, 91, 208, 0, 321, 218, 1, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, .64, 91, 209, .04, 321, 218, 1, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 224, 1, 91, 211, .16, 321, 218, 1, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 220, 1, 91, 214, .36, 121, 208, 0, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 216, 1, 91, 218, .64, 121, 209, .04, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 224, 1, 121, 211, .16, 321, 218, 1, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 220, 1, 121, 214, .36, 151, 208, 0, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 216, 1, 121, 218, .64, 151, 209, .04, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 224, 1, 151, 211, .16, 321, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 220, 1, 151, 214, .36, 213, 208, 0, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 216, 1, 151, 218, .64, 213, 209, .04, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 224, 1, 213, 211, .16, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 220, 1, 213, 214, .36, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 216, 1, 213, 218, .64, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 224, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 220, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 216, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, 1, 203, 204, 1, 188, 231, 1, 61, 218, 1, 91, 218, 1, 121, 218, 1, 151, 218, 1, 213, 218, 1, 103, 204, .86, 203, 204, .86, 188, 231, .86, 61, 218, .86, 91, 218, .86, 121, 218, .86, 151, 218, .86, 213, 218, .86, 103, 204, .71, 203, 204, .71, 188, 231, .71, 61, 218, .71, 91, 218, .71, 121, 218, .71, 151, 218, .71, 213, 218, .71, 103, 204, .57, 203, 204, .57, 188, 231, .57, 61, 218, .57, 91, 218, .57, 121, 218, .57, 151, 218, .57, 213, 218, .57, 103, 204, .43, 203, 204, .43, 188, 231, .43, 61, 218, .43, 91, 218, .43, 121, 218, .43, 151, 218, .43, 213, 218, .43, 103, 204, .29, 203, 204, .29, 188, 231, .29, 61, 218, .29, 91, 218, .29, 121, 218, .29, 151, 218, .29, 213, 218, .29, 103, 204, .14, 203, 204, .14, 188, 231, .14, 61, 218, .14, 91, 218, .14, 121, 218, .14, 151, 218, .14, 213, 218, .14, 103, 204, 0, 203, 204, 0, 188, 231, 0, 61, 218, 0, 91, 218, 0, 121, 218, 0, 151, 218, 0, 213, 218, 0];
  164. fanf2 = [65, 66, 67, 35, 35, 35, 35, 55];
  165. fafi2 = -1;
  166. fani3 = [110, 208, 0, 110, 209, .04, 110, 211, .16, 110, 214, .36, 110, 218, .64, 110, 224, 1, 110, 219, 1, 110, 213, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, 1, 110, 218, .86, 110, 218, .71, 110, 218, .57, 110, 218, .43, 110, 218, .29, 110, 218, .14, 110, 218, 0];
  167. fafi3 = -1;
  168. scra = scr = cmba = cmb = anwt = 0;
  169. scrux = [56, 67, 74, 81, 92, 99, 106];
  170. scrux2 = [63, 93, 123, 167, 197, 227];
  171. spy = 0;
  172. spsy = 1;
  173. sty = stx = -1;
  174. blkbd = 0;
  175. blkbs = .04;
  176. blkbd2 = gban2 = gban1 = 0;
  177. blkbs2 = .04;
  178. cmbf1 = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 68];
  179. cmbf2 = [55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 69];
  180. kbn = 10;
  181. askb = bic = bi = 0;
  182. for (var e = document.URL.substr(0, 19), t = n = 0, n = 7; 19 > n; n++) t += e.charCodeAt(n);
  183. askb = 1;
  184. rsta = 0;
  185. s = -1
  186. }
  187. function eps() {
  188. var e;
  189. ex[1] = (70 * Math.random() | 0) - 50;
  190. ez[1] = -6;
  191. ex[em - 1] = (70 * Math.random() | 0) - 70;
  192. var t = Math.floor(Math.random() * em - 2) + 1;
  193. for (e = 1; e < em; e++) {
  194. switch (Math.floor(3 * Math.random())) {
  195. case 0:
  196. ep[e] = 0;
  197. break;
  198. case 1:
  199. ep[e] = 1;
  200. break;
  201. case 2:
  202. ep[e] = 2
  203. }
  204. 1 < e && (t > e ? (ex[e] = ex[1] + 11 * (e - 1), ez[e] = -6) : (ex[e] = ex[em - 1] + 11 * e, ez[e] = -12));
  205. var n = chg3d(ex[e], 0, ez[e]),
  206. r = 38 * n.sc / 290,
  207. i = 100 * n.sc / 290;
  208. epx[e] = dm_x + n.x - r / 2;
  209. epy[e] = dm_y + n.y - i + n.sc / 1.8;
  210. esx[e] = r;
  211. esy[e] = i;
  212. edsx[e] = 188 * n.sc / 290;
  213. edsy[e] = 24 * n.sc / 290;
  214. edpx[e] = dm_x + n.x - edsx[e] / 2;
  215. edpy[e] = dm_y + n.y - edsy[e] + n.sc / 1.7
  216. }
  217. gtx = Math.floor(93 * Math.random()) + 85;
  218. gta = 1;
  219. bout = 0
  220. }
  221. function srt(e, t) {
  222. e.sort(function(e, n) {
  223. return e[t] - n[t]
  224. });
  225. return e
  226. }
  227. function chg3d(e, t, n) {
  228. n = dm_vp / (dm_vp + n);
  229. return {
  230. x: e * n,
  231. y: t * n,
  232. sc: 100 * n,
  233. sdy: 1.5 * n
  234. }
  235. }
  236. function tev11(e) {
  237. mousePos = {
  238. x: e.layerX,
  239. y: e.layerY
  240. };
  241. Press(mousePos);
  242. e.preventDefault()
  243. }
  244. function tev1(e) {
  245. mousePos = {
  246. x: e.touches[0].pageX,
  247. y: e.touches[0].pageY
  248. };
  249. Press(mousePos);
  250. e.preventDefault()
  251. }
  252. function Press(e) {
  253. var t = e.x / wdpr;
  254. e = e.y / wdpr;
  255. switch (s) {
  256. case 0:
  257. var n = 175,
  258. r = 365;
  259. t > n && e > r ? Play68.goHome() : 60 > t && 350 < e ? setTimeout(function() {
  260. Play68.shareFriend()
  261. }, 500) : (blkbd = 0, s = 3);
  262. break;
  263. case 1:
  264. 50 < spy && 1 == gldt && (blkbs = blkbd = 0, s = 2);
  265. break;
  266. case 2:
  267. stx = t;
  268. sty = e;
  269. 0 < rsta && 50 > stx && 60 > sty && 0 == blkbd && (blkbd = .05);
  270. break;
  271. case 4:
  272. var n = 175,
  273. r = 365;
  274. t > n && e > r ? Play68.goHome() : 35 < t && 310 < e && t < 155 && e < 365 ? s = 5 : 168 < t && 310 < e && t < 286 && e < 365 && setTimeout(function() {
  275. Play68.shareFriend()
  276. }, 500)
  277. }
  278. }
  279. function tev22(e) {
  280. mousePos = {
  281. x: e.layerX,
  282. y: e.layerY
  283. };
  284. Release(mousePos)
  285. }
  286. function tev2(e) {
  287. mousePos = {
  288. x: e.changedTouches[0].pageX,
  289. y: e.changedTouches[0].pageY
  290. };
  291. Release(mousePos);
  292. e.preventDefault()
  293. }
  294. function Release(e) {
  295. if (2 == s && -1 != stx && 0 == sz && -20.5 == bz && 1 == askb && 0 == blkbd) {
  296. sx = pwx / -30;
  297. sy = -4;
  298. cvy = .35;
  299. sz = pwy / 100;
  300. e = Math.sqrt(Math.pow(pwx3, 2) + Math.pow(pwy3, 2));
  301. if (130 > Math.abs(pwx) && 15 < e) sx = pwx / -20, sz = pwy / 100, 1.6 > sz && (sz = 1.6), sy = -3, cvy = .18;
  302. else {
  303. sx = pwx / -20;
  304. var t = 0;
  305. 14 < Math.abs(sx) && (t = .3);
  306. 12 < sx && (sx = 11.8 + t); - 12 > sx && (sx = -11.8 - t);
  307. sz = .75;
  308. cvx = 0 > sx ? 1.5 : -1.5;
  309. cvy = .6;
  310. sy = -8;
  311. 10 > Math.abs(sx) && (cvx = .145 * -sx, cvy = .4 + .05 * e, .9 > cvy && (cvy = .5, sy = -6), .62 < cvy && (cvy = .62))
  312. }
  313. 12.5 < sx && (sx = 12.5); - 12.5 > sx && (sx = -12.5);
  314. pac = bdc = 0;
  315. upx = 138;
  316. upy = 336;
  317. upx2 = 138;
  318. upy2 = 336;
  319. kbn--
  320. }
  321. }
  322. function tev33(e) {
  323. mousePos = {
  324. x: e.layerX,
  325. y: e.layerY
  326. };
  327. Move(mousePos)
  328. }
  329. function tev3(e) {
  330. mousePos = {
  331. x: e.touches[0].pageX,
  332. y: e.touches[0].pageY
  333. };
  334. Move(mousePos);
  335. event.preventDefault()
  336. }
  337. function Move(e) {
  338. if (2 == s) {
  339. var t = e.x / wdpr;
  340. e = e.y / wdpr;
  341. pwx = stx - t;
  342. pwy = sty - e;
  343. pwx2 = utx - t;
  344. pwx3 = utx - t;
  345. pwx3 = uty - e;
  346. utx = t;
  347. uty = e
  348. }
  349. }
  350. function brst() {
  351. 0 < kbn ? (upx = 138, upy = 336, upx2 = 138, upy2 = 336, by = bx = 0, bz = -20.5, sz = sy = sx = 0, bp_f = {}, bp_fi = 0, fafi3 = fafi2 = fafi1 = -1, 1 == kbn && (blkbs = 50 < 100 * Math.random() ? 1 : -1), anwt = 0, eps(), bic = bi = 0) : blkbd = .05;
  352. 0 == rsta && 10 != cmb + kbn && 0 < kbn && (rsta = 70)
  353. }
  354. function lp() {
  355. 6 != dvid && setTimeout("lp()", 1e3 / 30);
  356. var e, t;
  357. switch (s) {
  358. case 4:
  359. case 5:
  360. ctx.drawImage(img1, 0, 200, 320, 416, 0, 0, 320, 416);
  361. spt2(70, 40, 0);
  362. spt(76, 60, 225);
  363. spt(77, 0, 309);
  364. scs(scr, 2);
  365. 4 == s && 0 < blkbd ? (ctx.globalAlpha = blkbd, blkbd -= .1, .1 > blkbd && (blkbd = 0), ctx.fillStyle = "#000", ctx.fillRect(0, 0, 320, 416), ctx.globalAlpha = 1) : 5 == s && (ctx.globalAlpha = blkbd, blkbd += .05, 1 <= blkbd && (blkbd = 1, cmba = cmb = scra = scr = 0, kbn = 10, brst(), blkbs = blkbd = 0, gp_f = {}, rsta = gp_fi = 0, s = 2), ctx.fillStyle = "#000", ctx.fillRect(0, 0, 320, 416), ctx.globalAlpha = 1);
  366. break;
  367. case 3:
  368. ctx.drawImage(img3, 0, 0, 320, 416, 0, 0, 320, 416);
  369. ctx.globalAlpha = blkbd;
  370. blkbd += .1;.8 < blkbd && (s = blkbd = 1);
  371. ctx.fillStyle = "#000";
  372. ctx.fillRect(0, 0, 320, 416);
  373. break;
  374. case 0:
  375. ctx.drawImage(img3, 0, 0, 320, 416, 0, 0, 320, 416);
  376. blkbd += blkbs;
  377. 1 <= blkbd && (blkbd = 1, blkbs = -.04);
  378. 0 >= blkbd && (blkbd = 0, blkbs = .04);
  379. ctx.globalAlpha = blkbd; - 1 < document.URL.indexOf("spielaffe") ? spt2(78, 158, 234) : spt2(78, 160, 262);
  380. ctx.globalAlpha = 1;
  381. break;
  382. case 1:
  383. ctx.drawImage(img1, 0, spy, 320, 416, 0, 0, 320, 416);
  384. 0 < blkbd ? (ctx.globalAlpha = blkbd, blkbd -= .05, ctx.fillStyle = "#000", ctx.fillRect(0, 0, 320, 416), ctx.globalAlpha = 1) : (ctx.globalAlpha = gban1, spt2(70, 40, 0), ctx.globalAlpha = 1, gban1 += .05, 1 < gban1 && (gban1 = 1), 50 < spy && 1 == gldt ? (ctx.globalAlpha = gban2, spt(73, 18, 224), ctx.globalAlpha = 1, gban2 += .025, 1 < gban2 && (gban2 = 1)) : (blkbd2 += blkbs2, 1 <= blkbd2 && (blkbd2 = 1, blkbs2 = -.04), 0 >= blkbd2 && (blkbd2 = 0, blkbs2 = .04), ctx.globalAlpha = blkbd2, spt2(81, 104, 291), ctx.globalAlpha = 1));
  385. spy += spsy;
  386. 199 < spy && (spy = 200, spsy = 0);
  387. break;
  388. case 2:
  389. ctx.drawImage(img1, 0, 200, 320, 416, 0, 0, 320, 416);
  390. var n = [];
  391. n.push([0, -bz, -1]);
  392. for (e = 1; e < em; e++) n.push([e, -ez[e], -1]);
  393. var r = chg3d(bx, by, bz),
  394. i = 34 * r.sc / 500;
  395. t = i / 2;
  396. var o = r.x,
  397. u = r.y + r.sc / 1.8,
  398. a = r.sdy + r.sc / 1.7;
  399. upx = o - 22 + dm_x | 0;
  400. upy = u - 22 + dm_y | 0;
  401. ux = o - t + dm_x | 0;
  402. uxd = o - 95 * r.sc / 500 * .5 + dm_x | 0;
  403. uy1 = (a - t + dm_y | 0) - 2;
  404. us = i;
  405. uy2 = u - t + dm_y | 0;
  406. if (0 != sz && (pac++, 0 < pac)) {
  407. o = upx - upx2;
  408. u = upy - upy2;
  409. t = Math.atan2(u, o);
  410. o = Math.sqrt(Math.pow(o, 2) + Math.pow(u, 2));
  411. if (2 > o) bp_f["c" + bp_fi] = {
  412. x: upx + 3,
  413. y: upy,
  414. z: bz,
  415. a: 1,
  416. l: 1
  417. }, bp_fi++;
  418. else
  419. for (e = 0; e < Math.floor(o / 2); e++) u = upx2 + 2 * Math.cos(t) * e, a = upy2 + 2 * Math.sin(t) * e, bp_f["c" + bp_fi] = {
  420. x: u + 3,
  421. y: a,
  422. z: bz,
  423. a: 1,
  424. l: 1
  425. }, bp_fi++;
  426. pac = 0
  427. }
  428. upx3 = upx2;
  429. upy3 = upy2;
  430. upx2 = upx;
  431. upy2 = upy;
  432. if (0 < bp_fi) {
  433. o = em;
  434. u = .04;
  435. 0 > sz && (u = .08);
  436. if (1 == dvid || 4 == dvid) u = .1;
  437. a = 0;
  438. for (e in bp_f) t = bp_f[e], 1 == t.l && (n.push([o, -t.z, t]), o++, a++, t.a -= u, 0 > t.a && (t.a = 0, t.l = 0, delete t));
  439. 0 == a && (bp_f = {}, bp_fi = 0)
  440. }
  441. srt(n, 1);
  442. for (o = 1; o < em; o++) ctx.drawImage(img2, 330, 0, 188, 24, edpx[o], edpy[o], edsx[o], edsy[o]);
  443. if (0 < gp_fi) {
  444. e = 0;
  445. for (var f in gp_f) t = gp_f[f], 1 == t.l && (t.x += t.sx, t.y += t.sy, t.sy += t.syy, t.a -= .04, o = t.a, 1 < o && (o = 1), 100 < t.y && (t.a -= .1), 0 > t.a ? (t.a = 0, t.l = 0, delete gp_f[f]) : (ctx.globalCompositeOperation = "lighter", ctx.globalAlpha = o, ctx.drawImage(img2, 16 * t.f + 428, 72, 16, 16, t.x, t.y, 24, 24), ctx.globalCompositeOperation = "source-over"), e++);
  446. 0 == e && (gp_f = {}, gp_fi = 0);
  447. ctx.globalAlpha = 1
  448. }
  449. 0 != blkbs && (gtx += blkbs, 105 > gtx && (gtx = 105, blkbs = 1), 158 < gtx && (gtx = 158, blkbs = -1));
  450. ctx.globalAlpha = gta;
  451. ctx.drawImage(img2, 428, 26, 56, 46, gtx, 63, 56, 46);
  452. ctx.globalAlpha = 1;
  453. 1 != gta && 0 != gta && (gta -= .05, 0 > gta && (gta = 0));
  454. for (o = 0; o < n.length; o++) e = n[o][0], 0 == e ? (ctx.globalAlpha = 0 != sz ? .3 : 1, ctx.drawImage(img2, 484, 81, 95, 23, uxd, uy1, 95 * r.sc / 500, 23 * r.sc / 500), ctx.globalAlpha = 1, 0 == bi ? ctx.drawImage(img2, 484, 48, 34, 34, ux, uy2, i, i) : ctx.drawImage(img2, 517, 48, 34, 34, ux, uy2, i, i), bic += Math.abs(sx), 5 < bic && (bic = 0, bi = 0 == bi ? 1 : 0)) : e < em ? (ctx.drawImage(img2, 314 + 38 * ep[e], 26, 38, 100, epx[e], epy[e], esx[e], esy[e]), bz > ez[e] - 1 && bz < ez[e] + sz && 8 > Math.abs(bx - ex[e]) && -39 < by && 0 < sz && (sx = (bx - (ex[e] + esx[e] / 2)) / 3, sz = -.4, sy = by / 5, cvy = .6, bz = ez[e] - 1, fafi3 = 0, anwt = 1)) : (t = n[o][2], ctx.globalCompositeOperation = "lighter", ctx.globalAlpha = t.a, ctx.drawImage(img2, 428, 88, 30, 30, t.x + 5, t.y + 5, 30, 30), ctx.globalAlpha = 1, ctx.globalCompositeOperation = "source-over");
  455. if (0 != sz && (bx += sx, sx += cvx, cvx *= .89, by += sy, sy += cvy, 0 < by && (by = 0, sy = .6 * -sy, cvx = 0, bdc++, 3 < bdc && (bdc = cvx = sz = sy = sx = 0, setTimeout("brst()", 900))), bz += sz, 0 < bz))
  456. if (-72 < bx && 73 > bx)
  457. if (-62 > bx || 60 < bx) sx = 0 < bx ? (bx - 64.5) / 1 : (bx + 67) / 1, sz = -.9, sy = by / 2 - 5, cvy = .6, bz = 0, bout = 1, fafi3 = cmba = cmb = 0, anwt = 1;
  458. else {
  459. cmb++;
  460. r = 0;
  461. n = Math.abs(upx3 + 22 - (gtx + 27));
  462. e = 0;
  463. if (22 > n) {
  464. gta = .9;
  465. for (e = 0; 40 > e; e++) {
  466. r = Math.floor(3 * Math.random()) + 1;
  467. switch (r) {
  468. case 1:
  469. gp_f["c" + gp_fi] = {
  470. x: upx3 + 4,
  471. y: upy3 + 6,
  472. sx: .2 * sx + 0 * cvx + (6 * Math.random() - 3) * r,
  473. sy: -1 - 3 * Math.random(),
  474. syy: .05 + .12 * r - .1 * Math.random(),
  475. f: r - 1,
  476. a: 1 + 1 * Math.random(),
  477. l: 1
  478. };
  479. break;
  480. case 2:
  481. gp_f["c" + gp_fi] = {
  482. x: upx3 + 4,
  483. y: upy3 + 6,
  484. sx: .2 * sx + 0 * cvx + (6 * Math.random() - 3) * r * .8,
  485. sy: -2 - 6 * Math.random(),
  486. syy: .05 + .12 * r - .1 * Math.random(),
  487. f: r - 1,
  488. a: 1 + 1.4 * Math.random(),
  489. l: 1
  490. };
  491. break;
  492. case 3:
  493. gp_f["c" + gp_fi] = {
  494. x: upx3 + 4,
  495. y: upy3 + 6,
  496. sx: .2 * sx + 0 * cvx + (6 * Math.random() - 3) * r * .75,
  497. sy: -2 - 6 * Math.random(),
  498. syy: .05 + .08 * r - .1 * Math.random(),
  499. f: r - 1,
  500. a: 1 + 2 * Math.random(),
  501. l: 1
  502. }
  503. }
  504. gp_fi++
  505. }
  506. e = 50 * (100 - n);
  507. n = scs2(4, e);
  508. fanf2[3] = 45 + n.n3;
  509. fanf2[4] = 45 + n.n2;
  510. fanf2[5] = 45 + n.n1;
  511. fanf2[6] = 45 + n.n0;
  512. fanf2[7] = cmbf2[cmb];
  513. fafi2 = 0;
  514. anwt = 28;
  515. scr += e * cmb;
  516. blkbs = 0
  517. } else e = 14 * (100 - n), 999 < e && (e = 999), 100 > e && (e = 100), n = scs2(3, e), fanf1[3] = 35 + n.n2, fanf1[4] = 35 + n.n1, fanf1[5] = 35 + n.n0, fanf1[6] = cmbf2[cmb], fafi1 = 0, anwt = 1, scr += e * cmb;
  518. bdc = cvx = sz = sy = sx = bz = 0
  519. } else fafi3 = cmba = cmb = bdc = cvx = sz = sy = sx = bz = 0, anwt = 1; - 21 > bz && (sz = sy = sx = 0, bx = 320, cmba = cmb = bdc = cvx = 0);
  520. spt(24, 242, 6);
  521. spt(cmbf1[cmba], 246, 13);
  522. spt(12, 0, 6);
  523. scs(scra, 1);
  524. spt(75, 4, 386);
  525. 10 == kbn ? (spt(14, 31, 392), spt(13, 38, 392)) : spt(13 + kbn, 35, 392);
  526. 0 < rsta && (spt(82, 0, 32), 1 < rsta && (e = 1, 60 < rsta && (e = 1 - (rsta - 60) / 10), 10 > rsta && (e = rsta / 10), ctx.globalAlpha = e, spt(83, 30, 36), ctx.globalAlpha = 1, rsta--));
  527. if (0 < anwt)
  528. if (1 < anwt) anwt--;
  529. else if (cmba = cmb, scra = scr, -1 != fafi2) {
  530. for (e = 0; 8 > e; e++) n = 24 * fafi2 + 3 * e, ctx.globalAlpha = fani2[n + 2], spt(fanf2[e], fani2[n], fani2[n + 1]);
  531. fafi2++;
  532. 41 < fafi2 && (fafi2 = -1, anwt = 0, brst());
  533. ctx.globalAlpha = 1
  534. } else if (-1 != fafi1) {
  535. for (e = 0; 7 > e; e++) n = 21 * fafi1 + 3 * e, ctx.globalAlpha = fani1[n + 2], spt(fanf1[e], fani1[n], fani1[n + 1]);
  536. fafi1++;
  537. 41 < fafi1 && (fafi1 = -1, anwt = 0, brst());
  538. ctx.globalAlpha = 1
  539. } else -1 != fafi3 && (n = 3 * fafi3, ctx.globalAlpha = fani3[n + 2], spt(74, fani3[n], fani3[n + 1]), fafi3++, 41 < fafi3 && (fafi3 = -1, anwt = 0, brst()), ctx.globalAlpha = 1);
  540. 0 < blkbd && (ctx.globalAlpha = blkbd, blkbd += .1, 1 <= blkbd && (blkbd = 1, s = 4, updateShare(scr), Play68.setRankingScoreDesc(scr)), ctx.fillStyle = "#000", ctx.fillRect(0, 0, 320, 416), ctx.globalAlpha = 1)
  541. }
  542. }
  543. (function() {
  544. onload = function () {
  545. ldri = 0;
  546. ldlp = setInterval("lding();", 50);
  547. init();
  548. };
  549. })();