-
Notifications
You must be signed in to change notification settings - Fork 5
/
head.part
64 lines (58 loc) · 2.29 KB
/
head.part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=1024, user-scalable=no">
<title>Presentation</title>
<!-- Required stylesheet -->
<link rel="stylesheet" href="deck.js/core/deck.core.css">
<!-- Extension CSS files go here. Remove or add as needed. -->
<link rel="stylesheet" href="deck.js/extensions/goto/deck.goto.css">
<link rel="stylesheet" href="deck.js/extensions/menu/deck.menu.css">
<link rel="stylesheet" href="deck.js/extensions/navigation/deck.navigation.css">
<link rel="stylesheet" href="deck.js/extensions/status/deck.status.css">
<link rel="stylesheet" href="deck.js/extensions/hash/deck.hash.css">
<link rel="stylesheet" href="deck.js/extensions/scale/deck.scale.css">
<!-- Style theme. More available in /themes/style/ or create your own. -->
<link rel="stylesheet" href="deck.js/themes/style/neon.css">
<!-- Transition theme. More available in /themes/transition/ or create your own. -->
<link rel="stylesheet" href="deck.js/themes/transition/fade.css">
<style type="text/css">
code.comment { display: none; }
.timer {
position: absolute;
color: green;
z-index: 3;
top: 2%;
right: 2%;
margin-top: -16px;
vertical-align: middle;
text-align: center;
}
</style>
<!-- Required Modernizr file -->
<script src="deck.js/modernizr.custom.js"></script>
<style type="text/css">
.deck-container { font-size: 30px; } /* optimize the font display in 1366x768 computer */
</style>
<script type="text/javascript">
function start_timer(){
document.start = new Date();
document.total = prompt("输入计划时间","45");
var trigger = function(){
var min = document.total - Math.floor(((new Date().getTime()) - document.start.getTime())/60000);
document.getElementById('timer').innerHTML = '还剩'+min+'分钟';
};
trigger();
setInterval(trigger,30000);
document.getElementById('timer_trigger').style.display = "none";
}
</script>
</head>
<body class="deck-container">
<div class="timer">
<a id="timer_trigger" href="javascript:start_timer();void(0);">开始</a>
<span id="timer"></span>
</div>
<!-- Begin slides. Just make elements with a class of slide. -->