Formatting
This commit is contained in:
parent
24703953db
commit
9a60a69f22
1 changed files with 15 additions and 2 deletions
|
@ -8,6 +8,7 @@ $hitRepo = $em->getRepository(\EmotionHero\Models\Hit::class);
|
||||||
/* @var $currentHit \EmotionHero\Models\Hit */
|
/* @var $currentHit \EmotionHero\Models\Hit */
|
||||||
$currentHit = $hitRepo->findOneBy(['hasImage'=>true], ['id'=>'DESC']);
|
$currentHit = $hitRepo->findOneBy(['hasImage'=>true], ['id'=>'DESC']);
|
||||||
|
|
||||||
|
|
||||||
$printEmoBlocks = function($emotion, $feature, $steps = 6) use($em) {
|
$printEmoBlocks = function($emotion, $feature, $steps = 6) use($em) {
|
||||||
foreach(range(0, 100, 100/($steps-1)) as $i) {
|
foreach(range(0, 100, 100/($steps-1)) as $i) {
|
||||||
/* @var $hitRepo EmotionHero\Models\HitRepository */
|
/* @var $hitRepo EmotionHero\Models\HitRepository */
|
||||||
|
@ -72,6 +73,7 @@ position:relative;
|
||||||
|
|
||||||
.emo{
|
.emo{
|
||||||
text-align:center;
|
text-align:center;
|
||||||
|
float:left;
|
||||||
|
|
||||||
}
|
}
|
||||||
.brows{
|
.brows{
|
||||||
|
@ -82,14 +84,26 @@ position:relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.current{
|
.current{
|
||||||
width:200px;
|
/*width:200px;*/
|
||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
.current img{
|
||||||
|
width:200px;
|
||||||
|
}
|
||||||
|
dd, dt{
|
||||||
|
float:left;width:80px;
|
||||||
}
|
}
|
||||||
img.curImg{
|
img.curImg{
|
||||||
position:absolute;
|
position:absolute;
|
||||||
left:0;
|
left:0;
|
||||||
mix-blend-mode:difference;
|
mix-blend-mode:difference;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
svg{
|
||||||
|
width:400px;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<body>
|
<body>
|
||||||
|
@ -164,7 +178,6 @@ echo <<< EOSVG
|
||||||
</svg>
|
</svg>
|
||||||
EOSVG;
|
EOSVG;
|
||||||
|
|
||||||
print_r($currentHit->getPoints()->getAsArray());
|
|
||||||
?>
|
?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue