Repository navigation
Expand file tree
/
Copy pathbanner.html
More file actions
110 lines (95 loc) · 3.21 KB
/
Copy pathbanner.html
File metadata and controls
110 lines (95 loc) · 3.21 KB
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
108
109
110
<!DOCTYPE html>
<html>
<!--
____ ____ ____________ ______ _
/ __ )/ __ )/ ____/ ____/ / ____/___ _____ ___ (_)___ ____ _
/ __ / __ / /_ / / / / __/ __ `/ __ `__ \/ / __ \/ __ `/
/ /_/ / /_/ / __/ / /___ / /_/ / /_/ / / / / / / / / / / /_/ /
/_____/_____/_/ \____/ \____/\__,_/_/ /_/ /_/_/_/ /_/\__, /
/____/
-->
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-129128356-2"></script>
<!--
<link rel = "stylesheet"
type = "text/css"
href = "stylesheet.css" />
-->
<style>
:root{
overflow-y: hidden;
}
/*Make scrollbar less hideous*/
::-webkit-scrollbar{
width:3pt;
}
::-webkit-scrollbar-track{
background: black;
}
::-webkit-scrollbar-thumb{
background: red;
border-radius: 10px;
}
a {
color: white;
}
a:visited {
color: white;
}
a:hover {
color: white;
}
a:active {
color: white;
}
.banner {
color: black;
background-color: red;
}
#closeBanner {
right: 0px;
position: absolute;
display: inline-block;
cursor: pointer;
height: 20px;
width: 20px;
margin: -15px 0 0 0;
font-weight: bold;
top: 20px;
}
</style>
</head>
<body>
<div id="banner" class="banner" style="border:2px dotted orange; width:100%; "><div id="closeBanner">x</div><center>Check Out Our <a href="https://www.youtube.com/channel/UC4Eg3V26uXxWY-M639mGDrQ" target="_blank" >Youtube Channel!</a></center></div>
</body>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-129128356-2');
</script>
<script>
function checkBanner() {
var textColor = sessionStorage.getItem('textColor');
var backgroundColor = sessionStorage.getItem('bgColor');
document.getElementById('banner').style.color = textColor;
document.getElementById('banner').style.backgroundColor = backgroundColor;
}
checkBanner();
</script>
<script>
var closed = sessionStorage.getItem('bannerclosed');
if(closed == 'here'){
$('#banner').hide();
}else{
$('#banner').show();
}
function close(){
sessionStorage.setItem('bannerclosed', 'here');
$("#banner").hide();
}
document.getElementById("closeBanner").addEventListener("click", close, false);
</script>
</html>