324280
Junior Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Всем привет. Установил аддон "Replay buttons on card". Вместо копки "Play" появилась ссылка: "Replay", да еще большого размера. Пробовал править код css. Видимо не так правлю. Подскажите, пожалуйста, как вместо надписи вставить картинку кнопки. Код: Add a button after the match to replay the audio. The title is set to "Replay" on the question side to hide information or to the file name on the answer. """ if 'q' == qa_type: title = u"Replay" else: title = sound.group(1) return u"""{orig}<a href='javascript:py.link("ankiplay{fn}");' \ title="{ttl}" class="replaybutton browserhide"><span><svg viewBox="0 0 32 32">\ <polygon points="11,25 25,16 11,7"/>Replay</svg></span></a>\ <span style="display: none;">[sound:{fn}]</span>""".format( orig=sound.group(0), fn=sound.group(1), ttl=title) # The [ ] are the square brackets that we want to # appear as brackets and not trigger the playing of the # sound. The span inside the a around the svg is there to # bring this closer in line with AnkiDroid. return re.sub(sound_re, add_button, qa_html) | Добавлено: P.S. Разобрался. Установил другую, более старую версию, которая содержит эту кнопку. |