From c7b40f97114a56b1176f11fc5e714648072eae85 Mon Sep 17 00:00:00 2001 From: revengeday Date: Fri, 15 Nov 2024 21:57:26 +0000 Subject: [PATCH] Cyber Slider Feature added --- js/create-circle.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/js/create-circle.js b/js/create-circle.js index 0a66825..ae89151 100644 --- a/js/create-circle.js +++ b/js/create-circle.js @@ -199,10 +199,10 @@ class ApiClient { constructor(instance) { this._instance = instance; // How many objects to max consider per type - this._CNT_NOTES = 70; - this._CNT_RENOTES = 50; - this._CNT_REPLIES = 100; - this._CNT_FAVS = 100; + this._CNT_NOTES = 250; + this._CNT_RENOTES = 250; + this._CNT_REPLIES = 250; + this._CNT_FAVS = 250; } /** @@ -949,6 +949,12 @@ async function circleMain() { break; } + const sliderValue = getSliderValue(); + client._CNT_NOTES = sliderValue; + client._CNT_RENOTES = sliderValue; + client._CNT_REPLIES = sliderValue; + client._CNT_FAVS = sliderValue; + progress.innerText = "Fetching your user..."; const { response: user, error: userError } = await client.getUserIdFromHandle(selfUser); @@ -974,6 +980,7 @@ async function circleMain() { return; } + /** * @type {Map} */