From d7bfa9c75db08881b527ce88732fe7c11995886e Mon Sep 17 00:00:00 2001
From: Chris Mildebrandt Home | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 Home | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45
Leaving the center of the Maze we found ourselves ' 'in...
'} -image_maps_100_percent = {1: '', - 2: '', - 3: '', - 4: '', - 5: '', - 6: '', - 7: '', - 8: '', - 9: '', - 10: '', - 11: '', - 12: '', - 13: '', - 14: '', - 15: '', - 16: '', - 17: '', - 18: '', - 19: '', - 20: '', - 21: '', - 22: '', - 23: '', - 24: '', - 25: '', - 26: '', - 27: '', - 28: '', - 29: '', - 30: '', - 31: '', - 32: '', - 33: '', - 34: '', - 35: '', - 36: '', - 37: '', - 38: '', - 39: '', - 40: '', - 41: '', - 42: '', - 43: '', - 44: '', - 45: ''} image_map_data = {1: [('20', 'rect', '476,212,879,966'), ('26', 'rect', '954,954,1348,210'), @@ -885,7 +515,6 @@ ('23', 'rect', '1664,116,1898,1267')]} - for i in range(1, 46): print(f'Generating room #{i}...') image_map_html = '' @@ -893,17 +522,16 @@ dest, shape, coords = data # Thumbnails are 25% resized coords = ','.join([str(int(c) // 4) for c in coords.split(',')]) - - PAGE_LINKS = ['Home'] - for j in range(1, 46): - if i == j: - PAGE_LINKS.append(f'{j}') # no link for the current page - else: - PAGE_LINKS.append(f'{j}') - PAGE_LINKS = ' | '.join(PAGE_LINKS) - image_map_html += f'\n' + PAGE_LINKS = ['Home'] + for j in range(1, 46): + if i == j: + PAGE_LINKS.append(f'{j}') # no link for the current page + else: + PAGE_LINKS.append(f'{j}') + PAGE_LINKS = ' | '.join(PAGE_LINKS) + content = f''' @@ -944,10 +572,3 @@ with open(f'../mazewebsite/room{i}.html', 'w') as fo: fo.write(content) - - - - - - -