-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path刺激哈哈哈A$AP Rockey精彩视频.html
107 lines (91 loc) · 3.84 KB
/
刺激哈哈哈A$AP Rockey精彩视频.html
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>你个老司机</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="static/css/bootstrap.min.css" media="screen" />
<link rel="stylesheet" type="text/css" href="static/css/style.css" />
<link rel="stylesheet" type="text/css" href="dist/css/barrager.css">
<link rel="stylesheet" type="text/css" href="static/pick-a-color/css/pick-a-color-1.2.3.min.css">
<link type="text/css" rel="stylesheet" href="static/syntaxhighlighter/styles/shCoreDefault.css"/>
</head>
<body style="background-color: black">
<div class="container-fluid">
<!--<div>-->
<!--<div class="progress">-->
<!--<div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 60%">-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
</div>
<!-- JS dependencies -->
<script type="text/javascript" src="static/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="static/js/tinycolor-0.9.15.min.js"></script>
<script type="text/javascript" src="dist/js/jquery.barrager.min.js"></script>
<script type="text/javascript" src="static/syntaxhighlighter/scripts/shCore.js"></script>
<script type="text/javascript" src="static/syntaxhighlighter/scripts/shBrushJScript.js"></script>
<script type="text/javascript" src="static/syntaxhighlighter/scripts/shBrushPhp.js"></script>
<script type="text/javascript" src="static/pick-a-color/js/pick-a-color-1.2.3.min.js"></script>
<script type="text/javascript">
var array = [
"我爱你", "真的很爱你", "爱你", "比心", "阿德错了", "要让宝贝开开心心"
]
$(function() {
// var progress = 0;
// $(".progress").attr("style", "margin: " + (window.screen.height/2 -20) + "px 20px")
//
// var interval_count = 0;
//
// var interval_func = null;
//
// do_progress();
//
// function do_progress() {
// if (interval_count < 10) {
// interval_count = interval_count + 1;
// interval_func = setInterval(do_progress, 200);
// $(".progress-bar").attr("aria-valuenow", interval_count*10);
// }else {
// clearInterval(interval_func)
// }
// }
$(".pick-a-color").pickAColor();
var item= {
'img':'static/img/heisenberg.png',
'href':'http://www.baidu.com',
'info':"爱你"
};
$('.container-fluid').barrager(item);
//每条弹幕发送间隔
var looper_time=30;
//是否首次执行
var run_once=true;
do_barager();
function do_barager(){
if(run_once ){
run_once=false;
setInterval(do_barager,looper_time);
}
var idx = Math.floor(Math.random()*array.length);
// var img = "static/img/0" + (Math.floor(Math.random()*6) + 1) + ".gif";
var img = "static/img/08.jpeg";
var bottom = Math.floor(Math.random()*window.screen.height)
if (bottom < 40) {
bottom = 40;
}else if (bottom > window.screen.height - 40) {
bottom = window.screen.height - 40;
}
var item= {
'img':img,
'href':'http://www.baidu.com',
'info':array[idx],
'bottom': bottom
};
$('.container-fluid').barrager(item);
}
});
</script>
</body>