<commit_before><!DOCTYPE html>
<html lang="ru">
  <head>
    <title>Plans - Greenhouse-systems</title>

    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="../css/styles.css">    
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
    <link rel="stylesheet" href="../css/open-iconic-bootstrap.css">
  </head>

  <header>
    <nav class="navbar navbar-expand-sm navbar-dark bg-dark--green">
      <a class="navbar-brand" href="index.html">Greenhouse Systems(tm)</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>

      <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item">
            <a class="nav-link" href="../index.html">Home</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="spectrate/status.html">Status</span></a>
          </li>
          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              History
            </a>
            <div class="dropdown-menu" aria-labelledby="navbarDropdown">
              <a class="dropdown-item" href="../spectrate/plots.html">Plots</a>
              <a class="dropdown-item" href="../spectrate/log.html">Log</a>
            </div>
          </li>
          <li class="nav-item">
            <a class="nav-link active" href="status.html">Plans <span class="sr-only">(current)</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="equipment/status.html">Equipment</a>
          </li>
        </ul>
      </div>
    </nav>
  </header>

  <body>
    <div class="container-fluid">
      <h1>Plans</h1>
      <h2>Tulips - plan</h2>
      <div class="col-sm-1">
        <table class="table table-striped period">
          <thead>
            <tr>
              <th scope="col">Parameters</th>
              <th scope="col">Duration (hours): </th>
              <th scope="col">Air temperature: </th>
              <th scope="col">Humidity: </th>
              <th scope="col">PH: </th>
              <th colspan="2"></th>
            </tr>
          </thead>
          <tbody id="demo1">
            <tr class="draggable demo-no-swipe">
              <th scope="row">Period 1</th>
              <td>120</td>
              <td>22</td>
              <td>92%</td>
              <td>5.6</td>
              <td><span class="oi oi-pencil" title="pencil" aria-hidden="true"></span></td>
              <td><span class="oi oi-trash" title="trash" aria-hidden="true"></span></td>
            </tr>
            <tr class="draggable demo-no-swipe">
              <th scope="row">Period 2</th>
              <td>96</td>
              <td>24</td>
              <td>86%</td>
              <td>5.7</td>
              <td><span class="oi oi-pencil" title="pencil" aria-hidden="true"></span></td>
              <td><span class="oi oi-trash" title="trash" aria-hidden="true"></span></td>
            </tr>
            <tr class="draggable demo-no-swipe">
              <th scope="row">Period 3</th>
              <td>96</td>
              <td>26</td>
              <td>80%</td>
              <td>5.7</td>
              <td><span class="oi oi-pencil" title="pencil" aria-hidden="true"></span></td>
              <td><span class="oi oi-trash" title="trash" aria-hidden="true"></span></td>
            </tr>
            <tr class="draggable demo-no-swipe">
              <th scope="row">Period 4</th>
              <td>96</td>
              <td>28</td>
              <td>95%</td>
              <td>5.8</td>
              <td><span class="oi oi-pencil" title="pencil" aria-hidden="true"></span></td>
              <td><span class="oi oi-trash" title="trash" aria-hidden="true"></span></td>
            </tr>
            <tr>
              <td colspan="7"><button type="button" class="btn btn-success" style="width: 100%">Add period</button></td>
            </tr>
          </tbody>
        </table>

      </div>
    </div>

    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
    <script type="text/javascript" src="../js/slip.js"></script>
    <script>
        function setupSlip(list) {
            var flag_dragging = false;
            list.addEventListener('mouseover', function(e){
              document.onselectstart = function(){ return false; }
            });
            list.addEventListener('mouseout', function(e){
              if(!flag_dragging){
                document.onselectstart = function(){ return true; }
              }
            });


            list.addEventListener('slip:beforereorder', function(e){
                flag_dragging = true;
                if (e.target.classList.contains('demo-no-reorder')) {
                    e.preventDefault();
                }
            }, false);

            list.addEventListener('slip:beforeswipe', function(e){
                flag_dragging = true;
                if (e.target.nodeName == 'INPUT' || e.target.classList.contains('demo-no-swipe')) {
                    e.preventDefault();
                }
            }, false);

            list.addEventListener('slip:beforewait', function(e){
                if (e.target.classList.contains('instant')) e.preventDefault();
            }, false);

            list.addEventListener('slip:afterswipe', function(e){
                flag_dragging = false;
                e.target.parentNode.appendChild(e.target);
            }, false);
<commit_msg>Remove swipe. Add touch screen recognition.<commit_after><!DOCTYPE html>
<html lang="ru">
  <head>
    <title>Plans - Greenhouse-systems</title>

    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="../css/styles.css">    
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
    <link rel="stylesheet" href="../css/open-iconic-bootstrap.css">
  </head>

  <header>
    <nav class="navbar navbar-expand-sm navbar-dark bg-dark--green">
      <a class="navbar-brand" href="index.html">Greenhouse Systems(tm)</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>

      <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item">
            <a class="nav-link" href="../index.html">Home</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="spectrate/status.html">Status</span></a>
          </li>
          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              History
            </a>
            <div class="dropdown-menu" aria-labelledby="navbarDropdown">
              <a class="dropdown-item" href="../spectrate/plots.html">Plots</a>
              <a class="dropdown-item" href="../spectrate/log.html">Log</a>
            </div>
          </li>
          <li class="nav-item">
            <a class="nav-link active" href="status.html">Plans <span class="sr-only">(current)</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="equipment/status.html">Equipment</a>
          </li>
        </ul>
      </div>
    </nav>
  </header>

  <body>
    <div class="container-fluid">
      <h1>Plans</h1>
      <h2>Tulips - plan</h2>
      <div class="col-sm-1">
        <table class="table table-striped period">
          <thead>
            <tr>
              <th scope="col">Parameters</th>
              <th scope="col">Duration (hours): </th>
              <th scope="col">Air temperature: </th>
              <th scope="col">Humidity: </th>
              <th scope="col">PH: </th>
              <th colspan="2"></th>
            </tr>
          </thead>
          <tbody id="demo1">
            <tr class="draggable demo-no-swipe">
              <th scope="row">Period 1</th>
              <td>120</td>
              <td>22</td>
              <td>92%</td>
              <td>5.6</td>
              <td><span class="oi oi-pencil" title="pencil" aria-hidden="true"></span></td>
              <td><span class="oi oi-trash" title="trash" aria-hidden="true"></span></td>
            </tr>
            <tr class="draggable demo-no-swipe">
              <th scope="row">Period 2</th>
              <td>96</td>
              <td>24</td>
              <td>86%</td>
              <td>5.7</td>
              <td><span class="oi oi-pencil" title="pencil" aria-hidden="true"></span></td>
              <td><span class="oi oi-trash" title="trash" aria-hidden="true"></span></td>
            </tr>
            <tr class="draggable demo-no-swipe">
              <th scope="row">Period 3</th>
              <td>96</td>
              <td>26</td>
              <td>80%</td>
              <td>5.7</td>
              <td><span class="oi oi-pencil" title="pencil" aria-hidden="true"></span></td>
              <td><span class="oi oi-trash" title="trash" aria-hidden="true"></span></td>
            </tr>
            <tr class="draggable demo-no-swipe">
              <th scope="row">Period 4</th>
              <td>96</td>
              <td>28</td>
              <td>95%</td>
              <td>5.8</td>
              <td><span class="oi oi-pencil" title="pencil" aria-hidden="true"></span></td>
              <td><span class="oi oi-trash" title="trash" aria-hidden="true"></span></td>
            </tr>
            <tr>
              <td colspan="7"><button type="button" class="btn btn-success" style="width: 100%">Add period</button></td>
            </tr>
          </tbody>
        </table>

      </div>
    </div>

    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
    <script type="text/javascript" src="../js/slip.js"></script>
    <script>
        function setupSlip(list) {
            var flag_dragging = false;
            list.addEventListener('mouseover', function(e){
              document.onselectstart = function(){ return false; }
            });
            list.addEventListener('mouseout', function(e){
              if(!flag_dragging){
                document.onselectstart = function(){ return true; }
              }
            });


            list.addEventListener('slip:beforereorder', function(e){
                flag_dragging = true;
                if (e.target.classList.contains('demo-no-reorder')) {
                    e.preventDefault();
                }
            }, false);

            list.addEventListener('slip:beforewait', function(e){
                var f = "ontouchstart" in document.documentElement;
                if (f)
                {
                  alert("It's a touch screen device.");
                }
                else
                {
                  alert("Not touch"); 
                }

                if (!f) e.preventDefault();
            }, false);

            list.addEventListener('slip:beforeswipe', function(e){
                if (e.target.nodeName == 'INPUT' || e.target.parentNode.classList.contains('demo-no-swipe')) {
                    e.preventDefault();
                }
            }, false);

            // list.addEventListener('slip:afterswipe', function(e){
            //     flag_dragging = false;
            //     e.target.parentNode.appendChild(e.target);
            // }, false);

{'fraction_non_alphanumeric': 0.18027944111776448, 'fraction_numerical': 0.009580838323353293, 'mean_word_length': 1.8735948612066988, 'pattern_counts': {'":': 0, '<': 361, '<?xml version=': 0, '>': 361, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4121489', 'n_tokens_mistral': 3920, 'n_tokens_neox': 3771, 'n_words': 626}