Re: Re: Web interface prototype
Robert Moser II <[email protected]> Thu, 20 Feb 2003 05:40:42 -0800
| Newsgroups | gmane.music.equipment.slimp3.dev |
|---|---|
| Message-ID | <[email protected]> |
If you are looking to recreate the volume display, you can do it with an
[EVAL] like this:
[EVAL]
if ($hashref->{'volume'} >= 10)
{$hashref->{'volgte10'} = 1};
if ($hashref->{'volume'} >= 20)
{$hashref->{'volgte20'} = 1};
if ($hashref->{'volume'} >= 30)
{$hashref->{'volgte30'} = 1};
if ($hashref->{'volume'} >= 40)
{$hashref->{'volgte40'} = 1};
if ($hashref->{'volume'} >= 50)
{$hashref->{'volgte50'} = 1};
if ($hashref->{'volume'} >= 60)
{$hashref->{'volgte60'} = 1};
if ($hashref->{'volume'} >= 70)
{$hashref->{'volgte70'} = 1};
if ($hashref->{'volume'} >= 80)
{$hashref->{'volgte80'} = 1};
if ($hashref->{'volume'} >= 90)
{$hashref->{'volgte90'} = 1};
1;
[/EVAL]
<td width="50%" align="center"
style="border-left:1px solid silver">
Volume
<a
href="status.html?p0=mixer&p1=volume&p2=0&player={player}&start={start}">
<img border="0" src="html/pixel.green.gif"
hspace="2" width="4" height="4"></a>
<a
href="status.html?p0=mixer&p1=volume&p2=10&player={player}&start={start}">
<img border="0" src="html/pixel.[IF
volgte10]green[/IF][IFN volgte10]gray.2[/IFN].gif" hspace="2" width="4"
height="6"></a>
<a
href="status.html?p0=mixer&p1=volume&p2=20&player={player}&start={start}">
<img border="0" src="html/pixel.[IF
volgte20]green[/IF][IFN volgte20]gray.2[/IFN].gif" hspace="2" width="4"
height="8"></a>
<a
href="status.html?p0=mixer&p1=volume&p2=30&player={player}&start={start}">
<img border="0" src="html/pixel.[IF
volgte30]green[/IF][IFN volgte30]gray.2[/IFN].gif" hspace="2" width="4"
height="10"></a>
<a
href="status.html?p0=mixer&p1=volume&p2=40&player={player}&start={start}">
<img border="0" src="html/pixel.[IF
volgte40]green[/IF][IFN volgte40]gray.2[/IFN].gif" hspace="2" width="4"
height="12"></a>
<a
href="status.html?p0=mixer&p1=volume&p2=50&player={player}&start={start}">
<img border="0" src="html/pixel.[IF
volgte50]green[/IF][IFN volgte50]gray.2[/IFN].gif" hspace="2" width="4"
height="14"></a>
<a
href="status.html?p0=mixer&p1=volume&p2=60&player={player}&start={start}">
<img border="0" src="html/pixel.[IF
volgte60]green[/IF][IFN volgte60]gray.2[/IFN].gif" hspace="2" width="4"
height="16"></a>
<a
href="status.html?p0=mixer&p1=volume&p2=70&player={player}&start={start}">
<img border="0" src="html/pixel.[IF
volgte70]green[/IF][IFN volgte70]gray.2[/IFN].gif" hspace="2" width="4"
height="18"></a>
<a
href="status.html?p0=mixer&p1=volume&p2=80&player={player}&start={start}">
<img border="0" src="html/pixel.[IF
volgte80]green[/IF][IFN volgte80]gray.2[/IFN].gif" hspace="2" width="4"
height="20"></a>
<a
href="status.html?p0=mixer&p1=volume&p2=90&player={player}&start={start}">
<img border="0" src="html/pixel.[IF
volgte90]green[/IF][IFN volgte90]gray.2[/IFN].gif" hspace="2" width="4"
height="22"></a>
<a
href="status.html?p0=mixer&p1=volume&p2=100&player={player}&start={start}">
<img border="0" src="html/pixel.[EQ volume
100]green[/EQ][NE volume 100]gray.2[/NE].gif" hspace="2" width="4"
height="24"></a></td>
At 10:23 AM 2/20/2003 +0000, you wrote:
>I knew i needed an excuse to try CVS. Much nicer with it all in place.
>I didn't have as much luck with a diff however. Working on that
>volume idea shown in the example, it seemed a [GT...] tag was needed.
> I managed that by adding the following line after lin 714 in HTTP.pm:
>
>$template=~s/\[GT\s+([^\[\]]+)\s+(.+?)\](.*?)\[\/GT\]/(defined($$hashref{$1})
>&& $$hashref{$1} < $2) ? $3 : ''/esg;
>
>Then, its as simple as using the slider image template from the Dark
>skin, using GT instead of EQ to generate the images.
>
>hope that's a simple enough change not to have been a pain by not
>using diff.
>
>cheers,
>Kevin
>--- In [email protected], dean blackketter <dean@s...> wrote:
> > Yes, you'll need to get the full CVS update in order to test this.
> >
> > -dean
> >
>
>
>
>
>To unsubscribe from this group, send an email to:
>[email protected]
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/rIp0lB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/