Does not work javascript


#1

I choose Webviev and the latest version of the Cocoon.
In my assembly, javascript is not executed. That I did not. I very much ask you to help!

index.html :

<!DOCTYPE HTML>
<html lang="en">

<head>
  <title>aaa</title>
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
    crossorigin="anonymous">
  <link rel="stylesheet" href="css/style.css">
  <meta charset="UTF-8" />
  <meta name="description" content="aaaa" />
</head>
<body>
  <a href="1.html">aaaaa</a>
  <div class="content">
    <div class="row">
      <div class="col-md-6 offset-md-3">
        <h1 class="display-3 text-center mb-3">Конвертор других величин</h1>
        <form>
          <div class="form-group">
            <input type="number" id="kmInput" placeholder="Введите киллометры: " class="form-control form-control-lg">
          </div>
        </form>
        <div id="output">
          <div class="card alert-warning">
            <div class="card-block">
              <h4>Метры:</h4>
              <div id="metresOutput" de>
              </div>
            </div>
          </div>
          <div class="card alert-primary">
            <div class="card-block">
              <h4>Сантиметры:</h4>
              <div id="smOutput">

              </div>
            </div>
          </div>
          <div class="card alert-success">
            <div class="card-block">
              <h4>Миллиметры:</h4>
              <div id="milimetresOutput">

              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <script type="text/javascript">
    document.write("Вы пришли с <b>" + document.referrer + "</b>");
    document.write("<BR>Ваш броузер: <b>" + navigator.appName + "</b>");
    document.write("<BR>Кодовое название: <b>" + navigator.appCodeName + "</b>");
    document.write("<BR>Версия: <b>" + navigator.appVersion + "</b>");
    document.write("<br>Заголовок пользовательского агента: <b>" + navigator.userAgent + "</b>");
    document.getElementById('output').style.visibility = 'hidden';
    document.getElementById('kmInput').addEventListener('input', function (e) {
      document.getElementById('output').style.visibility = 'visible';
      let km = e.target.value;
      document.getElementById('metresOutput').innerHTML = km * 1000;
      document.getElementById('smOutput').innerHTML = km * 100000;
      document.getElementById('milimetresOutput').innerHTML = km * 1000000;
    });
  </script>
</body>
</html>




#2

you try Webview+ or old version 2.2.0 or 2.1.0


#3

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.