mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-30 01:29:07 -05:00
Merge pull request #1172 from harvard-edge/fix-google-login-iframe
fixed google auth allow iframe, slow index.html
This commit is contained in:
@@ -373,7 +373,7 @@
|
||||
<span style="font-size:0.7em; opacity:0.8;">UPDATES</span>
|
||||
</div>
|
||||
<ul class="feed-list" id="news-list">
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
@@ -408,7 +408,7 @@
|
||||
}
|
||||
@keyframes bounce {
|
||||
0%, 20%, 50%, 80%, 100% {transform: rotate(45deg) translate(0, 0);}
|
||||
40% {transform: rotate(45deg) translate(-5px, -5px);}
|
||||
40% {transform: rotate(45deg) translate(-5px, -5px);}
|
||||
60% {transform: rotate(45deg) translate(-3px, -3px);}
|
||||
}
|
||||
</style>
|
||||
@@ -532,14 +532,14 @@
|
||||
camera.position.x = Math.sin(flyOverY * 0.2) * 2;
|
||||
camera.position.y = 5 + Math.cos(flyOverY * 0.12) * 1;
|
||||
camera.lookAt(0, 0, camera.position.z - 50);
|
||||
|
||||
|
||||
// Ensure camera matrices are updated before projection in updateMarkers
|
||||
camera.updateMatrixWorld();
|
||||
|
||||
// --- ArXiv Paper Spawning Logic ---
|
||||
const cameraZ = camera.position.z;
|
||||
const lastMilestoneWorldZ = lastZ * MARKER_SCALE;
|
||||
|
||||
|
||||
if (spawningPapers && lastMilestoneWorldZ > cameraZ - 300) {
|
||||
const paper = arxiv.papers.shift();
|
||||
if (paper) {
|
||||
@@ -631,7 +631,7 @@
|
||||
el.style.opacity = opacity;
|
||||
el.style.left = `${screenX}px`;
|
||||
el.style.top = `${screenY}px`;
|
||||
|
||||
|
||||
// Hide if too far behind or ahead in projection
|
||||
if (tempV.z < -1 || tempV.z > 1) el.style.opacity = 0;
|
||||
});
|
||||
@@ -854,6 +854,7 @@
|
||||
</script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
console.log("Welcome to v1.2, Kai says HI!")
|
||||
const processList = document.querySelector('#process-card .process-list');
|
||||
if (processList) {
|
||||
processList.addEventListener('click', (e) => {
|
||||
|
||||
Reference in New Issue
Block a user