youngtsai commited on
Commit
123a4b1
1 Parent(s): b9bc586

html_content_container

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -384,6 +384,16 @@ def format_transcript_to_html(formatted_transcript):
384
  }});
385
  """
386
 
 
 
 
 
 
 
 
 
 
 
387
  # 创建 HTML 内容
388
  html_content = f"""
389
  <!DOCTYPE html>
@@ -395,7 +405,7 @@ def format_transcript_to_html(formatted_transcript):
395
  </style>
396
  </head>
397
  <body>
398
- {html_content} # The HTML structure for displaying the content
399
  <script>
400
  {JS} # The JavaScript code for functionality
401
  </script>
 
384
  }});
385
  """
386
 
387
+ html_content_container = """
388
+ <div id="contentDisplay">
389
+ <div id="imageDisplay"></div>
390
+ <p id="timeDisplay"></p>
391
+ <p id="textDisplay"></p>
392
+ <button id="prevButton">上一個</button>
393
+ <button id="nextButton">下一個</button>
394
+ </div>
395
+ """
396
+
397
  # 创建 HTML 内容
398
  html_content = f"""
399
  <!DOCTYPE html>
 
405
  </style>
406
  </head>
407
  <body>
408
+ {html_content_container} # The HTML structure for displaying the content
409
  <script>
410
  {JS} # The JavaScript code for functionality
411
  </script>