Compare commits
	
		
			No commits in common. "d764c5c256534f6f5161efcabcf7e7918d1472dd" and "fc64239c885f02290448d046b9c52b27c705ecde" have entirely different histories.
		
	
	
		
			d764c5c256
			...
			fc64239c88
		
	
		
@ -32,8 +32,6 @@ The main program with html output is executed by entering
 | 
				
			|||||||
python survBot.py -html path_for_html_output
 | 
					python survBot.py -html path_for_html_output
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There are example stylesheets in the folder *stylesheets* that can be copied into the path_for_html_output if desired.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
The GUI can be loaded via
 | 
					The GUI can be loaded via
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell script
 | 
					```shell script
 | 
				
			||||||
 | 
				
			|||||||
@ -1,39 +0,0 @@
 | 
				
			|||||||
body {
 | 
					 | 
				
			||||||
    background-color: #ffffff;
 | 
					 | 
				
			||||||
    place-items: center;
 | 
					 | 
				
			||||||
    text-align: center;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
td {
 | 
					 | 
				
			||||||
    border-radius: 4px;
 | 
					 | 
				
			||||||
    padding: 0px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
th {
 | 
					 | 
				
			||||||
    background-color: #999;
 | 
					 | 
				
			||||||
    border-radius: 4px;
 | 
					 | 
				
			||||||
    padding: 3px 1px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
a:link, a:visited {
 | 
					 | 
				
			||||||
    background-color: #ccc;
 | 
					 | 
				
			||||||
    color: #000;
 | 
					 | 
				
			||||||
    text-decoration: none;
 | 
					 | 
				
			||||||
    display: block;
 | 
					 | 
				
			||||||
    border-radius: 4px;
 | 
					 | 
				
			||||||
    border: 1px solid #bbb;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
a:hover {
 | 
					 | 
				
			||||||
    background-color: #aaa;
 | 
					 | 
				
			||||||
    display: block;			  
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.blink-bg {
 | 
					 | 
				
			||||||
    animation: blinkingBackground 2s infinite;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@keyframes blinkingBackground{
 | 
					 | 
				
			||||||
    0%		{ background-color: #ffcc00;}
 | 
					 | 
				
			||||||
    50%		{ background-color: #ff3200;}
 | 
					 | 
				
			||||||
    100%	{ background-color: #ffcc00;}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1,43 +0,0 @@
 | 
				
			|||||||
body {
 | 
					 | 
				
			||||||
    background-color: #ffffff;
 | 
					 | 
				
			||||||
    place-items: center;
 | 
					 | 
				
			||||||
    text-align: center;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
td {
 | 
					 | 
				
			||||||
    border-radius: 4px;
 | 
					 | 
				
			||||||
    padding: 10px 2px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
th {
 | 
					 | 
				
			||||||
    background-color: #999;
 | 
					 | 
				
			||||||
    border-radius: 4px;
 | 
					 | 
				
			||||||
    padding: 10px, 2px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
a:link {
 | 
					 | 
				
			||||||
    background-color: #ccc;
 | 
					 | 
				
			||||||
    color: #000;
 | 
					 | 
				
			||||||
    text-decoration: none;
 | 
					 | 
				
			||||||
    display: block;
 | 
					 | 
				
			||||||
    border-radius: 4px;
 | 
					 | 
				
			||||||
    border: 1px solid #bbb;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
a:hover {
 | 
					 | 
				
			||||||
    background-color: #aaa;
 | 
					 | 
				
			||||||
    display: block;			  
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.hidden-mobile {
 | 
					 | 
				
			||||||
    display: none;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.blink-bg {
 | 
					 | 
				
			||||||
    animation: blinkingBackground 2s infinite;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@keyframes blinkingBackground{
 | 
					 | 
				
			||||||
    0%		{ background-color: #ffee00;}
 | 
					 | 
				
			||||||
    50%		{ background-color: #ff3200;}
 | 
					 | 
				
			||||||
    100%	{ background-color: #ffee00;}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -14,13 +14,19 @@ def write_html_header(fobj, refresh_rate=10):
 | 
				
			|||||||
    header = ['<!DOCTYPE html>',
 | 
					    header = ['<!DOCTYPE html>',
 | 
				
			||||||
              '<html>',
 | 
					              '<html>',
 | 
				
			||||||
              '<head>',
 | 
					              '<head>',
 | 
				
			||||||
              '  <link rel="stylesheet" media="only screen and (max-width: 400px)" href="mobile.css" />',
 | 
					              '<link rel="stylesheet" href="stylesheet.css">',
 | 
				
			||||||
              '  <link rel="stylesheet" media="only screen and (min-width: 401px)" href="desktop.css" />',
 | 
					 | 
				
			||||||
              '</head>',
 | 
					              '</head>',
 | 
				
			||||||
              f'<meta http-equiv="refresh" content="{refresh_rate}" >',
 | 
					              f'<meta http-equiv="refresh" content="{refresh_rate}" >',
 | 
				
			||||||
              '<meta charset="utf-8">',
 | 
					              '<meta charset="utf-8">',
 | 
				
			||||||
              '<meta name="viewport" content="width=device-width, initial-scale=1">',
 | 
					              '<meta name="viewport" content="width=device-width, initial-scale=1">',
 | 
				
			||||||
 | 
					              '<link rel="stylesheet" media="only screen and (max-width: 400px)" href="mobile.css" />',
 | 
				
			||||||
 | 
					              '<link rel="stylesheet" media="only screen and (min-width: 401px)" href="desktop.css" />',
 | 
				
			||||||
              '<body>']
 | 
					              '<body>']
 | 
				
			||||||
 | 
					    # style = ['<style>',
 | 
				
			||||||
 | 
					    #           'table, th, td {',
 | 
				
			||||||
 | 
					    #           'border:1px solid black;',
 | 
				
			||||||
 | 
					    #           '}',
 | 
				
			||||||
 | 
					    #           '</style>',]
 | 
				
			||||||
    for item in header:
 | 
					    for item in header:
 | 
				
			||||||
        fobj.write(item + '\n')
 | 
					        fobj.write(item + '\n')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user