vue倒计时效果代码

代码语言:html

所属分类:其他

代码描述:vue倒计时效果代码

代码标签:

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.11.2.css">
  <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bulma-0.3.1.css">
  
<style>
#message {
  color: #DDD;
  font-size: 50px;
  margin-bottom: 20px;
}

#timer {
  font-size: 150px;
  line-height: 1;
  margin-bottom: 40px;
}
</style>


</head>

<body >
  <!-- our template -->
<section id="app" class="hero is-warning is-fullheight is-bold">
<div class="hero-body">
<div class="container has-text-centered">
  
  <h2 class="title is-6">{{ message }}</h2>
  
    <!--  THE TIMER NUMBERS  -->
  <div id="timer">
    <span id="minutes">{{ minutes | twoDigits }}</span>
    <span id="middle">:</span>
    <span id="seconds">{{ seconds | twoDigits }}</span>
  </div>

  <!--  THE BUTTONS  -->
  <div id="buttons">
    
    <!--  START BUTTON    -->
    <button 
      id="start" 
      class="button is-dark is-large"
      @click='startTimer'
      v-show="showContinue"> 
        <i class="far fa-play-circle"></i>
    </button>
    
    <!--   PAUSE BUTTON   -->
    <button 
      id="stop" 
      class="button is-dark is-large"
      @click="pauseTimer"
      v-show='!showContinue'> 
        <i class="far fa-pause-circle"></i>
    </button.........完整代码请登录后点击上方下载按钮下载查看

网友评论0