Subham9126 commited on
Commit
33517c0
·
verified ·
1 Parent(s): 4f84364

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +6 -1
index.html CHANGED
@@ -83,6 +83,7 @@
83
  try {
84
  const facetObj = eval('(' + givenFacet + ')');
85
  generateBoxes(facetObj);
 
86
  } catch (error) {
87
  alert('Invalid facet format. Please enter a valid Python dictionary.');
88
  }
@@ -121,7 +122,11 @@
121
  isResultShown = false;
122
  }
123
  });
 
 
 
 
124
  });
125
  </script>
126
  </body>
127
- </html>
 
83
  try {
84
  const facetObj = eval('(' + givenFacet + ')');
85
  generateBoxes(facetObj);
86
+ resetResult();
87
  } catch (error) {
88
  alert('Invalid facet format. Please enter a valid Python dictionary.');
89
  }
 
122
  isResultShown = false;
123
  }
124
  });
125
+ function resetResult() {
126
+ $('#result').text('').removeClass('fade-in');
127
+ isResultShown = false;
128
+ }
129
  });
130
  </script>
131
  </body>
132
+ </html>