From 4b570a4ec1e9bca2e362c604392402c382878db6 Mon Sep 17 00:00:00 2001 From: Lucas <18538046+TeaWithLucas@users.noreply.github.com> Date: Tue, 25 Jun 2019 15:19:51 +0100 Subject: [PATCH] Character Name Update Added the function to correct get characters name. Implemented tidying of inserted buttons Minifiying Code --- .gitignore | 2 ++ herosaver.js | 49 +++++++++++++++++++++++++++++++++++------------- herosaver.min.js | 2 +- 3 files changed, 39 insertions(+), 14 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..00f4fd8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.vs/slnx.sqlite diff --git a/herosaver.js b/herosaver.js index 61314c1..6f897b8 100644 --- a/herosaver.js +++ b/herosaver.js @@ -184,12 +184,19 @@ function init() { } - var character_area = jQuery(".characterArea"); - //var stl = jQuery("").css({"margin-left": "20px", "font-size": "1.4em", "color" : "rgba(255, 255, 255, 0.8)", "cursor" : "pointer"}).text("Export Figure"); - var stl_base = jQuery("").css({"margin-left": "20px", "font-size": "1.4em", "color" : "rgba(255, 255, 255, 0.8)", "cursor" : "pointer" }).text("Export Figure"); - var sjson = jQuery("").css({"margin-left": "20px", "font-size": "1.4em", "color" : "rgba(255, 255, 255, 0.8)", "cursor" : "pointer" }).text("Save JSON"); - var ljson = jQuery("").attr({"type": "file", "id": "ljson"}).css({"display":"none"}).text("Load JSON"); - var labeljson = jQuery("").css(menu_style).text("Export Figure"); + stl_base = jQuery("").css(menu_style).text("Export Model (STL)"); + sjson = jQuery("").css(menu_style).text("Export (JSON)"); + ljson = jQuery("").attr({"type": "file", "id": "ljson"}).css({"display":"none"}).text("Import (JSON)"); + labeljson = jQuery("").css({"margin-left":"20px","font-size":"1.4em",color:"rgba(255, 255, 255, 0.8)",cursor:"pointer"}).text("Save JSON"),a=jQuery("").attr({type:"file",id:"ljson"}).css({display:"none"}).text("Load JSON"),i=jQuery("").css(s).text("Export Model (STL)"),o=jQuery("").css(s).text("Export (JSON)"),a=jQuery("").attr({type:"file",id:"ljson"}).css({display:"none"}).text("Import (JSON)"),i=jQuery("