monkey hussin
This commit is contained in:
1 parent
cf79e3ceae
commit
40bff957ac
7 files changed
+342
-596
No files matched your search
@@ -55,7 +55,7 @@
|
||||
text-shadow: 0 0 10px var(--text-color), 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color);
|
||||
}
|
||||
to {
|
||||
text-shadow: 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color), 0 0 50px var(--text-color);
|
||||
text-shadow: 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color), 0 0 50px var (--text-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,12 +90,20 @@
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
.game-container.single-result {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.game {
|
||||
background-color: var(--card-bg);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
transition: transform 0.3s, background-color 0.3s;
|
||||
max-width: 500px; /* Limit the maximum width */
|
||||
max-height: 600px; /* Limit the maximum height */
|
||||
}
|
||||
|
||||
.game:hover {
|
||||
@@ -106,6 +114,8 @@
|
||||
.game img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-width: 500px; /* Limit the maximum width */
|
||||
max-height: 500px; /* Limit the maximum height */
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
@@ -756,125 +766,28 @@
|
||||
function filterGames() {
|
||||
const searchInput = document.getElementById('searchBar').value.toLowerCase();
|
||||
const games = document.querySelectorAll('.game');
|
||||
let hasResults = false;
|
||||
let visibleGames = 0;
|
||||
|
||||
games.forEach(game => {
|
||||
const title = game.querySelector('.game-title').textContent.toLowerCase();
|
||||
if (title.includes(searchInput)) {
|
||||
game.style.display = '';
|
||||
hasResults = true;
|
||||
visibleGames++;
|
||||
} else {
|
||||
game.style.display = 'none';
|
||||
}
|
||||
});
|
||||
|
||||
const gameContainer = document.querySelector('.game-container');
|
||||
if (visibleGames === 1) {
|
||||
gameContainer.classList.add('single-result');
|
||||
} else {
|
||||
gameContainer.classList.remove('single-result');
|
||||
}
|
||||
|
||||
const noResultsElement = document.getElementById('noResults');
|
||||
noResultsElement.style.display = hasResults ? 'none' : 'flex';
|
||||
}
|
||||
|
||||
// Utility function to set a cookie
|
||||
function setCookie(name, value, days) {
|
||||
const date = new Date();
|
||||
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
||||
document.cookie = `${name}=${value};expires=${date.toUTCString()};path=/`;
|
||||
}
|
||||
|
||||
// Utility function to get a cookie
|
||||
function getCookie(name) {
|
||||
const cookies = document.cookie.split(';');
|
||||
for (let i = 0; i < cookies.length; i++) {
|
||||
const cookie = cookies[i].trim();
|
||||
if (cookie.startsWith(name + '=')) {
|
||||
return cookie.substring(name.length + 1);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Apply dark or light mode based on cookie
|
||||
function applyMode(isDarkMode) {
|
||||
const pageTitle = document.getElementById('pageTitle');
|
||||
if (isDarkMode) {
|
||||
document.body.style.setProperty('--background-color', 'var(--background-color-dark)');
|
||||
document.body.style.setProperty('--text-color', 'var(--text-color-dark)');
|
||||
document.body.style.setProperty('--card-bg', 'var(--card-bg-dark)');
|
||||
document.body.style.setProperty('--card-hover-bg', 'var(--card-hover-bg-dark)');
|
||||
document.body.style.setProperty('--card-hover-text', 'var(--card-hover-text-dark)');
|
||||
pageTitle.style.textShadow = 'var(--title-shadow-dark)';
|
||||
document.getElementById('toggleMode').textContent = 'Switch to Light Mode';
|
||||
} else {
|
||||
document.body.style.setProperty('--background-color', 'var(--background-color-light)');
|
||||
document.body.style.setProperty('--text-color', 'var(--text-color-light)');
|
||||
document.body.style.setProperty('--card-bg', 'var(--card-bg-light)');
|
||||
document.body.style.setProperty('--card-hover-bg', 'var(--card-hover-bg-light)');
|
||||
document.body.style.setProperty('--card-hover-text', 'var(--card-hover-text-light)');
|
||||
pageTitle.style.textShadow = 'none'; // Remove glow in light mode
|
||||
document.getElementById('toggleMode').textContent = 'Switch to Dark Mode';
|
||||
}
|
||||
}
|
||||
|
||||
// Toggle mode
|
||||
const toggleModeButton = document.getElementById('toggleMode');
|
||||
toggleModeButton.addEventListener('click', () => {
|
||||
const isDarkMode = getCookie('darkMode') === 'true';
|
||||
setCookie('darkMode', !isDarkMode, 30); // Save preference for 30 days
|
||||
applyMode(!isDarkMode);
|
||||
});
|
||||
|
||||
// Apply saved mode on load
|
||||
const darkModeEnabled = getCookie('darkMode') === 'true';
|
||||
applyMode(darkModeEnabled);
|
||||
|
||||
// Check if CloakJS is enabled
|
||||
const cloakJSEnabled = getCookie('cloakJS') === 'true';
|
||||
|
||||
if (cloakJSEnabled) {
|
||||
// Initialize CloakJS
|
||||
Cloak.init({
|
||||
obfuscate: true, // Enable obfuscation
|
||||
hideElements: ['.game a'], // Obfuscate game links
|
||||
debug: false, // Enable debug mode for testing
|
||||
});
|
||||
|
||||
// Modify all game links to open in a new tab
|
||||
const gameLinks = document.querySelectorAll('.game a');
|
||||
gameLinks.forEach(link => {
|
||||
link.setAttribute('target', '_blank'); // Open in a new tab
|
||||
});
|
||||
}
|
||||
|
||||
// Check if Maturity Filter is enabled
|
||||
const maturityFilterEnabled = getCookie('maturityFilter') === 'true';
|
||||
|
||||
if (maturityFilterEnabled) {
|
||||
// Initialize CloakJS to hide mature games
|
||||
Cloak.init({
|
||||
hideElements: ['.game.mature'], // Hide elements with the "mature" class
|
||||
debug: false, // Disable debug mode in production
|
||||
});
|
||||
}
|
||||
|
||||
// Check if Text-to-Speech is enabled
|
||||
const textToSpeechEnabled = getCookie('textToSpeech') === 'true';
|
||||
|
||||
if (textToSpeechEnabled) {
|
||||
// Function to read text aloud
|
||||
function speakText(text) {
|
||||
const speech = new SpeechSynthesisUtterance(text);
|
||||
speech.lang = 'en-US'; // Set language
|
||||
speech.rate = 1; // Set speed (1 is normal)
|
||||
speech.pitch = 1; // Set pitch (1 is normal)
|
||||
window.speechSynthesis.speak(speech);
|
||||
}
|
||||
|
||||
// Example: Add TTS to game titles
|
||||
const gameTitles = document.querySelectorAll('.game-title');
|
||||
gameTitles.forEach(title => {
|
||||
title.addEventListener('click', () => {
|
||||
speakText(title.textContent);
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,243 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Calendar</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
background-color: #f4f4f9;
|
||||
}
|
||||
.calendar {
|
||||
width: 90%;
|
||||
max-width: 600px;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
overflow: hidden;
|
||||
}
|
||||
.calendar-header {
|
||||
background: #4CAF50;
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 15px 0;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
.calendar-days {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
background: #f4f4f9;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
.calendar-dates {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
padding: 10px;
|
||||
}
|
||||
.calendar-dates div {
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
margin: 5px;
|
||||
border-radius: 5px;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
.calendar-dates div:hover {
|
||||
background: #4CAF50;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
}
|
||||
.calendar-dates .today {
|
||||
background: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
.calendar-dates .event {
|
||||
background: #ff9800;
|
||||
color: white;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.calendar-dates .event span {
|
||||
font-size: 0.8em;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.calendar-dates .event:hover {
|
||||
background: #e68900;
|
||||
}
|
||||
.calendar-navigation {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
background: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
.calendar-navigation button {
|
||||
background: white;
|
||||
color: #4CAF50;
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
font-size: 1em;
|
||||
}
|
||||
.calendar-navigation button:hover {
|
||||
background: #e0e0e0;
|
||||
}
|
||||
.event-details {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 300px;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
|
||||
padding: 20px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.event-details.active {
|
||||
display: block;
|
||||
}
|
||||
.event-details h2 {
|
||||
margin-top: 0;
|
||||
color: #4CAF50;
|
||||
}
|
||||
.event-details p {
|
||||
border: none;
|
||||
padding: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.event-details .save-button {
|
||||
background: #4CAF50;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.event-details .save-button:hover {
|
||||
background: #45a049;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="calendar">
|
||||
<div class="calendar-navigation">
|
||||
<button id="prev-month">←</button>
|
||||
<div id="calendar-header">
|
||||
<!-- Month and Year will be dynamically inserted -->
|
||||
</div>
|
||||
<button id="next-month">→</button>
|
||||
</div>
|
||||
<div class="calendar-days">
|
||||
<div>Sun</div>
|
||||
<div>Mon</div>
|
||||
<div>Tue</div>
|
||||
<div>Wed</div>
|
||||
<div>Thu</div>
|
||||
<div>Fri</div>
|
||||
<div>Sat</div>
|
||||
</div>
|
||||
<div class="calendar-dates" id="calendar-dates">
|
||||
<!-- Dates will be dynamically inserted -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="event-details" id="event-details">
|
||||
<h2>Event Details</h2>
|
||||
<p id="event-date">Date: Not selected</p>
|
||||
<p id="event-description">No event selected.</p>
|
||||
<button id="close-details">Close</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const calendarHeader = document.getElementById('calendar-header');
|
||||
const calendarDates = document.getElementById('calendar-dates');
|
||||
const prevMonthButton = document.getElementById('prev-month');
|
||||
const nextMonthButton = document.getElementById('next-month');
|
||||
const eventDetails = document.getElementById('event-details');
|
||||
const eventDescription = document.getElementById('event-description');
|
||||
const closeDetailsButton = document.getElementById('close-details');
|
||||
const eventDate = document.getElementById('event-date');
|
||||
|
||||
const today = new Date();
|
||||
let currentMonth = today.getMonth();
|
||||
let currentYear = today.getFullYear();
|
||||
|
||||
const events = {
|
||||
'2023-10-15': 'Meeting with team',
|
||||
'2023-10-20': 'Project deadline',
|
||||
'2025-04-03': 'Birthday party',
|
||||
'2025-05-04': 'Gay Day'
|
||||
};
|
||||
|
||||
function renderCalendar(month, year) {
|
||||
const firstDay = new Date(year, month, 1).getDay();
|
||||
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
||||
|
||||
calendarHeader.textContent = `${new Date(year, month).toLocaleString('default', { month: 'long' })} ${year}`;
|
||||
calendarDates.innerHTML = '<div></div>';
|
||||
|
||||
for (let i = 0; i < firstDay; i++) {
|
||||
calendarDates.innerHTML += '<div></div>';
|
||||
}
|
||||
|
||||
for (let day = 1; day <= daysInMonth; day++) {
|
||||
const dateKey = `${year}-${String(month + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
||||
const isToday = day === today.getDate() && month === today.getMonth() && year === today.getFullYear();
|
||||
const hasEvent = events[dateKey];
|
||||
|
||||
calendarDates.innerHTML += `
|
||||
<div class="${isToday ? 'today' : ''} ${hasEvent ? 'event' : ''}"
|
||||
onclick="${hasEvent ? `showEventDetails('${dateKey}')` : ''}">
|
||||
${day}
|
||||
${hasEvent ? `<span>${hasEvent}</span>` : ''}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
function showEventDetails(dateKey) {
|
||||
const eventText = events[dateKey] || 'No event selected.';
|
||||
eventDate.textContent = `Date: ${dateKey}`;
|
||||
eventDescription.textContent = eventText;
|
||||
eventDetails.classList.add('active'); // Show sidebar
|
||||
}
|
||||
|
||||
closeDetailsButton.addEventListener('click', () => {
|
||||
eventDetails.classList.remove('active'); // Hide sidebar
|
||||
});
|
||||
|
||||
prevMonthButton.addEventListener('click', () => {
|
||||
currentMonth--;
|
||||
if (currentMonth < 0) {
|
||||
currentMonth = 11;
|
||||
currentYear--;
|
||||
}
|
||||
renderCalendar(currentMonth, currentYear);
|
||||
});
|
||||
|
||||
nextMonthButton.addEventListener('click', () => {
|
||||
currentMonth++;
|
||||
if (currentMonth > 11) {
|
||||
currentMonth = 0;
|
||||
currentYear++;
|
||||
}
|
||||
renderCalendar(currentMonth, currentYear);
|
||||
});
|
||||
|
||||
renderCalendar(currentMonth, currentYear);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,262 +0,0 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
/* Styling the main container */
|
||||
.container {
|
||||
width: 80%;
|
||||
margin: auto;
|
||||
margin-top: 2rem;
|
||||
letter-spacing: 0.5px;
|
||||
height: 80%;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 50px;
|
||||
vertical-align: middle;
|
||||
border-style: none;
|
||||
border-radius: 100%;
|
||||
}
|
||||
/* Styling the msg-header container */
|
||||
.msg-header {
|
||||
border: 1px solid #ccc;
|
||||
width: 100%;
|
||||
height: 10%;
|
||||
border-bottom: none;
|
||||
display: inline-block;
|
||||
background-color: #efefef;
|
||||
margin: 0;
|
||||
border-top-left-radius: 20px;
|
||||
border-top-right-radius: 20px;
|
||||
}
|
||||
/* Styling the profile picture */
|
||||
.msgimg {
|
||||
margin-left: 2%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.container1 {
|
||||
width: 270px;
|
||||
height: auto;
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* styling user-name */
|
||||
.active {
|
||||
width: 150px;
|
||||
float: left;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
margin: 0 0 0 5px;
|
||||
height: 10%;
|
||||
|
||||
}
|
||||
/* Styling the inbox */
|
||||
.chat-page {
|
||||
padding: 0 0 50px 0;
|
||||
}
|
||||
|
||||
.msg-inbox {
|
||||
border: 1px solid #ccc;
|
||||
overflow: hidden;
|
||||
border-bottom-left-radius: 20px;
|
||||
border-bottom-right-radius: 20px;
|
||||
}
|
||||
|
||||
|
||||
.chats {
|
||||
padding: 30px 15px 0 25px;
|
||||
}
|
||||
|
||||
.msg-page {
|
||||
max-height: 500px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/* Styling the msg-bottom container */
|
||||
.msg-bottom {
|
||||
border-top: 1px solid #ccc;
|
||||
position: relative;
|
||||
height: 11%;
|
||||
background-color: rgb(239 239 239);
|
||||
}
|
||||
/* Styling the input field */
|
||||
.input-group {
|
||||
float: right;
|
||||
margin-top: 13px;
|
||||
margin-right: 20px;
|
||||
outline: none !important;
|
||||
border-radius: 20px;
|
||||
width: 61% !important;
|
||||
background-color: #fff;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.input-group>.form-control {
|
||||
position: relative;
|
||||
flex: 1 1 auto;
|
||||
width: 1%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
border: none !important;
|
||||
border-radius: 20px !important;
|
||||
display: block;
|
||||
height: calc(2.25rem + 2px);
|
||||
padding: 0.375rem 0.75rem;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
color: #495057;
|
||||
background-color: #fff;
|
||||
background-clip: padding-box;
|
||||
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
|
||||
}
|
||||
|
||||
.input-group-text {
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0.375rem 0.75rem;
|
||||
margin-bottom: 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: b;
|
||||
line-height: 1.5;
|
||||
color: #495057;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
background-color: #e9ecef;
|
||||
border: 1px solid #ced4da;
|
||||
border-radius: 0.25rem;
|
||||
font-weight: bold !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
outline: none;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.send-icon {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
/* Styling the avatar */
|
||||
received-chats-img {
|
||||
display: inline-block;
|
||||
width: 50px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.received-msg {
|
||||
display: inline-block;
|
||||
padding: 0 0 0 10px;
|
||||
vertical-align: top;
|
||||
width: 92%;
|
||||
}
|
||||
.received-msg-inbox {
|
||||
width: 57%;
|
||||
}
|
||||
|
||||
.received-msg-inbox p {
|
||||
background: #efefef none repeat scroll 0 0;
|
||||
border-radius: 10px;
|
||||
color: #646464;
|
||||
font-size: 14px;
|
||||
margin-left: 1rem;
|
||||
padding: 1rem;
|
||||
width: 100%;
|
||||
box-shadow: rgb(0 0 0 / 25%) 0px 5px 5px 2px;
|
||||
}
|
||||
p {
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
/* Styling the msg-sent time */
|
||||
.time {
|
||||
color: #777;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
margin: 8px 0 0;
|
||||
}
|
||||
.outgoing-chats {
|
||||
overflow: hidden;
|
||||
margin: 26px 20px;
|
||||
}
|
||||
|
||||
.outgoing-chats-msg p {
|
||||
background-color: #3a12ff;
|
||||
background-image: linear-gradient(45deg, #ee087f 0%, #DD2A7B 25%, #9858ac 50%, #8134AF 75%, #515BD4 100%);
|
||||
color: #fff;
|
||||
border-radius: 10px;
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
padding: 5px 10px 5px 12px;
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
box-shadow: rgb(0 0 0 / 25%) 0px 2px 5px 2px;
|
||||
}
|
||||
.outgoing-chats-msg {
|
||||
float: right;
|
||||
width: 46%;
|
||||
}
|
||||
|
||||
/* Styling the avatar */
|
||||
.outgoing-chats-img {
|
||||
display: inline-block;
|
||||
width: 50px;
|
||||
float: right;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
@media only screen and (max-device-width: 850px) {
|
||||
*,
|
||||
.time {
|
||||
font-size: 28px;
|
||||
}
|
||||
img {
|
||||
width: 65px;
|
||||
}
|
||||
.msg-header {
|
||||
height: 5%;
|
||||
}
|
||||
.msg-page {
|
||||
max-height: none;
|
||||
}
|
||||
.received-msg-inbox p {
|
||||
font-size: 28px;
|
||||
}
|
||||
.outgoing-chats-msg p {
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-device-width: 450px) {
|
||||
*,
|
||||
.time {
|
||||
font-size: 28px;
|
||||
}
|
||||
img {
|
||||
width: 65px;
|
||||
}
|
||||
.msg-header {
|
||||
height: 5%;
|
||||
}
|
||||
.msg-page {
|
||||
max-height: none;
|
||||
}
|
||||
.received-msg-inbox p {
|
||||
font-size: 28px;
|
||||
}
|
||||
.outgoing-chats-msg p {
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Chat Box UI Design</title>
|
||||
<link rel="stylesheet" href="styles.css" />
|
||||
|
||||
<!-- Import this CDN to use icons -->
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"
|
||||
/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Main container -->
|
||||
<div class="container">
|
||||
<!-- msg-header section starts -->
|
||||
<div class="msg-header">
|
||||
<div class="container1">
|
||||
<img src="user1.png" class="msgimg" />
|
||||
<div class="active">
|
||||
<p>User name</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- msg-header section ends -->
|
||||
|
||||
<!-- Chat inbox -->
|
||||
<div class="chat-page">
|
||||
<div class="msg-inbox">
|
||||
<div class="chats">
|
||||
<!-- Message container -->
|
||||
<div class="msg-page">
|
||||
<!-- Incoming messages -->
|
||||
|
||||
<div class="received-chats">
|
||||
<div class="received-chats-img">
|
||||
<img src="user2.png" />
|
||||
</div>
|
||||
<div class="received-msg">
|
||||
<div class="received-msg-inbox">
|
||||
<p>
|
||||
Hi !! This is message from Riya . Lorem ipsum, dolor sit
|
||||
amet consectetur adipisicing elit. Non quas nemo eum,
|
||||
earum sunt, nobis similique quisquam eveniet pariatur
|
||||
commodi modi voluptatibus iusto omnis harum illum iste
|
||||
distinctio expedita illo!
|
||||
</p>
|
||||
<span class="time">18:06 PM | July 24</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Outgoing messages -->
|
||||
<div class="outgoing-chats">
|
||||
<div class="outgoing-chats-img">
|
||||
<img src="user1.png" />
|
||||
</div>
|
||||
<div class="outgoing-msg">
|
||||
<div class="outgoing-chats-msg">
|
||||
<p class="multi-msg">
|
||||
Hi riya , Lorem ipsum dolor sit amet consectetur
|
||||
adipisicing elit. Illo nobis deleniti earum magni
|
||||
recusandae assumenda.
|
||||
</p>
|
||||
<p class="multi-msg">
|
||||
Lorem ipsum dolor sit amet consectetur.
|
||||
</p>
|
||||
|
||||
<span class="time">18:30 PM | July 24</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="received-chats">
|
||||
<div class="received-chats-img">
|
||||
<img src="user2.png" />
|
||||
</div>
|
||||
<div class="received-msg">
|
||||
<div class="received-msg-inbox">
|
||||
<p class="single-msg">
|
||||
Hi !! This is message from John Lewis. Lorem ipsum, dolor
|
||||
sit amet consectetur adipisicing elit. iste distinctio
|
||||
expedita illo!
|
||||
</p>
|
||||
<span class="time">18:31 PM | July 24</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outgoing-chats">
|
||||
<div class="outgoing-chats-img">
|
||||
<img src="user1.png" />
|
||||
</div>
|
||||
<div class="outgoing-msg">
|
||||
<div class="outgoing-chats-msg">
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit.
|
||||
Velit, sequi.
|
||||
</p>
|
||||
|
||||
<span class="time">18:34 PM | July 24</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- msg-bottom section -->
|
||||
|
||||
<div class="msg-bottom">
|
||||
<div class="input-group">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
placeholder="Write message..."
|
||||
/>
|
||||
|
||||
<span class="input-group-text send-icon">
|
||||
<i class="bi bi-send"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -172,4 +172,76 @@ body {
|
||||
.parallax {
|
||||
background-attachment: scroll;
|
||||
}
|
||||
}
|
||||
}
|
||||
:root {
|
||||
--background-color-dark: #0d0d0d;
|
||||
--text-color-dark: #00ffcc;
|
||||
--button-bg-dark: #1a1a1a;
|
||||
--button-hover-bg-dark: #00ffcc;
|
||||
--button-hover-text-dark: #0d0d0d;
|
||||
|
||||
--background-color-light: #ffffff;
|
||||
--text-color-light: #333333;
|
||||
--button-bg-light: #f0f0f0;
|
||||
--button-hover-bg-light: #333333;
|
||||
--button-hover-text-light: #ffffff;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
transition: background-color 0.3s, color 0.3s;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
text-transform: uppercase;
|
||||
animation: glow 1.5s infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes glow {
|
||||
from {
|
||||
text-shadow: 0 0 10px var(--text-color), 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color);
|
||||
}
|
||||
to {
|
||||
text-shadow: 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color), 0 0 50px var(--text-color);
|
||||
}
|
||||
}
|
||||
|
||||
.button-container {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.button {
|
||||
padding: 15px 30px;
|
||||
font-size: 1.2rem;
|
||||
font-family: 'Press Start 2P', cursive;
|
||||
color: var(--text-color);
|
||||
background-color: var(--button-bg);
|
||||
border: 2px solid var(--text-color);
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
text-transform: uppercase;
|
||||
transition: background-color 0.3s, color 0.3s, transform 0.2s;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background-color: var(--button-hover-bg);
|
||||
color: var(--button-hover-text);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.button:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
+2
-76
@@ -4,88 +4,14 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Moon Gaming</title>
|
||||
<link rel="stylesheet" href="/index.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Press+Start+2P&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer">
|
||||
<style>
|
||||
:root {
|
||||
--background-color-dark: #0d0d0d;
|
||||
--text-color-dark: #00ffcc;
|
||||
--button-bg-dark: #1a1a1a;
|
||||
--button-hover-bg-dark: #00ffcc;
|
||||
--button-hover-text-dark: #0d0d0d;
|
||||
|
||||
--background-color-light: #ffffff;
|
||||
--text-color-light: #333333;
|
||||
--button-bg-light: #f0f0f0;
|
||||
--button-hover-bg-light: #333333;
|
||||
--button-hover-text-light: #ffffff;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
transition: background-color 0.3s, color 0.3s;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
text-transform: uppercase;
|
||||
animation: glow 1.5s infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes glow {
|
||||
from {
|
||||
text-shadow: 0 0 10px var(--text-color), 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color);
|
||||
}
|
||||
to {
|
||||
text-shadow: 0 0 20px var(--text-color), 0 0 30px var(--text-color), 0 0 40px var(--text-color), 0 0 50px var(--text-color);
|
||||
}
|
||||
}
|
||||
|
||||
.button-container {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.button {
|
||||
padding: 15px 30px;
|
||||
font-size: 1.2rem;
|
||||
font-family: 'Press Start 2P', cursive;
|
||||
color: var(--text-color);
|
||||
background-color: var(--button-bg);
|
||||
border: 2px solid var(--text-color);
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
text-transform: uppercase;
|
||||
transition: background-color 0.3s, color 0.3s, transform 0.2s;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background-color: var(--button-hover-bg);
|
||||
color: var(--button-hover-text);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.button:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="clock" style="font-size: 1.5rem; margin-top: 10px; font-family: 'Orbitron', sans-serif; color: var(--text-color); display: none;"></div>
|
||||
<h1>Moon Gaming</h1>
|
||||
<div class="button-container">
|
||||
<button class="button" onclick="location.href='setting.html'">Settings</button>
|
||||
<button class="button" onclick="location.href='setting.html'">Settings ⚙️</button>
|
||||
<button class="button" onclick="location.href='./WebGames-master/WebGames-master/index.html'">Games</button>
|
||||
</div>
|
||||
|
||||
|
||||
+4
-22
@@ -99,6 +99,10 @@
|
||||
<span>Clear Cookies</span>
|
||||
<button id="clearCookies">Clear</button>
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<span>Save Search Input</span>
|
||||
<button id="toggleSaveSearch">Enable</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal for confirmation -->
|
||||
@@ -273,27 +277,6 @@
|
||||
// Apply saved Text-to-Speech preference on load
|
||||
applyTextToSpeechSetting(textToSpeechEnabled);
|
||||
|
||||
// Date and Time Toggle
|
||||
const toggleDateTimeButton = document.getElementById('toggleDateTime');
|
||||
const dateTimeEnabled = getCookie('dateTime') === 'true';
|
||||
|
||||
function applyDateTimeSetting(enabled) {
|
||||
if (enabled) {
|
||||
toggleDateTimeButton.textContent = 'Disable';
|
||||
} else {
|
||||
toggleDateTimeButton.textContent = 'Enable';
|
||||
}
|
||||
}
|
||||
|
||||
toggleDateTimeButton.addEventListener('click', () => {
|
||||
const isDateTimeEnabled = getCookie('dateTime') === 'true';
|
||||
setCookie('dateTime', !isDateTimeEnabled, 30); // Save preference for 30 days
|
||||
applyDateTimeSetting(!isDateTimeEnabled);
|
||||
});
|
||||
|
||||
// Apply saved Date and Time preference on load
|
||||
applyDateTimeSetting(dateTimeEnabled);
|
||||
|
||||
// Regional Settings
|
||||
const regionSelect = document.getElementById('regionSelect');
|
||||
const savedRegion = getCookie('region') || 'us'; // Default to 'us'
|
||||
@@ -336,7 +319,6 @@
|
||||
applyFPSCounterSetting(false); // Default: FPS Counter disabled
|
||||
applyMaturityFilterSetting(false); // Default: Maturity Filter disabled
|
||||
applyTextToSpeechSetting(false); // Default: Text-to-Speech disabled
|
||||
applyDateTimeSetting(false); // Default: Date and Time disabled
|
||||
|
||||
alert('Settings have been reset to default!');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user