Skip to content

Commit

Permalink
上限数変更
Browse files Browse the repository at this point in the history
  • Loading branch information
pasta04 committed Aug 13, 2023
1 parent 3a5d5bb commit 6e3b09d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** Horaroのuser名 */
const HORARO_USER = "rtaij";
const LIST_PAGENATION_NUM = 11;
/** 1ページに表示するゲーム数の上限 */
let LIST_PAGENATION_NUM = 11;

const loadImage = (src) => {
return new Promise((resolve, reject) => {
Expand All @@ -19,6 +21,10 @@ const parseParam = () => {
if (key === "eventId") {
eventId = value;
}

if (key === "max" && value.match(/\d+/)) {
LIST_PAGENATION_NUM = Number(value);
}
}
if (!eventId) {
alert("eventIdをクエリパラメータに指定してください");
Expand Down

0 comments on commit 6e3b09d

Please sign in to comment.