Clever Calc Portal - Advanced Math Hub
About this app
A premium, full-screen portal for the Clever Calculator tool. Access advanced calculations and math tools in a beautiful, responsive interface.
Clever Calc Portal - Advanced Math Hub Clever Calc Portal Loading Clever Tools... Source: calculator.tools/app/clever/ Secure Proxy Environment Portal Settings Proxy Opacity Keep Screen Awake This portal serves as a wrapper for educational calculators. All calculations are performed on the target host.
Put this on your site
Source
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>Clever Calc Portal - Advanced Math Hub</title>
<meta name="description" content="A premium, full-screen portal for the Clever Calculator tool. Access advanced calculations and math tools in a beautiful, responsive interface.">
<meta name="keywords" content="calculator, math tools, clever calculator, online calculator, math portal, productivity app">
<!-- 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.bundle.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const iframe = document.getElementById('app-frame');
const loader = document.getElementById('loader');
const url = "https://calculator.tools/app/clever/";
// Initialize the iframe source
iframe.src = url;
// Hide loader when iframe finishes loading
iframe.onload = function() {
loader.style.display = 'none';
};
// Control buttons
document.getElementById('refresh-btn').addEventListener('click', function() {
loader.style.display = 'flex';
iframe.src = url;
});
document.getElementById('fullscreen-btn').addEventListener('click', function() {
if (!document.fullscreenElement) {
document.documentElement.requestFullscreen();
this.innerHTML = '<i class="fas fa-compress"></i>';
} else {
if (document.exitFullscreen) {
document.exitFullscreen();
this.innerHTML = '<i class="fas fa-expand"></i>';
}
}
});
// Theme toggle
const themeToggle = document.getElementById('theme-toggle');
themeToggle.addEventListener('click', () => {
const body = document.body;
if (body.getAttribute('data-bs-theme') === 'dark') {
body.setAttribute('data-bs-theme', 'light');
themeToggle.innerHTML = '<i class="fas fa-moon"></i>';
} else {
body.setAttribute('data-bs-theme', 'dark');
themeToggle.innerHTML = '<i class="fas fa-sun"></i>';
}
});
// Error handling for frame blocks
window.addEventListener('message', function(e) {
// Potential for cross-origin communication if the child supports it
}, false);
});
} catch (error) {
console.error("App initialization failed:", error);
}
</script>
<style>
/* Mobile-first base */
*, *::before, *::after { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
max-width: 100%;
overflow: hidden;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8f9fa;
transition: background-color 0.3s ease;
}
[data-bs-theme='dark'] body {
background-color: #212529;
}
#main-container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
max-width: 100%;
padding: 0;
}
/* Header Styling */
.app-navbar {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 0.5rem 1rem;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
z-index: 1000;
}
.app-title {
font-weight: 700;
font-size: 1.2rem;
display: flex;
align-items: center;
gap: 10px;
text-transform: uppercase;
letter-spacing: 1px;
}
.controls {
display: flex;
gap: 8px;
}
.btn-nav {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 40px;
height: 40px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.btn-nav:hover {
background: rgba(255, 255, 255, 0.4);
transform: translateY(-2px);
}
/* Main Frame Area */
.frame-wrapper {
flex-grow: 1;
position: relative;
width: 100%;
overflow: hidden;
}
#app-frame {
width: 100%;
height: 100%;
border: none;
display: block;
}
/* Loader Animation */
#loader {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255,255,255,0.9);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 500;
}
[data-bs-theme='dark'] #loader {
background: rgba(33,37,41,0.9);
}
.spinner {
width: 50px;
height: 50px;
border: 5px solid #f3f3f3;
border-top: 5px solid #764ba2;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loader-text {
margin-top: 15px;
font-weight: 600;
color: #764ba2;
}
/* Tooltip custom style */
.nav-tip {
display: none;
}
@media (min-width: 768px) {
.nav-tip {
display: inline;
margin-left: 5px;
font-size: 0.8rem;
opacity: 0.9;
}
}
/* Bottom Status Bar */
.status-bar {
background: #eee;
font-size: 0.75rem;
padding: 2px 10px;
display: flex;
justify-content: space-between;
color: #666;
}
[data-bs-theme='dark'] .status-bar {
background: #1a1d20;
color: #aaa;
}
/* Fallback link */
.fallback-container {
padding: 2rem;
text-align: center;
display: none;
}
</style>
</head>
<body data-bs-theme="light">
<div id="main-container">
<header class="app-navbar">
<div class="app-title">
<i class="fas fa-calculator"></i>
<span>Clever Calc Portal</span>
</div>
<div class="controls">
<button class="btn-nav" id="theme-toggle" title="Toggle Dark Mode">
<i class="fas fa-moon"></i>
</button>
<button class="btn-nav" id="refresh-btn" title="Reload Calculator">
<i class="fas fa-sync-alt"></i>
</button>
<button class="btn-nav" id="fullscreen-btn" title="Toggle Fullscreen">
<i class="fas fa-expand"></i>
</button>
<a href="https://calculator.tools/app/clever/" target="_blank" class="btn-nav text-decoration-none" title="Open in New Tab">
<i class="fas fa-external-link-alt"></i>
</a>
</div>
</header>
<main class="frame-wrapper">
<div id="loader">
<div class="spinner"></div>
<div class="loader-text">Loading Clever Tools...</div>
</div>
<!--
Note: If the source site has 'X-Frame-Options: DENY' or 'SAMEORIGIN',
this iframe will not load due to security restrictions of the source.
Providing the external link button as a fallback.
-->
<iframe
id="app-frame"
title="Clever Calculator Application"
allow="clipboard-write; gamepad; geolocation; microphone; camera"
sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-scripts allow-same-origin"
></iframe>
</main>
<footer class="status-bar">
<div>Source: calculator.tools/app/clever/</div>
<div><i class="fas fa-shield-alt"></i> Secure Proxy Environment</div>
</footer>
</div>
<!-- Offcanvas Settings (Optional extra complexity) -->
<div class="offcanvas offcanvas-start" tabindex="-1" id="settingsCanvas" aria-labelledby="settingsCanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="settingsCanvasLabel">Portal Settings</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<div class="mb-3">
<label class="form-label">Proxy Opacity</label>
<input type="range" class="form-range" id="opacityRange" min="50" max="100" value="100">
</div>
<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" id="keepAwake">
<label class="form-check-label" for="keepAwake">Keep Screen Awake</label>
</div>
<hr>
<p class="text-muted small">This portal serves as a wrapper for educational calculators. All calculations are performed on the target host.</p>
</div>
</div>
<script>
// Added complexity for range input
$('#opacityRange').on('input', function() {
$('#app-frame').css('opacity', $(this).val() / 100);
});
</script>
</body>
</html>
NEW APPS
These are apps made by the community!