<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=0">
<title>sandbox</title>
<link rel="stylesheet" href="style.css"/>

<script>
  function printResults(txt, style) {
    var d = document.createElement('div')
    d.innerHTML = txt
    d.className = style
    document.getElementById('out').appendChild(d)
  }

  document.cookie = 'seajs-nocache=1'
</script>

<script src="../dist/sea.js"></script>

<script>
  seajs.use('./' +
      decodeURIComponent((location.search || '?')
      .substring(1))
      .replace(/&t=\d+/, ''), function() {
    document.cookie = 'seajs-nocache=; expires=' + new Date(0)
  })
</script>
</head>
<body>
<div id="out"></div>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=0">
<title>sandbox</title>
<link rel="stylesheet" href="style.css"/>

<script>
  function printResults(txt, style) {
    var d = document.createElement('div')
    d.innerHTML = txt
    d.className = style
    document.getElementById('out').appendChild(d)
  }

  document.cookie = 'seajs-nocache=1'
</script>

<script src="../dist/sea.js"></script>

<script>
  seajs.use('./' + decodeURIComponent(location.search)
          .replace(/&t=\d+/, '').substring(1), function() {
    document.cookie = 'seajs-nocache=; expires=' + new Date(0)
  })
</script>
</head>
<body>
<div id="out"></div>
</body>
</html>
Improve code logic for parsing id
Improve code logic for parsing id
