Skip to content

Instantly share code, notes, and snippets.

@githubkusi
Created November 7, 2019 09:04
Show Gist options
  • Select an option

  • Save githubkusi/a4799f7524f00bff1fa0242891521382 to your computer and use it in GitHub Desktop.

Select an option

Save githubkusi/a4799f7524f00bff1fa0242891521382 to your computer and use it in GitHub Desktop.
autofocus doesn't work
<!doctype html>
<html>
<head>
<meta name="chromevox" content-script="no">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"><link rel="stylesheet" href="/static/macros/client/css/2158782449-mae_html_css_ltr.css">
<script type="text/javascript" src="/static/macros/client/js/105234738-warden_bin_i18n_warden__en_gb.js" nonce="M4LUM7LXJIc6lnV/zS3d/A"></script>
</head>
<body role="main">
<iframe id="sandboxFrame" allow="accelerometer *; ambient-light-sensor *; autoplay *; camera *; encrypted-media *; fullscreen *; geolocation *; gyroscope *; magnetometer *; microphone *; midi *; payment *; picture-in-picture *; speaker *; usb *; vibrate *; vr *" sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation">
</iframe>
<script type="text/javascript" nonce="M4LUM7LXJIc6lnV/zS3d/A">
(function() {
var el = document.getElementById('sandboxFrame');
el.onload = function() {
goog.script.init("\x7b\x22functionNames\x22:\x5b\x22doGet\x22\x5d,\x22sandboxMode\x22:\x22IFRAME_SANDBOX\x22,\x22callbackTimeout\x22:1830000,\x22deploymentId\x22:\x22AKfycbyhUyDFMBNTzkcigM77e-Cmbvh44XqQ8VEFZfxjgAUAFIQz_cLf\x22,\x22eei\x22:\x22\x22,\x22sandboxHost\x22:\x22https:\/\/n-mfhb634hm63jt7ugkz5ne6a2nb6w6al2yz5uewi-0lu-script.googleusercontent.com\x22,\x22clientSideProperties\x22:\x7b\x22google.script.sandbox.mode\x22:\x22IFRAME_SANDBOX\x22,\x22google.script.host.origin\x22:\x22https:\/\/script.google.com\x22\x7d,\x22actionPrefix\x22:\x22\/a\/titlis.org\/macros\/s\/AKfycbyhUyDFMBNTzkcigM77e-Cmbvh44XqQ8VEFZfxjgAUAFIQz_cLf\x22,\x22userHtml\x22:\x22\\u003c!DOCTYPE html\\u003e\\n\\u003chtml\\u003e\\n\\u003cbody\\u003e\\n\\n\\u003cbutton type\\u003d\\\x22button\\\x22 autofocus onclick\\u003d\\\x22alert(\\u0027Hello world!\\u0027)\\\x22\\u003eClick Me!\\u003c\\\/button\\u003e\\n\\n\\u003cp\\u003e\\u003cstrong\\u003eNote:\\u003c\\\/strong\\u003e The autofocus attribute of the button tag is not supported in IE 9 and earlier versions.\\u003c\\\/p\\u003e\\n\\n\\u003c\\\/body\\u003e\\n\\u003c\\\/html\\u003e\\n\\n\\n\x22,\x22ncc\x22:\x22\x7b\\\x22awhs\\\x22:true\x7d\x22\x7d", "AJuLMu2bwS4pDV8U7ElskVK1hHA2IxWzHg:1573116215691", undefined, false , true , "true", "https:\/\/n-mfhb634hm63jt7ugkz5ne6a2nb6w6al2yz5uewi-0lu-script.googleusercontent.com");}
el.src = 'https:\/\/n-mfhb634hm63jt7ugkz5ne6a2nb6w6al2yz5uewi-0lu-script.googleusercontent.com\/userCodeAppPanel';
}());
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment