JSFiddle - React, Tailwind, and code Playground

by CaoThiHat

HTML

<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>BÌNH THUẬN-ĐỀ THI KHỐI 12 HỌC KÌ I-NĂM HỌC 2020-2021(Đề số 018)</title>
    <link rel="stylesheet" href="">
    <script>
      function demo() {
        with(frm) {
          var tong = 0;
          soCau = 40;
          if (c001.value == '1') {
            tong += 0.25;
            document.getElementById("c001t").style.color = 'red';
          }
          if (c002.value == '1') {
            tong += 0.25;
            document.getElementById("c002t").style.color = 'red';
          }
          if (c003.value == '1') {
            tong += 0.25;
            document.getElementById("c003t").style.color = 'red';
          }
          if (c004.value == '1') {
            tong += 0.25;
            document.getElementById("c004t").style.color = 'red';
          }
          if (c005.value == '1') {
            tong += 0.25;
            document.getElementById("c005t").style.color = 'red';
          }
          if (c006.value == '1') {
            tong += 0.25;
            document.getElementById("c006t").style.color = 'red';
          }

          if (c007.value == '1') {
            tong += 0.25;
            document.getElementById("c007t").style.color = 'red';
          }
          if (c008.value == '1') {
            tong += 0.25;
            document.getElementById("c008t").style.color = 'red';
          }
          if (c009.value == '1') {
            tong += 0.25;
            document.getElementById("c009t").style.color = 'red';
          }
          if (c010.value == '1') {
            tong += 0.25;
            document.getElementById("c010t").style.color = 'red';
          }
          if (c011.value == '1') {
            tong += 0.25;
            document.getElementById("c011t").style.color = 'red';
          }
          if (c012.value == '1') {
            tong += 0.25;
            document.getElementById("c012t").style.color = 'red';
...