Simplyfied helptext config
This commit is contained in:
		
							parent
							
								
									6c3e89dc13
								
							
						
					
					
						commit
						1986be119b
					
				
					 4 changed files with 9 additions and 31 deletions
				
			
		
							
								
								
									
										10
									
								
								config.ini
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								config.ini
									
										
									
									
									
								
							|  | @ -12,13 +12,9 @@ animations = 1 | ||||||
| lang = de | lang = de | ||||||
| more = Weiter »»» | more = Weiter »»» | ||||||
| title = A oder B | title = A oder B | ||||||
| mailtext = Einreichen! | mail_link = Einreichen! | ||||||
| help_title = Hilfe | help_link = Hilfe? | ||||||
| help_1 = Wähle die Antworten durch Klicken oder mit der Tastatur (a/b) aus. Sobald alle Antworten ausgewählt wurden, werden nach einer kurzen Wartezeit automatisch neue Fragen geladen. | help = <strong>Hilfe</strong><p>Wähle die Antworten durch Klicken oder mit der Tastatur (a/b) aus. Sobald alle Antworten ausgewählt wurden, werden nach einer kurzen Wartezeit automatisch neue Fragen geladen.</p><p>Möchtest du nicht alle Fragen beantworten, klicke einfach auf die Schaltfläche "Weiter" unten rechts (das klappt auch, während der Countdown läuft).</p><p>Klicke/tippe außerhalb dieses Fensters oder bewege die Maus, um fortzufahren.</p><p>Diese Webseite zeichnet keine Daten auf und verwendet keine Cookies.</p> | ||||||
| help_2 = Möchtest du nicht alle Fragen beantworten, klicke einfach auf die Schaltfläche "Weiter" unten rechts (das klappt auch, während der Countdown läuft). |  | ||||||
| help_3 = Klicke/tippe außerhalb dieses Fensters oder bewege die Maus, um fortzufahren. |  | ||||||
| help_4 = Diese Webseite zeichnet keine Daten auf und verwendet keine Cookies. |  | ||||||
| help_5 = |  | ||||||
| separator = oder | separator = oder | ||||||
| questions_prefix = Es gibt derzeit | questions_prefix = Es gibt derzeit | ||||||
| questions_suffix = Fragen. | questions_suffix = Fragen. | ||||||
|  |  | ||||||
							
								
								
									
										12
									
								
								game.py
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								game.py
									
										
									
									
									
								
							|  | @ -90,13 +90,9 @@ def hello(): | ||||||
|     separator = config.get('i18n', 'separator') |     separator = config.get('i18n', 'separator') | ||||||
|     separator_char = config.get('main', 'separator_char') |     separator_char = config.get('main', 'separator_char') | ||||||
|     mail = config.get('main', 'mail') |     mail = config.get('main', 'mail') | ||||||
|     mailtext = config.get('i18n', 'mailtext') |     mailtext = config.get('i18n', 'mail_link') | ||||||
|     help = config.get('i18n', 'help_title') |     helptext = config.get('i18n', 'help_link') | ||||||
|     help1 = config.get('i18n', 'help_1') |     help = config.get('i18n', 'help') | ||||||
|     help2 = config.get('i18n', 'help_2') |  | ||||||
|     help3 = config.get('i18n', 'help_3') |  | ||||||
|     help4 = config.get('i18n', 'help_4') |  | ||||||
|     help5 = config.get('i18n', 'help_5') |  | ||||||
|     url = config.get('main', 'base_url') |     url = config.get('main', 'base_url') | ||||||
|     theme = config.get('main', 'theme') |     theme = config.get('main', 'theme') | ||||||
|     animations = config.get('main', 'animations') |     animations = config.get('main', 'animations') | ||||||
|  | @ -121,7 +117,7 @@ def hello(): | ||||||
|     with open("ab.txt", "r") as f: |     with open("ab.txt", "r") as f: | ||||||
|         num_lines = sum(1 for _ in f) |         num_lines = sum(1 for _ in f) | ||||||
| 
 | 
 | ||||||
|     return render_template('index.html', title=title, separator=separator, content=ablines, num_lines=num_lines, epoch=epoch, mailto=mail, more=more, questions_prefix=questions_prefix, questions_suffix=questions_suffix, send_questions=send_questions, lang=lang, url=url, desc=desc, theme=theme, mailtext=mailtext, help=help, help_1=help1, help_2=help2, help_3=help3, help_4=help4, help_5=help5, animations=animations) |     return render_template('index.html', title=title, separator=separator, content=ablines, num_lines=num_lines, epoch=epoch, mailto=mail, more=more, questions_prefix=questions_prefix, questions_suffix=questions_suffix, send_questions=send_questions, lang=lang, url=url, desc=desc, theme=theme, mailtext=mailtext, helptext=helptext, help=help, animations=animations) | ||||||
| 
 | 
 | ||||||
| def getContent(): | def getContent(): | ||||||
|     lines = [a.strip() for a in open("ab.txt", "r").readlines()] |     lines = [a.strip() for a in open("ab.txt", "r").readlines()] | ||||||
|  |  | ||||||
|  | @ -1,4 +1,3 @@ | ||||||
| 
 |  | ||||||
| label.a.slide { | label.a.slide { | ||||||
|     animation-duration: 1s; |     animation-duration: 1s; | ||||||
|     animation-name: slideinfromleft; |     animation-name: slideinfromleft; | ||||||
|  |  | ||||||
|  | @ -18,22 +18,9 @@ | ||||||
|                 {{ questions_prefix }} {{ num_lines }} {{ questions_suffix }} |                 {{ questions_prefix }} {{ num_lines }} {{ questions_suffix }} | ||||||
|                 <br> |                 <br> | ||||||
|                 <a href="mailto:{{ mailto }}">{{ mailtext }}</a> -  |                 <a href="mailto:{{ mailto }}">{{ mailtext }}</a> -  | ||||||
|                 <a href="#">{{ help }}? |                 <a href="#">{{ helptext }} | ||||||
|                     <div id="help"> |                     <div id="help"> | ||||||
|                         <strong>{{ help }}</strong> |                         {{ help|safe }} | ||||||
|                         <p>{{ help_1 }}</p> |  | ||||||
|                         {%- if help_2 %} |  | ||||||
|                         <p>{{ help_2 }}</p> |  | ||||||
|                         {%- endif %} |  | ||||||
|                         {%- if help_3 %} |  | ||||||
|                         <p>{{ help_3 }}</p> |  | ||||||
|                         {%- endif %} |  | ||||||
|                         {%- if help_4 %} |  | ||||||
|                         <p>{{ help_4 }}</p> |  | ||||||
|                         {%- endif %} |  | ||||||
|                         {%- if help_5 %} |  | ||||||
|                         <p>{{ help_5 }}</p> |  | ||||||
|                         {%- endif %} |  | ||||||
|                     </div> |                     </div> | ||||||
|                 </a> |                 </a> | ||||||
|             </div> |             </div> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue