Range Methods - sgml/signature GitHub Wiki

JS

  function num_range_regex(path)
     {
     if (/[0][0-9][0-9][0-9]|1000/.test(path) )
       {
       window.frames[0].location.href = "https://www.example.com";
       }
     else if (/[1][0-9][0-9][1-9]|2000/.test(path) )
       {
       window.frames[0].location.href = "http://example.com";
       }
     }

   num_range_regex("1000")
   num_range_regex("1999")

  function num_range_modulus(path)
     {
     if (1000 % path < 1000)
       {
       window.frames[0].location.href = "http://www.example.com";
       }
     else if (2000 % path < 2000)
       {
       window.frames[0].location.href = "https://example.com";
       }
     }
⚠️ **GitHub.com Fallback** ⚠️