http VLM new button hide/show vlm_helper

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Albert
Cone that earned his stripes
Cone that earned his stripes
Posts: 102
Joined: 15 Mar 2006 08:17

http VLM new button hide/show vlm_helper

Postby Albert » 23 Mar 2006 08:36

Hello,
this is a proposal for http VLM interface.

I found useful button, which can hide/show VLM helper. I have several Elements and helper fills viewable space. It can be done in a much better way, but this is just idea.

In ./http/js/vlm.js define a new function

Code: Select all

function hide_helper() { var helper = document.getElementById( 'vlm_helper' ).style.display; if(helper=='none') { document.getElementById( 'vlm_helper' ).style.display = '';} else {document.getElementById( 'vlm_helper' ).style.display = 'none';} }
and in ./http/dialogs/vlm add

Code: Select all

<button id="btn_hide_helper" onclick="hide_helper();" onmouseover="button_over(this);" onmouseout="button_out(this);"> Toggle helper </button>
Albert

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 23 Mar 2006 13:07

I'll add that when i reboot back to linux. Post a reminder if this isn't applied tomorrow.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Albert
Cone that earned his stripes
Cone that earned his stripes
Posts: 102
Joined: 15 Mar 2006 08:17

better solution

Postby Albert » 23 Mar 2006 13:35

Hello,
just better code:

Code: Select all

<button id="btn_vlm_helper_toggle" onclick="toggle_show_vlm_helper();" onmouseover="button_over(this);" onmouseout="button_out(this);"> Hide VLM helper </button>
and

Code: Select all

function toggle_show_vlm_helper() { var element = document.getElementById( "vlm_helper" ); if( element.style.display == 'block' || element.style.display == '') { element.style.display = 'none'; document.getElementById( "btn_vlm_helper_toggle" ).value = 'Show VLM helper'; } else { element.style.display = 'block'; document.getElementById( "btn_vlm_helper_toggle" ).value = 'Hide VLM helper'; } }
Albert

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 24 Mar 2006 14:11

applied (with some changes) https://trac.videolan.org/vlc/changeset/14904

Thanks
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

charlest
Blank Cone
Blank Cone
Posts: 51
Joined: 24 May 2007 13:28
Location: Sydney, Australia

Re: http VLM new button hide/show vlm_helper

Postby charlest » 22 Aug 2007 21:38

How do I change the code such that the VLM Helper defaults to hide?


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests