More instructive

master
Bob Mottram 2019-08-19 21:34:31 +01:00
parent fec5a4f9cc
commit 78acf2776a
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ def htmlSearchEmoji(baseDir: str,searchStr: str) -> str:
for emojiName,filename in emojiJson.items():
if emojiName in searchStr:
results[emojiName] = filename+'.png'
if len(results.items())>0:
emojiForm+='<center><h5>Copy the text then paste it into your post</h5></center>'
emojiForm+='<center>'
for emojiName,filename in results.items():
emojiForm+='<h3>:'+emojiName+':<img class="searchEmoji" src="/emoji/'+filename+'"/></h3>'