<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>purazumakoi</author_name>
  <author_url>https://blog.hatena.ne.jp/purazumakoi/</author_url>
  <blog_title>purazumakoiの[はてなブログ]</blog_title>
  <blog_url>https://purazumakoi.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>参照 Javascriptでファイルの位置（パス）を取得 | doli blog パスを取得するにはこんな方法がある //URLを取得 var url = location.href; // http://exsample.com/sp/ //パスを取得 var path = location.pathname; // /sp/ スマホサイトを/sp/以下で展開している場合、今いる場所が/sp/以下かどうかをチェックする ということで こう書く var site = &quot;&quot;; var path = location.pathname; var pathinfo = path.split('/')…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpurazumakoi.hatenablog.com%2Fentry%2F2014%2F09%2F19%2F154546&quot; title=&quot;Javascriptで今ブラウザで見ているファイルの位置（パス）を取得 - purazumakoiの[はてなブログ]&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>2014-09-19 15:45:46</published>
  <title>Javascriptで今ブラウザで見ているファイルの位置（パス）を取得</title>
  <type>rich</type>
  <url>https://purazumakoi.hatenablog.com/entry/2014/09/19/154546</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
