Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • MCP Screenshot Server
  • Image Generation MCP Server
  • TxtAi Memory Vector Server
  • Bybit MCP Server
  • Joern MCP Server
Back to MCP Servers
yuexiatest

yuexiatest

Public
Sign312/CountDown

Lightweight open-source countdown tool for web pages offering flexible time-based callbacks, customizable display options, and control functions to start, pause, resume, or stop timers based on Model Context Protocol.

javascript
0 tools
May 29, 2025
Updated Jun 4, 2025

Supercharge Your AI with yuexiatest

MCP Server

Unlock the full potential of yuexiatest through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

刚写的开源小插件,在这里宣传下 ^_^ 欢迎吐槽

CountDown.js

一个用来实现简单页面倒计时的轻量级工具

2.0版本升级,加入倒计时还剩指定时间执行的回调方法

API

  • CountDown.openTimeCountBySeconds()

    根据要计时的秒数打开一个显示剩余时间的倒计时

    参数:

    Ele: 放置倒计时的元素

    CountDownSeconds: 要计时的秒数

    Sign: 用于给倒计时设置标记 (可以给多个倒计时设置同一个标记)

    Divider: 分割时分秒的分割符

    EndFunc: 倒计时结束时执行的方法

    ps:以上均为可选参数

    示例

     CountDown.openTimeCountBySeconds({
         Ele: document.getElementById('h1'),
         CountDownSeconds: 3600,
         Sign: 'flypie',
         Divider: ':',
         EndFunc: function () {
             console.log('end');
         }
     });
    
  • CountDown.openTimeCountByStartAndEndDate()

    根据计时开始和结束时间打开一个显示剩余时间的倒计时

    参数:

    Ele: 放置倒计时的元素

    StartDate: 倒计时开始时间 (date类型)

    EndDate: 倒计时结束时间 (date类型)

    Sign: 用于给倒计时设置标记 (可以给多个倒计时设置同一个标记)

    Divider: 分割时分秒的分割符

    EndFunc: 倒计时结束时执行的方法

    additionToggle: 当倒计时还剩指定时间时执行一个回调函数 (seconds:还剩多少秒时执行,callback:回调函数)

    ps:除StartDate,EndDate外均为可选参数

    示例

     CountDown.openTimeCountByStartAndEndDate({
         Ele: document.getElementById('h1'),
         StartDate: startDate,
         EndDate: endDate,
         Sign: 'flypie',
         Divider: ':',
         EndFunc: function () {
             console.log('end');
         },
         additionToggle: {
             seconds: 10,
             callback: function () {
                 alert('soon');
             }
         }
     });
     
    
  • CountDown.openTimeCountByStartAndEndDate()

    根据计时开始和结束时间打开一个显示剩余天数加时间的倒计时

    参数:

    Ele: 放置倒计时的元素

    StartDate: 倒计时开始时间 (date类型)

    EndDate: 倒计时结束时间 (date类型)

    Sign: 用于给倒计时设置标记 (可以给多个倒计时设置同一个标记)

    Divider: 分割时分秒的分割符

    DateDivider: 天数和时间之间的分隔符

    EndFunc: 倒计时结束时执行的方法

    ps:除StartDate,EndDate外均为可选参数

    示例

     CountDown.openDateAndTimeCountByStartAndEndDate({
         Ele: document.getElementById('h1'),
         StartDate: startDate,
         EndDate: endDate,
         Sign: 'flypie',
         Divider: ':',
         DateDivider: '天 ',
         EndFunc: function () {
             console.log('end');
         }
     });
     
    
  • CountDown.stopBySign()

    根据标记零时暂停一个倒计时

     CountDown.stopBySign('flypie');
    
  • CountDown.resumeBySign()

    根据标记恢复一个被零时暂停的倒计时

     CountDown.resumeBySign('flypie');
    
  • CountDown.closeBySign()

    根据标记永久性地关闭一个倒计时

     CountDown.closeBySign('flypie');
    
Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • MCP Screenshot Server
    MCP Screenshot Server

    Provides Model Context Protocol-based screenshot capture of web pages and local HTML files with conf...

    1 tools
    Added May 30, 2025
  • Image Generation MCP Server
    Image Generation MCP Server

    Enables high-quality image generation via Model Context Protocol with customizable dimensions, promp...

    1 tools
    Added May 30, 2025
  • TxtAi Memory Vector Server
    TxtAi Memory Vector Server

    Model Context Protocol server offering advanced semantic search, persistent memory management, tag-b...

    Added May 30, 2025
  • Bybit MCP Server
    Bybit MCP Server

    Provides read-only access to Bybit's cryptocurrency exchange API via Model Context Protocol, offerin...

    9 tools
    Added May 30, 2025
  • Joern MCP Server
    Joern MCP Server

    A Python-based Model Context Protocol server integrating with Joern to facilitate advanced code revi...

    Added May 30, 2025