404.html 771 B

1234567891011121314151617181920212223242526
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Redirecting...</title>
  6. <script type="text/javascript">
  7. // Get the part of the URL after the domain
  8. var path = window.location.pathname;
  9. // Check if it matches the old API docs pattern:
  10. // /docs/api/[lang]/[...any...]/[...path...]/PageName.html
  11. // The ".*" part will greedily match any category path.
  12. var match = path.match(/\/docs\/(?:api|examples)\/[^\/]+\/.*\/([^\.]+)\.html/);
  13. if (match && match[1]) {
  14. // match[1] will be "AnimationMixer" or "ColorKeyframeTrack"
  15. var pageName = match[1];
  16. // Construct the new URL and redirect.
  17. window.location.replace("https://threejs.org/docs/#" + pageName);
  18. }
  19. </script>
  20. </head>
  21. <body>
  22. </body>
  23. </html>
粤ICP备19079148号