Apartment scene #4

Merged
kornerr merged 25 commits from apartment into main 2025-04-08 06:29:36 +02:00
2 changed files with 11 additions and 9 deletions
Showing only changes of commit 54f090d314 - Show all commits

View File

@@ -25,7 +25,6 @@
</head> </head>
<body> <body>
</body> </body>
<p><a href="https://www.matrixfans.net/movies/the-matrix/transcript/">Matrix 1 full transcript</a></p> <p><a href="https://www.matrixfans.net/movies/the-matrix/transcript/">Matrix 1 full transcript</a></p>
<!-- Templates --> <!-- Templates -->

View File

@@ -25,12 +25,13 @@
</head> </head>
<body> <body>
</body> </body>
<p><a href="https://www.matrixfans.net/movies/the-matrix/transcript/">Matrix 1 full transcript</a></p>
<!-- Templates --> <!-- Templates -->
<script> <script>
var itemTemplate = ` var itemTemplate = `
<div class = "item"> <div class = "item">
<h1><span id="who-%ID%"></span>: <span id="zh-%ID%"><span></h1> <h1><span id="who-%ID%"></span>: <a id="zh-%ID%" href="https://www.archchinese.com/chinese_english_dictionary.html?find=%ZH%" target="_blank"><a></h1>
<img id="img-%ID%" /> <img id="img-%ID%" />
<p id="en-%ID%"></p> <p id="en-%ID%"></p>
<p id="tr-%ID%" class="transcript"></p> <p id="tr-%ID%" class="transcript"></p>
@@ -45,14 +46,14 @@
1: { 1: {
who: "Cop", who: "Cop",
en: "Freeze, Police", en: "Freeze, Police",
zh: "别动警察", zh: "别动 警察",
tr: "biedong jingcha", tr: "biedong jingcha",
}, },
2: { 2: {
who: "Cop", who: "Cop",
en: "Hands on your head. Do it. Do it now", en: "Hands on your head. Do it. Do it now",
zh: "快举起手来举起来", zh: "快 举起手来 举起来",
tr: "kuai, juqi shou lai, juqi lai", tr: "kuai juqi shou lai juqi lai",
}, },
3: { 3: {
who: "Sign", who: "Sign",
@@ -69,7 +70,7 @@
5: { 5: {
who: "Lieutenant", who: "Lieutenant",
en: "Oh shit", en: "Oh shit",
zh: "哦见鬼", zh: "哦 见鬼",
tr: "o jiangui", tr: "o jiangui",
}, },
6: { 6: {
@@ -80,8 +81,8 @@
}, },
7: { 7: {
who: "Lieutenant", who: "Lieutenant",
en: "Hey, Im just doing my job", en: "Hey, I'm just doing my job",
zh: "咳我正在尽职呀", zh: "咳 我正在尽职呀",
tr: "hai wozhengzai jinzhi ya", tr: "hai wozhengzai jinzhi ya",
}, },
8: { 8: {
@@ -260,7 +261,9 @@
<script> <script>
// Create items in HTML. // Create items in HTML.
for (var i in texts) { for (var i in texts) {
document.body.innerHTML += itemTemplate.replaceAll("%ID%", i); document.body.innerHTML += itemTemplate
.replaceAll("%ID%", i)
.replaceAll("%ZH%", texts[i]["zh"]);
} }
// Assign texts. // Assign texts.