(function(w) { var sent = 0; function _send(data) { if (!sent && navigator.sendBeacon) { navigator.sendBeacon('https://blog.hatena.ne.jp/api/security/report', JSON.stringify(data)); sent = 1; mo.disconnect(); } } function c(e) { var s = getComputedStyle(e); var r = e.getBoundingClientRect(); if (s.position === 'fixed' && r.width*r.height > w.innerWidth*w.innerHeight*0.9) { _send({ id: 'fixed', ref: location.href }); } } var mo = new MutationObserver(function(ms) { ms.forEach(function(m) { if (m.type === 'attributes') { return setTimeout(function() { c(m.target); }, 0); } m.addedNodes.forEach(function(n) { if (n.nodeType !== 1) return; var walker = document.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, null, false); setTimeout(function() { c(n); }, 0); while (walker.nextNode()) { (function(el) { setTimeout(function() { c(el); }, 0); })(walker.currentNode); } }); }); }); mo.observe(document.documentElement, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class', 'id'], }); })(window);

ノマド主婦のゆっくり生活

海に山に街に 日本を歩く

2019-11-10から1日間の記事一覧

「加賀麩 不室屋」と「スコール金沢」どちらも美味 金沢市(石川県)

私が現在しっかり読みこんでいるブログの一つが、前にも紹介しましたすしログさんです。 edomae-sushi.hatenablog.com 先日、金沢に急に用事ができたので、すしログさんのブログに載っているお店を尋ねようと思いたちました。 まず、山菜料理の名店と書いて…