나는 이상한 버그가 있습니다. 나는 WordPress 용 플러그인을 작성 중이며, 프리젠 테이션을 포함하는 게시물에 iframe을 포함시킵니다. 스크립트 및 슬라이드로이 iframe을 채우고 모든 것이 컴퓨터에서 잘 작동하지만 (크롬 파이어 폭스 사파리) 기기 (iPad Android 또는 iPad)에 내장 된 프리젠 테이션으로 게시물을로드하면 단순히 작동하지 않습니다.변수를 찾을 수 없습니다. 휴대 기기에서만 jQuery (iPad iPhone, Android ...)
//Include jQuery first !
var iframe_embed_script_place = document.getElementById('embedded-frame-presentation');
var script_iframe_embed = iframe_embed_script_place.contentWindow.document.createElement('script');
script_iframe_embed.type = "text/javascript";
script_iframe_embed.src = "http://reveal.presentation.dev/wp-includes/js/jquery/jquery.js";
script_iframe_embed.async = false;
iframe_embed_script_place.contentWindow.document.head.appendChild(script_iframe_embed);
//Include CSS
jQuery('#embedded-frame-presentation').contents().find('head').append("<link rel=\"stylesheet\" href=\"http://reveal.presentation.dev/wp-content/plugins/presentation/lib/reveal/reveal.min.css\" type=\"text/css\">");
나는이 문제에 부착하고,이가 작동하지 않는 이유를 내가 이해가 안 : 여기
JavaScript: Error undefined ReferenceError: Can't find variable: jQuery
내 스크립트 내 iframe을 충전한다 : 나는 사파리 디버그 콘솔에서이 오류가 모바일 장치!
도움 주셔서 감사합니다.
당신은 http://cdnjs.com/ –