This repository was archived by the owner on Dec 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTEST.php
More file actions
135 lines (116 loc) · 6.9 KB
/
Copy pathTEST.php
File metadata and controls
135 lines (116 loc) · 6.9 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html>
<head>
<title>Test page 12</title>
<meta name="robots" content="noindex">
<link rel="stylesheet" type="text/css" href="css/sageata.css">
<link rel="stylesheet" type="text/css" href="css/twistycontent.css">
<link rel="stylesheet" type="text/css" href="css/slidingcontent.css">
<link href="https://allfont.net/allfont.css?fonts=agency-fb-bold" rel="stylesheet" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="javascript/tween-functions.js"></script>
<script src="javascript/transitions.js"></script>
<script src="javascript/customscrollbar.js"></script>
<style>
body {
background: #999;
margin: 0;
padding: 0;
}
.wrapper {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background: #FFF;
border: 1px #000 solid;
margin: 20px auto;
padding: 15px;
position: relative;
width: 600px;
height: 600px;
}
#container {
width: 580px;
height: 580px;
padding: 5px;
margin-top: 5px;
overflow: auto;
position: relative;
}
.ssb_down {
background-color: #33ccaa;
bottom:0;
cursor:pointer;
position:absolute;
right:0;
border-radius: 10px;
}
.ssb_sb {
background-color: #22aabb;
cursor:pointer;
position:absolute;
right:0;
border-radius: 10px;
}
.ssb_sb_down {
background-color: #1199aa;
}
.ssb_sb_over {
background-color: #33bbcc;
}
.ssb_st {
background-color: #dedede;
cursor:pointer;
height:100%;
position:absolute;
right:0;
top:0;
border-radius: 10px;
}
.ssb_up {
background-color: #33ccaa;
cursor:pointer;
position:absolute;
right:0;
top:0;
border-radius: 10px;
}
.parent {
font-family:verdana;
height:100%;
padding:10px;
position:relative;
}
</style>
<script>
window.onload = function() {
ssb.scrollbar('container', ['ssb_st', 'ssb_sb', 'ssb_up', 'ssb_down'], ['', 'ssb_sb_over', '', ''], ['', 'ssb_sb_down', '', '']);
}
</script>
</head>
<body>
<div class="wrapper">
<div id="container">
<div class="parent">
<h2>Custom scrollbar</h2>
Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text. Many different text.
</div>
</div>
</div>
<div style="background-color: red; width:50vw; height:50vh; position:relative" id="pilk">
<input type="text" id="value">
<button id="conv" onclick="slidey();">Convert</button>
</div>
<script>
function convert(){
var dim = new Dimension(document.getElementById('value'), document.getElementById('value').value, "vw");
alert(dim.to("percent"));
}
function slidey(){
var elem = document.getElementById('pilk');
var toX = new Dimension(elem, 50, "percent");
var toY = new Dimension(elem, 0, "percent");
transitions.slide2D(toX, toY, tweenFunctions.easeInQuad, 1000);
}
</script>
</body>
</html>