-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.php
More file actions
59 lines (49 loc) · 1.26 KB
/
test.php
File metadata and controls
59 lines (49 loc) · 1.26 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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Round Color Test</title>
<style>
body {
margin: 0px;padding:0px;
}
.box {
width: 25%;
height: 200px;
float: left;
margin:0px;
padding:0px;
text-align: center;
}
.clear {
display: block;
line-height: 1px;
height: 1px;
font-size: 1px;
clear: both;
}
</style>
</head>
<body>
<?php
require "PKRoundColor.php";
$color = "#f3f3dd";
$PKR = new PKRoundColor();
$baseColors = $PKR->getBaseColors();
$roundedColor = $PKR->getRoundedColor($color);
?>
<strong>Color : </strong>
<div class='clear'></div>
<div class='box' style="background: <?=$color;?>">Your Color <br/> <?=$color;?></div>
<div class="clear"></div>
<strong>Rounded color : </strong>
<div class="clear"></div>
<div class='box' style="background: <?=$roundedColor;?>">Rounded Color <br/> <?=$roundedColor;?></div>
<div class="clear"></div>
<strong>Base colors : </strong>
<div class='clear'></div>
<?php foreach($baseColors as $baseColor): ?>
<div class='box' style="background: #<?=$baseColor;?>"><?=$baseColor;?></div>
<?php endforeach; ?>
</body>
</html>