Lafayette #11
@@ -32,7 +32,7 @@
|
||||
<script>
|
||||
var itemTemplate = `
|
||||
<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%" />
|
||||
<p id="en-%ID%"></p>
|
||||
<p id="tr-%ID%" class="transcript"></p>
|
||||
@@ -159,7 +159,9 @@
|
||||
<script>
|
||||
// Create items in HTML.
|
||||
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.
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -15,3 +15,4 @@ Table of contents:
|
||||
* 07.Interrogation.html
|
||||
* 08.Apartment.html
|
||||
* 09.Car.html
|
||||
* 10.Lafayette.html
|
||||
|
||||
8
util/do-img
Executable file
8
util/do-img
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
IMG_DIR=/Users/mk/Movies
|
||||
|
||||
magick $IMG_DIR/1.full.jpg -resize x250 $IMG_DIR/1.jpg
|
||||
magick $IMG_DIR/2.full.jpg -resize x250 $IMG_DIR/2.jpg
|
||||
base64 -i $IMG_DIR/1.jpg -o /tmp/1
|
||||
base64 -i $IMG_DIR/2.jpg -o /tmp/2
|
||||
6
util/do-snd
Executable file
6
util/do-snd
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
SND_DIR=/Users/mk/Movies
|
||||
|
||||
base64 -i $SND_DIR/1.aac -o /tmp/1
|
||||
base64 -i $SND_DIR/2.aac -o /tmp/2
|
||||
Reference in New Issue
Block a user