function importFCNN() {
  var inputText = document.getElementById("importBox").value;
  inputText = ''+inputText.trim().replace(/ +(?= )/g,''); // replace multiple spaces by a single one
  try {
    fcnn = new FCNN(inputText);
    fcnn.displaySelf();
    document.getElementById("fcnn-display-area").innerHTML = "Réseau de neuronnes importé avec succès :<br>" + fcnn.toHTML();
  } catch (err) {
    document.getElementById("fcnn-display-area").innerHTML = "Erreur à l'importation, réseau invalide. (" + err + ")";
  }
}
/**
 * Load the neural network as described in the importBox text area.
 */
Load the neural network as described in the importBox text area.
Load the neural network as described in the importBox text area .
function importFCNN() {
  var inputText = document.getElementById("importBox").value;
  inputText = ''+inputText.trim().replace(/ +(?= )/g,''); 
  try {
    fcnn = new FCNN(inputText);
    fcnn.displaySelf();
    document.getElementById("fcnn-display-area").innerHTML = "Réseau de neuronnes importé avec succès :<br>" + fcnn.toHTML();
  } catch (err) {
    document.getElementById("fcnn-display-area").innerHTML = "Erreur à l'importation, réseau invalide. (" + err + ")";
  }
}
function importFCNN ( ) { var inputText = document . getElementById ( "importBox" ) . value ; inputText = '' + inputText . trim ( ) . replace ( /  +(?= ) / g , '' ) ; try { fcnn = new FCNN ( inputText ) ; fcnn . displaySelf ( ) ; document . getElementById ( "fcnn-display-area" ) . innerHTML = "Réseau de neuronnes importé avec succès :<br>" +  c n.to H TML(); } catch ( err ) { document . getElementById ( "fcnn-display-area" ) . innerHTML = "Erreur à l'importation, réseau invalide. (" + e r + " "; } }
Load the neural network as described in the importBox text area.
Load the neural network as described in the importBox text area .
// replace multiple spaces by a single one