<html>
<head>
<script type="text/javascript"> window.addEventListener('error', function(event) { var message = JSON.parse(JSON.stringify(event.message)); var source = event.filename; var lineno = event.lineno; var colno = event.colno; var error = event.error; window.parent.postMessage({ type: 'iframeError', details: { message: message, source: source, lineno: lineno, colno: colno, error: error ? error.stack : '' } }, '*'); }); window.addEventListener('unhandledrejection', function(event) { window.parent.postMessage({ type: 'iframePromiseRejection', details: { reason: event.reason } }, '*'); }); </script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Peppa Pig Episode Creator</title>
<meta name="description" content="Create your own fun Peppa Pig episodes with characters, scenes, voice recording, and dialogues!">
<meta name="keywords" content="Peppa Pig, episode creator, voice recording, cartoon, children, stories, fun, interactive, creativity">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<style>
body {
background: linear-gradient(135deg, #f3ec78, #af4261);
color: #444;
font-family: 'Comic Sans MS', cursive, sans-serif; /* Fun font choice! */
}
#main-container {
margin-top: 20px;
padding: 20px;
background: white;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0,0,0,0.2);
position: relative;
overflow: hidden;
}
h1 {
color: #f39c12;
}
.btn-custom {
background-color: #e74c3c;
color: white;
}
.btn-custom:hover {
background-color: #c0392b;
}
.character {
width: 50px;
margin: 10px;
cursor: grab;
}
#character-select {
display: none;
}
#character-area {
border: 1px dashed #ccc;
height: 150px;
padding: 10px;
margin: 10px 0;
position: relative;
}
.voice-recording {
margin-top: 20px;
}
.list-group-item {
background: #fdfdfd;
border: 1px solid #eaeaea;
}
</style>
<script type="text/javascript">
let episodes = []
let mediaRecorder
let audioChunks = []
document.addEventListener("DOMContentLoaded", function () {
const addEpisodeButton = document.getElementById("add-episode");
const episodeList = document.getElementById("episode-list");
const titleInput = document.getElementById("episode-title");
const sceneInput = document.getElementById("scene");
const dialogInput = document.getElementById("dialogue");
const recordButton = document.getElementById("record");
const characterArea = document.getElementById("character-area");
// Configure drag and drop
characterArea.ondragover = (e) => e.preventDefault();
characterArea.ondrop = handleDropCharacter;
document.querySelectorAll('.character').forEach(character => {
character.ondragstart = dragStart;
});
addEpisodeButton.addEventListener("click", logicAddEpisode);
async function logicAddEpisode() {
const episodeTitle = titleInput.value.trim();
const scenery = sceneInput.value.trim();
const dialogue = dialogInput.value.trim();
if (episodeTitle && scenery && dialogue) {
const episode = {
title: episodeTitle,
scene: scenery,
dialogue: dialogue,
audio: audioChunks
};
episodes.push(episode);
updateEpisodeList();
clearInputs();
} else {
alert("Please fill in all fields!");
}
}
function updateEpisodeList() {
episodeList.innerHTML = '';
episodes.forEach((ep, index) => {
const li = document.createElement("li");
li.className = "list-group-item";
const audioURL = URL.createObjectURL(new Blob(ep.audio));
li.innerHTML = `<strong>${ep.title}</strong> in ${ep.scene}: "${ep.dialogue}" <audio controls src="${audioURL}"></audio>`;
episodeList.appendChild(li);
});
}
function clearInputs() {
titleInput.value = '';
sceneInput.value = '';
dialogInput.value = '';
audioChunks = [];
}
function dragStart(e) {
e.dataTransfer.setData("text/plain", e.target.id);
}
function handleDropCharacter(e) {
e.preventDefault();
const characterId = e.dataTransfer.getData("text/plain");
const character = document.getElementById(characterId);
characterArea.appendChild(character.cloneNode());
// Enable recording on drop
startRecording();
}
async function startRecording() {
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
mediaRecorder = new MediaRecorder(stream);
mediaRecorder.ondataavailable = event => {
audioChunks.push(event.data);
};
mediaRecorder.start();
recordButton.textContent = "Stop Recording";
recordButton.onclick = function () {
mediaRecorder.stop();
recordButton.textContent = "Start Recording";
};
mediaRecorder.onstop = function () {
const audioURL = URL.createObjectURL(new Blob(audioChunks));
audioChunks = [];
};
}
});
</script>
<link rel="canonical" href="https://calculator.tools/app/peppa-pig-episode-creator-1494/">
<meta charset="utf-8">
</head>
<body>
<div id="main-container" class="container">
<h1 class="text-center">Peppa Pig Episode Creator</h1>
<div class="form-group">
<label for="episode-title">Episode Title:</label>
<input type="text" class="form-control" id="episode-title" placeholder="Enter episode title">
</div>
<div class="form-group">
<label for="scene">Scene:</label>
<input type="text" class="form-control" id="scene" placeholder="Describe the scene">
</div>
<div class="form-group">
<label for="dialogue">Dialogue:</label>
<input type="text" class="form-control" id="dialogue" placeholder="Enter dialogue">
</div>
<button id="add-episode" class="btn btn-custom">Add Episode</button>
<div id="character-area" class="text-center">
<h3>Drag Characters Here:</h3>
<img id="character-peppa" class="character" draggable="true" src="https://via.placeholder.com/50?text=P" alt="Peppa Pig"/>
<img id="character-george" class="character" draggable="true" src="https://via.placeholder.com/50?text=G" alt="George Pig"/>
</div>
<div class="voice-recording text-center">
<button id="record" class="btn btn-custom">Start Recording</button>
</div>
<h3 class="mt-4">Episode List</h3>
<ul id="episode-list" class="list-group"></ul>
</div>
<script type="text/javascript"> var localStoragePrefix = "ct-1494"; var lastSave = 0; function saveLocal(data) { if (Date.now() - lastSave < 1000) { return; } let cookie = localStoragePrefix + "=" + JSON.stringify(data) + "; path=" + window.location.pathname + "'; SameSite=Strict"; cookie += "; expires=" + new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 1000).toUTCString(); document.cookie = cookie; lastSave = Date.now(); } function loadLocal() { var cookiePrefix = localStoragePrefix + "="; var cookieStart = document.cookie.indexOf(cookiePrefix); if (cookieStart > -1) { let cookieEnd = document.cookie.indexOf(";", cookieStart); if (cookieEnd == -1) { cookieEnd = document.cookie.length; } var cookieData = document.cookie.substring(cookieStart + cookiePrefix.length, cookieEnd); return JSON.parse(cookieData); } } </script>
<script type="text/javascript"> window.addEventListener('load', function() { var observer = new MutationObserver(function() { window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); observer.observe(document.body, {attributes: true, childList: true, subtree: true}); window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); </script>
</body>
</html>
These are apps made by the community!
Calculator Tools allows you to instantly create and generate any simple one page web app for
free and immediately have it online to use and share. This means anything! Mini apps,
calculators, trackers, tools, games, puzzles, screensavers... anything you can think of that the
AI can handle.
The AI uses Javacript, HTML, and CSS programming to code your app up in moments. This currently
uses GPT-4 the latest and most powerful version of the OpenAI GPT language model.
Have you ever just wanted a simple app but didn't want to learn programming or pay someone to
make it for you? Calculator Tools is the solution! Just type in your prompt and the AI will
generate a simple app for you in seconds. You can then customize it to your liking and share it
with your friends.
AI has become so powerful it is that simple these days.
It uses GPT-4 which is the most powerful model for ChatGPT.
Calculator Tools does not remember things from prompt to prompt, each image is a unique image
that does not reference any of the images or prompts previously supplied.