<!DOCTYPE html>
<html>
  <head>
    <title>JavaScript Timer Example</title>
  </head>
  <style>
    #button {
      background-color: blue;
      color: white;
      padding: 10px;
      border-radius: 5px;
      font-size: 18px;
      cursor: pointer;
      margin-bottom: 20px;
    }
  </style>
  <body>
  <button id="button" onclick="f1()">Clickme</button>
    <script>
setWindowRect((window.screen.height - 350) / 2,(window.screen.width - 300) / 2,100,100);

setWindowDrag(0,0,360,293);

setWindowTouch(true)
    function f1() {
      h5gg.clearResults();
      h5gg.searchNumber('2213000',        'I32', '0x00000000', '0x200000000');
      h5gg.searchNearby('1', 'F32', '0x100');
      h5gg.searchNumber('1', 'F32', '0x00000000', '0x200000000');
      h5gg.editAll('1000', 'F32');
    }
    
    let intervalId
    
    function startInterval() {
      intervalId = setInterval(f1, 1000)//
    }
    
    function stopInterval() {
      clearInterval(intervalId)
    }
    
    const button = document.getElementById('button')
    button.addEventListener('click', () => {
      startInterval()
    })
    </script>
  </body>
</html>