diff --git a/js/createform.js b/js/createform.js index 3e1f42a..dd715c0 100644 --- a/js/createform.js +++ b/js/createform.js @@ -18,8 +18,7 @@ function displayCustom(){ } } -var nozzleLayer = ` -
Select your nozzle diameter and layer height. If you have not changed your nozzle, it will likely be 0.4 mm. 0.2 mm is a typical layer height for this nozzle.
25 options are available, however some of the tests don't work very well with the larger options.
@@ -51,8 +50,7 @@ var nozzleLayer = ` `; -var startGcode = ` -If you have additional start commands, tick the box and enter the gcode. This can be used for an extruder prime sequence, overwriting the standard flow rate, compensating for 2.85/3.00 mm filament, setting K factor and more. Tick the box for more details.
@@ -70,24 +68,22 @@ var startGcode = ` `; -var bedDims = ` -Inputting the correct number will attempt to move the print into the centre of the bed. If the 0,0 at centre button is checked for a delta, also enter your bed diameter. Please check the gcode to ensure it will fit on your bed.
You may add extra margin for clearing bed clips, etc. Caution! If this is too large on small printers the squares will overlap. You may also use a negative value to space the squares further apart. Make sure to preview the gcode before printing!
+var extraMargin = /*html*/ `You may add extra margin for clearing bed clips, etc. Caution! If this is too large on small printers the squares will overlap. You may also use a negative value to space the squares further apart. Make sure to preview the gcode before printing!
`; -var tempReg = `For the hot end and bed respectively, typical PLA temperatures are 200 and 60, PETG 235 and 80, ABS 250 and 100, TPU 230 and 5 (effectively off).
(use 0 for a non heated bed)For bed, typical PLA temperatures are 60, PETG 80, ABS 100, TPU 5 (effectively off).
(use 0 for a non heated bed)Printing with PLA typically has the part cooling fan come on from layer 2. Alter this default behaviour here. A zero speed value disables the fan apart from bridging.
% `; -var pcFirstlayer = `Part cooling fans typically don't activate until at least layer 2. Since this print is only one layer thick, part cooling is not applicable.
`; -var abl = `If you don't know what to enter here, you can leave the retraction speed at 40 mm/sec. For a bowden tube printer, 6mm is a likely retraction distance. For direct drive, a starting value of 1mm may be suitable. If you are not sure about extra restart distance, leave this as 0.
(zero disables Z hop)
`; -var retractionTower = `For initial tests, you can leave the retraction speed at 40 mm/sec. For a bowden tube printer, 6mm is a likely retraction distance. For direct drive, a starting value of 1mm may be suitable. Vary either side of this for each segment. Suggested increments for how much to vary the value for each segment are shown in green..
The default printing speed is 60 mm/sec, with modifiers including 60% for perimeters, 80% for solid infill, travel moves 166%, and 50% of these for the first layer. Modify the base feedrate here and the generated gcode will be modified using the same proportions. Please note extruder retraction/unretraction and Z-hop speeds will be unaffected by this.
`; -var accel = `You can specify the feedrate for X and Y movements. Both the inner and outer perimeter speed can be specified. It is recommend to follow the process above to calculate safe limits for feedrate.
@@ -314,7 +310,7 @@ var accel = `If you have additional end commands, tick the box and enter the gcode.
@@ -323,7 +319,7 @@ var endGcode = `It is advised to preview the generated gcode through your slicer or Gcode.ws before printing.`; +var preview = /*html*/ `
It is advised to preview the generated gcode through your slicer or Gcode.ws before printing.`; function createForm(n){ document.write('') @@ -356,5 +352,4 @@ function createForm(n){ } document.write(endGcode); document.write(preview); -} - \ No newline at end of file +} \ No newline at end of file diff --git a/js/loadscripts.js b/js/loadscripts.js index d96c51e..483b121 100644 --- a/js/loadscripts.js +++ b/js/loadscripts.js @@ -1,4 +1,4 @@ -var scripts = ` +var scripts = /*html*/ `