Commits

Maximiliano Guerra committed bcba0bc Draft

Não precisa exibir o valor no crítico

  • Participants
  • Parent commits 41294cb

Comments (0)

Files changed (2)

               <span class="badge badge-info" data-id="results-biggest"></span>
 
               <span class="label label-important hide" data-id="critical-label">Critico!!!</span>
-              <span class="badge badge-important hide" data-id="critical-value"></span>
             </div>
           </fieldset>
         </form>

File js/system.js

 $("#double-dice-roller").submit(function(event) {
     event.preventDefault();
-    var $criticalLabel = $("#double-dice-roller [data-id=critical-label]");
-    var $critical = $("#double-dice-roller [data-id=critical-value]");
-    $criticalLabel.hide();
+    var $critical = $("#double-dice-roller [data-id=critical-label]");
     $critical.hide();
 
     var result1 = Math.floor(Math.random() * 10) + 1;
     $("#double-dice-roller [data-id=results-biggest]").text(biggest);
 
     if ((result1 + result2) >= 18) {
-        $critical.text(biggest);
-        $criticalLabel.show();
         $critical.show();
     }