Skip to content

Instantly share code, notes, and snippets.

@hyrious
Last active January 13, 2023 03:52
Show Gist options
  • Save hyrious/1f3ad0b3c9ff470db7079d28f44dae55 to your computer and use it in GitHub Desktop.
Save hyrious/1f3ad0b3c9ff470db7079d28f44dae55 to your computer and use it in GitHub Desktop.
<!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