概要
windows11に、sketchup6を入れてみた。
rubyで、3Dを書く。
WebDialogは、HTMLが動くので、userAgentを調べてみた。
IE7らしい。Three.jsは、動かない。
写真
サンプルコード
def test_web
ie = UI::WebDialog.new("WEBDialog", true, "WEBDialog", 600, 480, 150, 150, true)
html = <<-EOF
<html>
<body>test
<script>
document.write(window.navigator.userAgent.toLowerCase());
</script>
</body>
</html>
EOF
ie.set_html html
ie.show
end
以上。