Customizing Web Help JavaScript

Post here questions and problems related to editing and publishing DITA content.
tmakita
Posts: 100
Joined: Fri Apr 08, 2011 7:58 am

Customizing Web Help JavaScript

Post by tmakita »

Hi,

This is newbie question.

Current Web Help Responsive output supports slideToggle animation for the section title. As you know the default behavior is expanded. When a user clicks the button aside the title, the section contents are collapsed.

My user request is to set the default status to be collapsed. This is because the user can select the contents by clicking the button as they like.

In my examination this code is written in webhelp-responsive\oxygen-webhelp\template\resources\js\wt_expand.js. I manually modified the code and confirmed that it is possible to set default status collapsed.

My question is for this customization. Can I perform this JavaScript customization from the outside? (Not modify Web Help Plug-in directly by myself) Or should I create the new plug-in that imports the Web Help plug-in?

I'm waiting for your reply.

Regards,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Customizing Web Help JavaScript

Post by radu_pisoi »

Hi,

You can contribute additional JavaScript resources to change the default WebHelp behavior.

You can find more information about this task our user manual:
* Adding Custom HTML Content in WebHelp Responsive Output
* Copying Additional Resources to WebHelp Output Directory
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
tmakita
Posts: 100
Joined: Fri Apr 08, 2011 7:58 am

Re: Customizing Web Help JavaScript

Post by tmakita »

Hi Radu,

Thank you for your information about customization.
I realized that it is possible to add my JavaScript customization as described in your link.

Regards,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Post Reply