Update 'README.md'

master
camilo 3 years ago
parent 279d7e5092
commit 45243a51f5

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

Loading…
Cancel
Save