Skip to content
Merged
21 changes: 10 additions & 11 deletions static/scripts/frontpage3d.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var homeY = 0;

var renderer = new THREE.WebGLRenderer();
var w = $("#workarea").width();//-20;
var h = $("#workarea").height();//-20;
var h = $("#workarea").height()- 10;//-20;
renderer.setSize( w, h );
//console.log("w="+w+", h="+h);

Expand Down Expand Up @@ -245,26 +245,25 @@ animate();
window.addEventListener( 'resize', onWindowResize, false );

function onWindowResize(){

//w=window.innerWidth;
//h=window.innerHeight;
//console.log("wr="+w+", hr="+h);
we = $("#workarea").width(); //-20;
he = $("#workarea").height(); //-20;
// Make canvas tiny so the container can shrink.
renderer.setSize( 10, 10 );
// Get new size of fluid container.
we = $("#workarea").width();
// Can't find the source of this 10px offset.
// Needed to stop unneccesary scrool bar on main window.
he = $("#workarea").height() - 10;
//console.log("we="+we+", he="+he);

//cameraO.aspect = window.innerWidth / window.innerHeight;
cameraO.left = we/-2*scale;
cameraO.right = we/2*scale;
cameraO.top = he/2*scale;
cameraO.bottom = he/-2*scale;
cameraO.updateProjectionMatrix();
//cameraP.aspect = window.innerWidth / window.innerHeight;

cameraP.aspect = we / he;
cameraP.updateProjectionMatrix();

// Finally resize the canvas.
renderer.setSize( we, he );

}


Expand Down
125 changes: 62 additions & 63 deletions static/styles/base.css
Original file line number Diff line number Diff line change
@@ -1,101 +1,100 @@
.modalxlg > .modal-dialog {
max-width: 90% !important;
width: 90% !important;
}
.modalxlg>.modal-dialog {
max-width: 90% !important;
width: 90% !important;
}

.disabler {
}

.alert {
margin-bottom: 1px;
height: 30px;
line-height:30px;
padding:0px 15px;
line-height: 30px;
padding: 0px 15px;
}


#contentModalText {
max-height: 70vh;
overflow-y: auto;
max-height: 70vh;
overflow-y: auto;
}

#fpCircle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 150px;
height: 150px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 150px;
height: 150px;
}

#gcCircle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 150px;
height: 150px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 150px;
height: 150px;
}

#notificationCircle {
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%,-30%);
width: 80px;
height: 80px;
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%, -30%);
width: 80px;
height: 80px;
}

#notificationModal {
z-index: 1051;
z-index: 1051;
}


.loader {
width: calc(100% - 0px);
height: calc(100% - 0px);
border: 8px solid #162534;
border-top: 8px solid #09f;
border-radius: 50%;
animation: rotate 5s linear infinite;
width: calc(100% - 0px);
height: calc(100% - 0px);
border: 8px solid #162534;
border-top: 8px solid #09f;
border-radius: 50%;
animation: rotate 5s linear infinite;
}

@keyframes rotate {
100% {transform: rotate(360deg);}
}

#editor {
margin: 0;
position: relative;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 60vh;
}
#editor {
margin: 0;
position: relative;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 60vh;
}

.alert-circle.alert-sm {
width: 16px;
height: 16px;
padding: 6px 0px;
border-radius: 8px;
font-size: 8px;
text-align: center;
width: 16px;
height: 16px;
padding: 6px 0px;
border-radius: 8px;
font-size: 8px;
text-align: center;
}

.dot {
height: 15px;
width: 15px;
background-color: red;
border-radius: 50%;
display: inline-block;
}
height: 15px;
width: 15px;
background-color: red;
border-radius: 50%;
display: inline-block;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
/* display: none; <- Crashes Chrome on hover */
-webkit-appearance: none;
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
/* display: none; <- Crashes Chrome on hover */
-webkit-appearance: none;
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
-moz-appearance:textfield; /* Firefox */
}
-moz-appearance: textfield; /* Firefox */
}
Loading