VideoStudy/VideoStudy.App/wwwroot/index.html
Ricardo Carneiro ad5312ba10 debug: habilita DevTools e captura erros JS no Photino
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 15:39:06 -03:00

42 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>VideoStudy</title>
<base href="/" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="_content/VideoStudy.UI/app.css" />
</head>
<body>
<div id="app">
<div style="position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;">
<div class="spinner-border text-primary" role="status"></div>
<div style="margin-top:10px;color:#666;">Carregando VideoStudy...</div>
</div>
</div>
<div id="blazor-error-ui" style="display:none;">
Ocorreu um erro inesperado.
<a href="" class="reload">Recarregar</a>
<a class="dismiss">🗙</a>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script>
window.onerror = function(msg, url, line, col, error) {
document.getElementById('app').innerHTML =
'<div style="color:red;padding:2rem;font-family:monospace;">' +
'<b>Erro JS:</b><br>' + msg + '<br>' + url + ':' + line + '</div>';
};
window.addEventListener('unhandledrejection', function(e) {
document.getElementById('app').innerHTML =
'<div style="color:red;padding:2rem;font-family:monospace;">' +
'<b>Promise rejeitada:</b><br>' + (e.reason?.message || e.reason) + '</div>';
});
</script>
<script src="_framework/blazor.photino.js"></script>
</body>
</html>