<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekatsu</author_name>
  <author_url>https://blog.hatena.ne.jp/nekatsu/</author_url>
  <blog_title>ねかつちう。</blog_title>
  <blog_url>https://www.nekatsu.com/</blog_url>
  <categories>
    <anon>Wordpress</anon>
  </categories>
  <description>Wordpressで高機能な追従目次を作成する方法を、備忘録を兼ねてシェアします。 スクロールにあわせてサイドバー内で目次が追従するほか、H2～H4タグをアコーディオンで入れ子にして、なおかつスクロールにあわせてアコーディオンが自動開閉します。 なお、以下で紹介するコードは、Creator Clipさんで公開されているものをベースに一部改変したものとなります。こちらのオリジナルのコードにアコーディオンの自動開閉機能を加えたのが本記事の特長となります。 DEMO サンプルコード ではまず、サンプルコードから。 JavaScript（jQuery） 以下のコードをJavaScriptファイルとして…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.nekatsu.com%2Fentry%2Fauto-mokuji&quot; title=&quot;【WordPress】アコーディオンが自動開閉する追従目次の作り方 - ねかつちう。&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nekatsu/20180204/20180204032454.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-09-27 08:00:00</published>
  <title>【WordPress】アコーディオンが自動開閉する追従目次の作り方</title>
  <type>rich</type>
  <url>https://www.nekatsu.com/entry/auto-mokuji</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
