materialize+jquery实现秒表计数器报警效果代码

代码语言:html

所属分类:布局界面

代码描述:materialize+jquery实现秒表计数器报警效果代码

代码标签: 计数器 报警 效果

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="stopwatch-mode">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes" />
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/materialize.css">
<style>
    *{
	margin:0;
	padding:0;
	box-sizing: border-box;
}

html{
	text-align: center;
	background-color:#EFEFEF;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.wrapper{
	width: 100vw;
	min-height: 100vh;
	overflow-x: hidden;
}

.app {
	width: 300vw;

	transition: 0.4s;
}


/*-----------------------
	Modes
-----------------------*/

.switch-clocks{
	transition:background-color 0.4s;
	cursor:default;
}

html.alarm-mode .switch-clocks{
	background-color: #E91E63;
}

html.alarm-mode header .alarm,
html.stopwatch-mode header .stopwatch,
html.timer-mode header .timer{
	background-color:rgba(255,255,255,0.2);
	pointer-events:none;
}

html.stopwatch-mode .switch-clocks{
	background-color: #607D8B;
}

html.timer-mode .switch-clocks{
	background-color: #00ACC1;
}

.switch-clocks a{
	color:#fff;
	padding:30px 40px;
}

html.alarm-mode .app{
	transform: translate(0);
	-webkit-transform: translate(0);
}

html.stopwatch-mode .app{
	transform: translate(-100vw);
	-webkit-transform: translate(-100vw);
}

html.timer-mode .app{
	transform: translate(-200vw);
	-webkit-transform: translate(-200vw);
}


/*-----------------------
	Clocks General
-----------------------*/

.container {
	position: relative;
	float: left;
	width: 100vw;
	max-width: none; /* canceling auto styles from materialize.css */
}

form{
	width: 100%;
	height: 85px;
	padding: 10px;
	margin: 50px auto;
	color: #0277BD;
	border-radius: 2px;

}

form a{
	margin: 0 5px;
}

.control{
	display: inline-block;
	width: 130px;
	vertical-align: middle;
}

.input-field{
	display: inline-block;
	padding-right: 20px;
}

.checkbox{
	padding-left: 20px;
}

.clock {
	position: relative;
	height: 300px;
	max-width: 700px;
	width: 100%;
	display: block;
	margin: 50px auto;

	font-size: 150px;
	color: #0277BD;
	text-align: center;
	line-height: 300px;

	background-color: #fff;
	border-radius: 2px;

	transition: all 0.4s ease-in, box-shadow 0.2s;
}

.clock.inactive {
	color: #9e9e9e;
}

.clock .overlay{
	position: absolute;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
}

.switch label .lever:after{
	background-color:#fff;
}


/*-----------------------
	Alarm
-----------------------*/

#alarm-input {
	font-size: 26px;
	text-align: center;
}

.switch{
	display: inline-block;
}

/*-----------------------
	Stopwatch
-----------------------*/

.stopwatch form {
	padding: 0;
	line-height: 85px;
}

.stopwatch form a{
	color: #0059bc;
	margin-bottom: 0;
}

.stopwatch .clock{
	max-width: 800px;
}

/*-----------------------
	Timer
-----------------------*/

#timer-input {
	font-size: 32px;
	text-align: center;
}

.timer-btn{
	font-size: 32px;
	cursor: pointer;
}

/*-----------------------
	Modals
-----------------------*/

.modal{
	width: 40%;
}

.dismiss-alarm-sounds{
	float:none !important;
}

/*-----------------------
	Responsiven.........完整代码请登录后点击上方下载按钮下载查看

网友评论0