<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>皆んな困っています。押すと 5秒後に色が変わります。5秒待つというだけで、厳密な sleep関数ではありません。また、後処理はすべて関数 f() の中で行う必要があります。sleep(5000) HTML &lt;div id=&quot;wait&quot; style=&quot;color: green;&quot;&gt;sleep(5000)&lt;/div&gt; &lt;form&gt;&lt;input type=&quot;button&quot; value=&quot;変更&quot; onclick=&quot;sleep()&quot;&gt;&lt;/form&gt; JavaScript function sleep() {window.setTimeout(f, 5000);} function f() { docum…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2015%2F09%2F23%2F025615&quot; title=&quot;JavaScript には sleep や wait がない - Camera Obscura&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-09-23 02:56:15</published>
  <title>JavaScript には sleep や wait がない</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2015/09/23/025615</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
