Update 'README.md'

master
camilo 2 years ago
parent 279d7e5092
commit 45243a51f5

@ -100,7 +100,8 @@ words = pypandoc.convert_text(text, 'html', format='md')
* Make a dictionary of the properties * Make a dictionary of the properties
```properties = [ ```
properties = [
{ {
'title':'action', 'title':'action',
'symbol':'AC', 'symbol':'AC',
@ -117,11 +118,13 @@ words = pypandoc.convert_text(text, 'html', format='md')
'color': 'orange' 'color': 'orange'
}, },
] ]
``` ```
### Writing Website files ### Writing Website files
* Writing a legend using the properties * Writing a legend using the properties
``` ```
legend = '' legend = ''
@ -131,6 +134,7 @@ for title, symbol, color in properties:
title = properties[i]['title'] title = properties[i]['title']
legend += f'''<button id="{title}" class="btn {title}-s" onclick="filterSelection('{title}')">{title}</button>\n''' legend += f'''<button id="{title}" class="btn {title}-s" onclick="filterSelection('{title}')">{title}</button>\n'''
i += 1 i += 1
``` ```
* Adding property symbols in front of each word generating a Java script code: * Adding property symbols in front of each word generating a Java script code:

Loading…
Cancel
Save