PageSourceSearch

https://chinhodado.github.io/persona5_calculator/src/SettingController.js

js chinhodado.github.io collected 2026-10-03 08:47:34 UTC 1,020 bytes, 25 lines download raw bytes

1///<reference path="DataUtil.ts"/>
2var SettingController = /** @class */ (function () {
3    function SettingController($scope) {
4        $scope.dlcPersona = dlcPersona;
5        $scope.save = this.save;
6        for (var i = 0; i < dlcPersona.length; i++) {
7            dlcPersona[i][2] = (isDlcPersonaOwned(dlcPersona[i][0]) ? "y" : "n");
8        }
9    }
10    SettingController.prototype.save = function () {
11        var config = {};
12        var checkboxes = document.getElementsByClassName("dlcCheckbox");
13        for (var i = 0; i < checkboxes.length; i++) {
14            var checkbox = checkboxes[i];
15            var name1 = checkbox.name.split(",")[0];
16            var name2 = checkbox.name.split(",")[1];
17            var value = checkbox.checked;
18            config[name1] = value;
19            config[name2] = value;
20            localStorage["dlcPersona"] = JSON.stringify(config);
21        }
22        window.location.href = GLOBAL_IS_ROYAL ? "indexRoyal.html" : "index.html";
23    };
24    return SettingController;
25}());

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.