{"id":6173,"date":"2020-01-23T12:44:16","date_gmt":"2020-01-23T03:44:16","guid":{"rendered":"http:\/\/takuyakobayashi.jp\/blog\/?p=6173"},"modified":"2020-01-23T13:14:32","modified_gmt":"2020-01-23T04:14:32","slug":"alert%e3%81%8c%e5%8a%b9%e3%81%8b%e3%81%aa%e3%81%84%e7%92%b0%e5%a2%83%e3%81%8c%e3%81%82%e3%82%8b%e3%82%88%e3%81%86%e3%81%aa%e3%81%ae%e3%81%a7%e3%83%a2%e3%83%bc%e3%83%80%e3%83%ab%e3%81%a7%e4%bb%a3","status":"publish","type":"post","link":"https:\/\/takuyakobayashi.jp\/blog\/2020\/01\/23\/6173","title":{"rendered":"alert()\u304c\u52b9\u304b\u306a\u3044\u74b0\u5883\u304c\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u30e2\u30fc\u30c0\u30eb\u3067\u4ee3\u7528\u3059\u308b"},"content":{"rendered":"<p>Safari\u306a\u3069\u306e\u4e00\u90e8\u306e\u30d6\u30e9\u30a6\u30b6\u3067alert();\u304c\u52b9\u304b\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u4ee3\u308f\u308a\u306b\u30e2\u30fc\u30c0\u30eb\u30a6\u30a4\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3055\u305b\u3066\u4ee3\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30bd\u30fc\u30b9\u306f\u30b3\u30d4\u30da\u3067\u81ea\u7531\u306b\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u3067\u3059\u3002<\/p>\n<p><code>&lt;html><br \/>\n&lt;head><br \/>\n&lt;meta charset=\"UTF-8\"><br \/>\n&lt;script src=\"https:\/\/code.jquery.com\/jquery-3.4.1.min.js\" integrity=\"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=\" crossorigin=\"anonymous\">&lt;\/script><br \/>\n&lt;\/head><br \/>\n&lt;body><br \/>\n&lt;p>&lt;a onClick=\"alertModal('Hello World');\" style=\"color:red;\">\u3053\u3053\u3092\u30af\u30ea\u30c3\u30af&lt;\/a>\u3059\u308b\u3068\u30a2\u30e9\u30fc\u30c8\u3092\u8868\u793a&lt;\/p><br \/>\n&lt;div id=\"alertmodal\">&lt;\/div><br \/>\n&lt;script><br \/>\n  function alertModal(modalText) {<br \/>\n    $('#alertmodal').html('&lt;div>'+modalText+'&lt;\/div>').fadeIn();<br \/>\n  }<br \/>\n  $('#alertmodal').on('click',function(){<br \/>\n    $(this).fadeOut();<br \/>\n  });<br \/>\n&lt;\/script><br \/>\n&lt;style><br \/>\n#alertmodal {<br \/>\n  display: none;<br \/>\n  position: fixed;<br \/>\n  z-index: 9998;<br \/>\n  top: 0;<br \/>\n  left: 0;<br \/>\n  width: 100%;<br \/>\n  height: 100%;<br \/>\n  background: rgba(0,0,0,0.8);<br \/>\n}<br \/>\n#alertmodal div {<br \/>\n  position: absolute;<br \/>\n  top: 50%;<br \/>\n  left: 3%;<br \/>\n  right: 3%;<br \/>\n  max-width: 800px;<br \/>\n  width: auto;<br \/>\n  color: red;<br \/>\n  padding: 1em;<br \/>\n  background: #fff;<br \/>\n  border-radius: 6px;<br \/>\n  transform: translateY(-50%);<br \/>\n  margin: 0 auto;<br \/>\n  box-shadow: 0 0 3px #000;<br \/>\n}<br \/>\n&lt;\/style><br \/>\n&lt;\/body><br \/>\n&lt;\/html><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Safari\u306a\u3069\u306e\u4e00\u90e8\u306e\u30d6\u30e9\u30a6\u30b6\u3067alert();\u304c\u52b9\u304b\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u4ee3\u308f\u308a\u306b\u30e2\u30fc\u30c0\u30eb\u30a6\u30a4\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3055\u305b\u3066\u4ee3\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u30bd\u30fc\u30b9\u306f\u30b3\u30d4\u30da\u3067\u81ea\u7531\u306b\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u3067\u3059\u3002 &lt;html &hellip; <a href=\"https:\/\/takuyakobayashi.jp\/blog\/2020\/01\/23\/6173\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">alert()\u304c\u52b9\u304b\u306a\u3044\u74b0\u5883\u304c\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u30e2\u30fc\u30c0\u30eb\u3067\u4ee3\u7528\u3059\u308b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-6173","post","type-post","status-publish","format-standard","hentry","category-tips"],"_links":{"self":[{"href":"https:\/\/takuyakobayashi.jp\/blog\/wp-json\/wp\/v2\/posts\/6173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/takuyakobayashi.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/takuyakobayashi.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/takuyakobayashi.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/takuyakobayashi.jp\/blog\/wp-json\/wp\/v2\/comments?post=6173"}],"version-history":[{"count":0,"href":"https:\/\/takuyakobayashi.jp\/blog\/wp-json\/wp\/v2\/posts\/6173\/revisions"}],"wp:attachment":[{"href":"https:\/\/takuyakobayashi.jp\/blog\/wp-json\/wp\/v2\/media?parent=6173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/takuyakobayashi.jp\/blog\/wp-json\/wp\/v2\/categories?post=6173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/takuyakobayashi.jp\/blog\/wp-json\/wp\/v2\/tags?post=6173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}