html - Changing style tag with javascript [Slider] -
www.imgur.com/8bq1x.png
i remove style display:none yellow highlighted bit when blue highlighted bit selected.
how edit code that?
(function(iis) { "use strict"; iis.slider.prototype.addcaptions = function() { iis._addclass(this._attributes.container, 'iis-has-captions'); array.prototype.foreach.call(this._attributes.slides, function(slide, i){ var caption = document.createelement('div'); iis._addclass(caption, 'iis-caption'); var captioncontent = ''; if(slide.getattribute('title')){ captioncontent += '<div class="iis-caption-title">'+ slide.getattribute('title') +'</div>'; } if(slide.getattribute('data-caption')){ var datacaption = slide.getattribute('data-caption'); if(datacaption.substring(0,1) == '#' || datacaption.substring(0,1) == '.'){ var external = document.queryselector(datacaption); if(external){ captioncontent += '<div class="iis-caption-content">'+ external.innerhtml +'</div>'; } } else { captioncontent += '<div class="iis-caption-content">'+ slide.getattribute('data-caption') +'</div>'; } } else { if(slide.innerhtml){ captioncontent += '<div class="iis-caption-content">'+ slide.innerhtml +'</div>'; } } slide.innerhtml = ''; if(captioncontent){ caption.innerhtml = captioncontent; slide.appendchild(caption); } }.bind(this)); }; return iis; })(idealimageslider);
Comments
Post a Comment