PageSourceSearch

https://hyrulesjourney.com/js/stats.js

js hyrulesjourney.com collected 2026-10-08 09:52:55 UTC 2,838 bytes, 47 lines download raw bytes

1// (c)2013 Sen Hime
2var Stats = function () {
3    function c(c) {
4        var d = 30, e = document.getElementById(c).getContext("2d"), f = 240, g = 240;
5        e.clearRect(0, 0, f, g);
6        var h = 7, i = g / 2 - 20, j = f / 2, k = g / 2;
7        e.beginPath(), e.moveTo(j + i * Math.cos(0), k + i * Math.sin(0));
8        for (var l = [], m = 1; h >= m; m += 1) {
9            var n = j + i * Math.cos(2 * m * Math.PI / h), o = k + i * Math.sin(2 * m * Math.PI / h);
10            l.push({x: n, y: o}), e.lineTo(n, o)
11        }
12        e.fillStyle = "#d94949", e.strokeStyle = "black", e.fill(), e.stroke();
13        for (var m = 0; h - 1 >= m; m += 1) {
14            e.fillStyle = "black";
15            var n = j + i * Math.cos(2 * m * Math.PI / h), o = k + i * Math.sin(2 * m * Math.PI / h);
16            n > f / 2 ? n += 10 : n -= 30, o > g / 2 ? o += 10 : o -= 10, e.fillText(b[m], n, o)
17        }
18        var p = document.getElementById("race_ins").value, q = 0, r = 0;
19        e.fillStyle = "#aaaaaa", e.strokeWidth = 1, e.strokeStyle = "#444444";
20        for (var m = 0; h - 1 >= m; m += 1) {
21            var s = b[m], t = a[p][s], u = t * i / d, n = j + u * Math.cos(2 * m * Math.PI / h),
22                o = k + u * Math.sin(2 * m * Math.PI / h);
23            0 == m ? (e.beginPath(), e.moveTo(n, o), q = n, r = o) : e.lineTo(n, o)
24        }
25        e.lineTo(q, r), e.fill(), e.stroke(), e.fillStyle = "#2f861d", e.strokeWidth = 1, e.strokeStyle = "#1c5710";
26        for (var m = 0; h - 1 >= m; m += 1) {
27            var s = b[m], v = $("input[name='" + s + "']").val();
28            isNaN(v) && (v = 0);
29            var u = v * i / d, n = j + u * Math.cos(2 * m * Math.PI / h), o = k + u * Math.sin(2 * m * Math.PI / h);
30            0 == m ? (e.beginPath(), e.moveTo(n, o), q = n, r = o) : e.lineTo(n, o)
31        }
32        e.lineTo(q, r), e.fill(), e.stroke();
33        for (var m = 0; h - 1 >= m; m += 1) e.strokeStyle = "#333333", e.beginPath(), e.moveTo(f / 2, g / 2), e.lineTo(l[m].x, l[m].y), e.stroke()
34    }
35
36    var a = {
37        Hylien: {atk: 15, def: 15, vit: 15, log: 15, pre: 15, mag: 15, agi: 15},
38        Sheikah: {atk: 15, def: 15, vit: 30, log: 20, pre: 30, mag: 15, agi: 30},
39        Stalfos: {atk: 30, def: 20, vit: 15, log: 15, pre: 10, mag: 15, agi: 15},
40        Kokiri: {atk: 10, def: 10, vit: 30, log: 20, pre: 15, mag: 25, agi: 30},
41        Gerudo: {atk: 20, def: 15, vit: 25, log: 15, pre: 20, mag: 10, agi: 25},
42        Goron: {atk: 30, def: 30, vit: 10, log: 10, pre: 15, mag: 10, agi: 25},
43        Zora: {atk: 15, def: 15, vit: 25, log: 20, pre: 20, mag: 20, agi: 25},
44        "F\xe9e": {atk: 10, def: 10, vit: 25, log: 25, pre: 20, mag: 30, agi: 30}
45    }, b = ["atk", "def", "log", "pre", "agi", "vit", "mag"];
46    return {drawStats: c, max: a, stats: b}
47}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.