私はブロガーページに取り組んでいます。 https://peacepakistan1.blogspot.com/2016/10/blog-post.htmlGoogleスライドが自動的にフルスクリーンになる方法
Googleスライドが含まれています。私の仕事は、ユーザーがPC上にいるかどうかを検出し、Googleのスライドがそのまま残ることです。
しかし、ユーザーがモバイル上にあるならば、Googleのスライドが自動的に私はボタンをクリックしてに取り組んでいます
まずフルスクリーンモードで開いた後、私は、可動部分に行くでしょう!
私はそれを行うためのスクリプトを持っているが、それは動作しません。あなたがgetElementsByTagName
を使用しますが、クラス名を渡している
function clickButton(val)
{
var buttons = document.getElementsByTagName('goog-inline-block goog-flat-button');
for(var i = 0; i < buttons.length; i++)
{
if(buttons[i].type == 'submit' && buttons[i].value == val)
{
buttons[i].click();
break; //this will exit for loop, but if you want to click every button with the value button then comment this line
}
}
}
clickButton('continue');
document.getElementsByClassName( 'goog-inline-block goog-flat-button');あまりにも機能しません。 –