-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Description
<title>Dhiab – Personality Building</title>
<style>
body {
font-family: 'Georgia', serif;
background-color: #f5f3e7;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#book {
width: 600px;
height: 400px;
background-color: #fff8dc;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
padding: 30px;
position: relative;
}
h1 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
h2 {
text-align: center;
}
p {
text-align: justify;
line-height: 1.6;
}
button {
position: absolute;
top: 50%;
transform: translateY(-50%);
padding: 10px 20px;
cursor: pointer;
font-weight: bold;
}
#prev { left: -80px; }
#next { right: -80px; }
</style>
Dhiab – Personality Building
<button id="prev" onclick="prevPage()">Previous</button>
<button id="next" onclick="nextPage()">Next</button>
<div id="pageContent">
<h2>Page 1</h2>
<p>You must say exactly what is required — don’t add and don’t reduce. If you add, no one will value you more, and if you reduce, you lose your worth.</p>
</div>
</div>
<script>
const pages = [
{
title: "Page 1",
text: "You must say exactly what is required — don’t add and don’t reduce. If you add, no one will value you more, and if you reduce, you lose your worth."
},
{
title: "Page 2",
text: "Ahmed is an example of positive anti-bullying, because hitting, insulting, and slandering women has nothing to do with real strength."
},
{
title: "Page 3",
text: "Masturbation is poison that brings harm, and you should never do it again."
}
];
let currentPage = 0;
function showPage(index) {
const page = pages[index];
document.getElementById('pageContent').innerHTML =
`<h2>${page.title}</h2><p>${page.text}</p>`;
}
function nextPage() {
if (currentPage < pages.length - 1) {
currentPage++;
showPage(currentPage);
}
}
function prevPage() {
if (currentPage > 0) {
currentPage--;
showPage(currentPage);
}
}
</script>
Metadata
Metadata
Assignees
Labels
No labels