movies2anki_front_template = """
{{play:Video}}
""" movies2anki_back_template = """ {{FrontSide}}
{{Expression}}
{{#Meaning}}
{{Meaning}}
{{/Meaning}} {{#Notes}}
{{Notes}}
{{/Notes}}
{{play:Audio}}
""" base_css = """ .card { font-family: arial; font-size: 20px; text-align: center; color: black; background-color: white; } .expression { font-size: 20px; margin-top: 15px; margin-bottom: 9px; } .meaning { font-size: 18px; color: #000080; margin-bottom: 10px; } .nightMode .meaning { color: #9bc0dd; } .notes { font-size: 18px; color: #aaa; margin-bottom: 10px; } .snapshot { margin-bottom: 13px; } img { vertical-align: bottom; margin: auto; max-width: 100%; height: auto; } .media { margin: 4px; margin-top: 12px; } hr#answer { margin-top: 10px; margin-bottom: 16px; height: 1px; background-color: #9a9a9a; border: none; } .replay-button { height: 35px; width: 35px; outline: none; user-select: none; -webkit-tap-highlight-color: transparent; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='playImage' viewBox='0 0 64 64' width='40px' height='40px' version='1.1'%3E%3Ccircle fill='%23fff' stroke='%23414141' cx='32' cy='32' r='29'%3E%3C/circle%3E%3Cpath fill='%23414141' d='M56.502,32.301l-37.502,20.101l0.329,-40.804l37.173,20.703Z'%3E%3C/path%3E%3C/svg%3E"); } .nightMode .replay-button { filter: invert(85%); } """ movies2anki_css = base_css + """ .android body { visibility: hidden; } """ # ------------------------------------- # subs2srs_image_front_template = """
{{Snapshot}}
{{play:Audio}}
""" subs2srs_image_back_template = """
{{Snapshot}}
{{play:Audio}}

{{Expression}}
{{#Meaning}}
{{Meaning}}
{{/Meaning}} {{#Notes}}
{{Notes}}
{{/Notes}} """ subs2srs_image_css = base_css + """ """ # ------------------------------------- # subs2srs_video_front_template = """
""" subs2srs_video_back_template = """ {{FrontSide}}
{{Expression}}
{{#Meaning}}
{{Meaning}}
{{/Meaning}} {{#Notes}}
{{Notes}}
{{/Notes}}
{{play:Audio}}
""" subs2srs_video_css = base_css + """ video { display: block; max-width: 100%; margin: auto; } .mobile body, .mobile #content { margin: 0; padding: 0; } .mobile .expression, .mobile .meaning, .mobile .notes { margin-left: 10px; margin-right: 10px; } """ # ------------------------------------- # subs2srs_audio_front_template = """
{{play:Audio}}
""" subs2srs_audio_back_template = """
{{play:Audio}}

{{Expression}}
{{#Meaning}}
{{Meaning}}
{{/Meaning}} {{#Notes}}
{{Notes}}
{{/Notes}} """ subs2srs_audio_css = base_css + """ """