Get started with pangu CDN
MIT licensed
Pangu is a lightweight library for text selection and manipulation in the browser.
Tags:- chinese
- file
- japanese
- korean
- obsessive-compulsive disorder
- ocd
- pangu
- paranoia
- paranoid
- readability
- spacing
- text
Stable version
Copied!
How to start using pangu CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with pangu CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/pangu/4.0.7/pangu.min.js"></script>
</head>
<body>
<button id="correct">Correct Text</button>
<p id="text">This text contains multiple errors and inconsistencies.</p>
<script>
const correctButton = document.getElementById('correct');
const textElement = document.getElementById('text');
correctButton.addEventListener('click', () => {
pangu.correctText(textElement.textContent, (correctedText) => {
textElement.textContent = correctedText;
});
});
</script>
</body>
</html>
Copied!
Copied!