-
Notifications
You must be signed in to change notification settings - Fork 71
/
screenshot.html
66 lines (64 loc) · 1.36 KB
/
screenshot.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
<html>
<head>
<script src="js/screenshot.js"></script>
<style type="text/css">
body{
padding: 0;
background-image: repeating-linear-gradient(to bottom right, #3f95ea 0%, #52d3aa 100%);
}
h2{
margin: 0;
background-color: #52d3aa;
}
img{
max-height: 90%;
max-width:90%;
display: block;
margin: 0 auto;
}
#download{
float: right;
}
#download button {
position: relative;
background-color: #3f95ea;
border: none;
color: #FFFFFF;
font-size: 16px;
font-weight: 600;
padding: 12px;
width: 200px;
text-align: center;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
text-decoration: none;
overflow: hidden;
cursor: pointer;
}
#download button:after {
content: "";
background: #90EE90;
display: block;
position: absolute;
padding-top: 300%;
padding-left: 350%;
margin-left: -20px!important;
margin-top: -120%;
opacity: 0;
transition: all 0.8s
}
#download button:active:after {
padding: 0;
margin: 0;
opacity: 1;
transition: 0s
}
</style>
</head>
<body>
<h1>Here's your Screenshot
<a id="download" href="" download="screenshot.jpg"><button>Download Screenshot</button></a>
</h1>
<img id="target" src="" align="middle">
</body>
</html>