add some swanky css

This commit is contained in:
Eric Van Albert
2017-06-24 01:40:49 -04:00
parent 292b318afb
commit bdec717d04
6 changed files with 224 additions and 28 deletions

View File

@@ -45,7 +45,7 @@ function preview_init() {
// renderer
renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setClearColor( 0xFFFFFF );
renderer.setClearColor( 0x333333 );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( container.offsetWidth, container.offsetHeight );

View File

@@ -47,6 +47,7 @@ function populate_outlines_wardings() {
function generate_key() {
$("#generated_key").hide();
$("#generate_button").prop("disabled", true);
$("#description").hide();
$("#please_wait").show();
get_data = $.param({
"key": $("#key_type").val(),
@@ -81,10 +82,25 @@ function generate_key() {
xhr.send();
}
function handle_hash() {
hash = window.location.hash;
if(hash == "#about") {
$("#generator").hide();
$("#about").show();
$("#about_link").hide();
} else {
$("#about").hide();
$("#generator").show();
$("#about_link").show();
}
}
$(document).ready(function() {
$("#key_type").on("change", populate_outlines_wardings);
$("#key_form").submit(function(e) {generate_key(); e.preventDefault();});
$(window).on('hashchange', handle_hash);
populate_types();
preview_init();
handle_hash();
});