Princess Star Butterfly's Magical Newspaper Maker
About this app
Create enchanting newspapers with Princess Star Butterfly using her magical wand. Add images and articles while creating fun graphics!
Princess Star Butterfly's Magical Newspaper Maker Princess Star Butterfly's Magical Newspaper Maker Add Image Add Article
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Princess Star Butterfly's Magical Newspaper Maker</title>
<meta name="description" content="Create enchanting newspapers with Princess Star Butterfly using her magical wand. Add images and articles while creating fun graphics!">
<meta name="keywords" content="Star Butterfly, magical newspaper, wand, images, articles, creative, scrap booking, fun">
<!-- Libraries -->
<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>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const newspaperDiv = document.getElementById('newspaper');
document.getElementById('addImageBtn').addEventListener('click', function(){
const imgUrl = document.getElementById('imageUrl').value;
if (imgUrl) {
const imgElement = `<img src="${imgUrl}" class="img-thumbnail" alt="Newspaper Image">`;
newspaperDiv.innerHTML += imgElement;
}
});
document.getElementById('generateBtn').addEventListener('click', function(){
const text = document.getElementById('articleText').value;
if (text) {
const textElement = `<p>${text}</p>`;
newspaperDiv.innerHTML += textElement;
}
});
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(to right, #f9e8ff, #b7c9f1);
color: #333;
font-family: 'Arial', sans-serif;
}
#main-container {
padding: 20px;
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0,0,0,0.2);
background-color: white;
margin-top: 20px;
}
#newspaper {
margin-top: 20px;
padding: 10px;
border: 1px solid #7862c5;
border-radius: 10px;
background: #fffaffe;
}
#imageUrl, #articleText {
border: 2px solid #7862c5;
}
#generateBtn, #addImageBtn {
background-color: #7862c5;
color: white;
border: none;
border-radius: 5px;
padding: 10px 15px;
cursor: pointer;
}
#generateBtn:hover, #addImageBtn:hover {
background-color: #66b3ff;
}
#magic-wand {
font-size: 4em;
color: #f5a623;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Princess Star Butterfly's Magical Newspaper Maker</h1>
<div class="text-center">
<i id="magic-wand" class="fas fa-magic"></i>
</div>
<input type="text" id="imageUrl" class="form-control" placeholder="Enter Image URL" />
<button id="addImageBtn" class="btn btn-primary mt-2">Add Image</button>
<textarea id="articleText" class="form-control mt-3" placeholder="Write Your Article Here..." rows="4"></textarea>
<button id="generateBtn" class="btn btn-success mt-2">Add Article</button>
<div id="newspaper" class="mt-4"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!