add sentence quiz
This commit is contained in:
1 parent
4fe298eab0
commit
80b0b86d66
4 files changed
+31
-3
No files matched your search
Generated
+13
@@ -39,12 +39,25 @@
|
|||||||
"@types/babel-types": "*"
|
"@types/babel-types": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@types/jquery": {
|
||||||
|
"version": "3.3.31",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.3.31.tgz",
|
||||||
|
"integrity": "sha512-Lz4BAJihoFw5nRzKvg4nawXPzutkv7wmfQ5121avptaSIXlDNJCUuxZxX/G+9EVidZGuO0UBlk+YjKbwRKJigg==",
|
||||||
|
"requires": {
|
||||||
|
"@types/sizzle": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@types/normalize-package-data": {
|
"@types/normalize-package-data": {
|
||||||
"version": "2.4.0",
|
"version": "2.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
|
||||||
"integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==",
|
"integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"@types/sizzle": {
|
||||||
|
"version": "2.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.2.tgz",
|
||||||
|
"integrity": "sha512-7EJYyKTL7tFR8+gDbB6Wwz/arpGa0Mywk1TJbNzKzHtzbwVmY4HR9WqS5VV7dsBUKQmPNr192jHr/VpBluj/hg=="
|
||||||
|
},
|
||||||
"@webassemblyjs/ast": {
|
"@webassemblyjs/ast": {
|
||||||
"version": "1.8.5",
|
"version": "1.8.5",
|
||||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz",
|
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz",
|
||||||
|
|||||||
+3
-1
@@ -3,7 +3,9 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "My journey through Chinese language",
|
"description": "My journey through Chinese language",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"dependencies": {},
|
"dependencies": {
|
||||||
|
"@types/jquery": "^3.3.31"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gh-pages": "^2.1.1",
|
"gh-pages": "^2.1.1",
|
||||||
"husky": "^3.0.3",
|
"husky": "^3.0.3",
|
||||||
|
|||||||
+14
-1
@@ -8,7 +8,20 @@ window.addEventListener("keydown", (ev) => {
|
|||||||
speak(s);
|
speak(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
|
window.onload = () => {
|
||||||
|
for (const a of Array.from(document.getElementsByTagName("a"))) {
|
||||||
|
const href = a.href;
|
||||||
|
console.log(href);
|
||||||
|
const m = /^slide:github:([^/]+)\/([^/]+)\/(.+)$/.exec(href);
|
||||||
|
if (m) {
|
||||||
|
const url = new URL("https://reveal-md.herokuapp.com/");
|
||||||
|
url.searchParams.append("q", `https://raw.githubusercontent.com/${m[1]}/${m[2]}/master/src/resources/${m[3]}`);
|
||||||
|
a.href = url.href;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function speak(s: string) {
|
function speak(s: string) {
|
||||||
const allVoices = speechSynthesis.getVoices();
|
const allVoices = speechSynthesis.getVoices();
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ tags:
|
|||||||
|
|
||||||
### Sentence quiz
|
### Sentence quiz
|
||||||
|
|
||||||
Please see [`github:patarapolw/zhdiary/slides/句子1.1.md`]()
|
Please see [`slide:github:patarapolw/zhdiary/slides/句子1.1.md`](slide:github:patarapolw/zhdiary/slides/句子1.1.md)
|
||||||
Reference in new issue
Block a user