course presentation unable to add new classname for slide controls
// Add and bind slide controls.
H5PEditor.$(
'<div class="h5p-slidecontrols" style="display:none;">' +
'<a href="#" title="' + H5PEditor.t('H5PEditor.CoursePresentation', 'backgroundSlide') + '" class="h5p-slidecontrols-button h5p-slidecontrols-button-background"></a>' +
'<a href="#" title="' + window.parent.Drupal.t("LBL3091") +' - '+window.parent.Drupal.t("LBL3093")+ '" class="h5p-slidecontrols-button h5p-slidecontrols-button-sort-left"></a>' +
'<a href="#" title="' + window.parent.Drupal.t("LBL3091") +' - '+window.parent.Drupal.t("LBL3092")+ '" class="h5p-slidecontrols-button h5p-slidecontrols-button-sort-right"></a>' +
'<a href="#" title="' + H5PEditor.t('H5PEditor.CoursePresentation', 'removeSlide') + '" class="h5p-slidecontrols-button h5p-slidecontrols-button-delete"></a>' +
'<a href="#" title="' + H5PEditor.t('H5PEditor.CoursePresentation', 'cloneSlide') + '" class="h5p-clone-slide h5p-slidecontrols-button h5p-slidecontrols-button-clone"></a>' +
'<a href="#" title="' + H5PEditor.t('H5PEditor.CoursePresentation', 'newSlide') + '" class="h5p-slidecontrols-button h5p-slidecontrols-button-add"></a>' +
'</div>'
).appendTo(this.cp.$wrapper).................
Above code used for slide controls in presentation .
I want to add the new classname each anchor tag. If i add new class name , the functionality will break . (Add slide not working )
Could anyone please help me ?
tim
Thu, 08/17/2017 - 09:28
Permalink
Hi maheswarim, where exactly
Hi maheswarim, where exactly are you finding this code?
I recommend looking at the source here:
https://github.com/h5p/h5p-course-presentation/blob/master/scripts/navigation-line.js