今日も英検の問題集から。「Student activists burned a life-size effigy of the military dictator.」(学生活動家たちは軍事独裁者の等身大の人 形を燃やした。)effigy(エフィジー:人形[ひとがた] )。元はfigureと同じ語源。確かにfigが隠れてた。フィ ジーの土産に人形もらって、「えっ、フィジー(エフィジー)の 人形がおみやげ?」ちなみに、地名はFijiだけど。単語の問題 集も後半に入ると難易度高くて、覚えるのつらいッス。受験生みた い、自分。
*
* Again: this will **not** prevent inline script, e.g.:
* .
*
* This workaround is possible because Safari supports the non-standard 'beforeload' event.
* This allows us to trap the module and nomodule load.
*
* Note also that `nomodule` is supported in later versions of Safari - it's just 10.1 that
* omits this attribute.
* -->
*/
(function () {
const check = document.createElement('script');
if (!('noModule' in check) && 'onbeforeload' in check) {
let support = false;
document.addEventListener(
'beforeload',
(e) => {
if (e.target === check) {
support = true;
} else if (!e.target.hasAttribute('nomodule') || !support) {
return;
}
e.preventDefault();
},
true,
);
check.type = 'module';
const blob = URL.createObjectURL(
new window.Blob([], { type: 'text/javascript' }),
);
check.src = blob;
check.onload = () => {
URL.revokeObjectURL(blob);
};
document.head.appendChild(check);
check.remove();
}
})();