Last active
January 13, 2023 03:52
-
-
Save hyrious/1f3ad0b3c9ff470db7079d28f44dae55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test</title> | |
<link rel="stylesheet" href="https://unpkg.com/heti@0.9.3/umd/heti.min.css"> | |
</head> | |
<body> | |
<button onclick="run()">Run Heti</button> | |
<article class="entry heti"> | |
<p>的《历史的终结和最后的人》)。「三和大神」当然不是只在</p> | |
</article> | |
<script src="https://unpkg.com/heti@0.9.3/umd/heti-addon.min.js"></script> | |
<script> | |
function run() { | |
console.assert(document.readyState === 'complete') | |
// Make sure it runs **after** dom ready | |
new Heti('.heti').autoSpacing() | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment