Get started with post-robot CDN
Apache-2.0 licensed
Post-Robot: Minimal library for complex animations, fluid user experiences.
Tags:- cross-domain
- cross domain
- xdm
- iframe
- postmessage
- krakenjs
- kraken
Stable version
Copied!
How to start using post-robot CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with post-robot CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/post-robot/10.0.46/post-robot.min.js"></script>
</head>
<body>
<button id="post-button">Post a message</button>
<script>
const postButton = document.getElementById('post-button');
const postRobot = new PostRobot('https://your-api-endpoint.com/posts', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify
});
postButton.addEventListener('click', () => {
const message = 'Hello, world!';
postRobot.send(message)
.then(response => {
console.log('Message posted successfully:', response);
})
.catch(error => {
console.error('Error posting message:', error);
});
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!