SunInfo: add map pin.

master
Matt Miller 2014-10-06 15:35:39 +02:00
parent 938fc03bdb
commit 903ce4331a
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ sub pretty_output {
my $text = "On $when, sunrise in $where is at $rise; sunset at $set.";
my $html = "<div class='zci--suninfo'>";
$html .= "<span class='suninfo--header text--secondary'>$where on $when</span><br/>";
$html .= "<div class='suninfo--header text--secondary'><span class='ddgsi'>@</span>$where on $when</div>";
$html .= "<div class='text--primary suninfo--risediv'><img class='sunrise' src=''/>$rise</div>";
$html .= "<div class='text--primary suninfo--setdiv'><img class='sunset' src=''/>$set</div>";
$html .= "</div>";

View File

@ -14,7 +14,7 @@ my @aug = (qr/^On 30 Aug.*am.*pm\.$/, html => qr/Phoenixville.*am.*pm
my @exact = (
'On 01 Jan 2015, sunrise in Phoenixville, PA is at 7:23am; sunset at 4:46pm.',
html =>
"<div class='zci--suninfo'><span class='suninfo--header text--secondary'>Phoenixville, PA on 01 Jan 2015</span><br/><div class='text--primary suninfo--risediv'><img class='sunrise' src=''/>7:23am</div><div class='text--primary suninfo--setdiv'><img class='sunset' src=''/>4:46pm</div></div>"
"<div class='zci--suninfo'><div class='suninfo--header text--secondary'><span class='ddgsi'>@</span>Phoenixville, PA on 01 Jan 2015</div><div class='text--primary suninfo--risediv'><img class='sunrise' src=''/>7:23am</div><div class='text--primary suninfo--setdiv'><img class='sunset' src=''/>4:46pm</div></div>"
);
ddg_goodie_test([qw(