[x3d-public] Cubes interconnected model -- WARNING : inappropriate content
vmarchetti at kshell.com
vmarchetti at kshell.com
Thu Feb 3 05:33:52 PST 2022
It needs to be reported that HTML in this posting contains a reference to a URL http://loc***host/index2.php in the context of a javascript function call.
Readers of this email list should not load this HTML into their web browsers.
There is no legitimate purpose for this reference to a localhost file. The only purpose would be fishing to view this on a computer that was running a poorly configured HTTP server and this would make a confidential file index2.php available to the webpage.
Posters to this public list are responsible for what they post; and the mailing list does allow us to ban users.
Vince Marchetti
Secretary, Web3D Consortium
> On Feb 2, 2022, at 2:59 AM, Konstantin Smirnov <konstantin.e.smirnov at gmail.com> wrote:
>
> Hello
> How to make this interconnected?
>
>
> I need cubes to be in three planes, connected
> <html>
> <head>
> <meta http-equiv="X-UA-Compatible" content="IE=edge" charset="UTF-8"/>
> <title>My first X3DOM page</title>
> <script type='text/javascript' src='https://www.x3dom.org/download/x3dom.js'> </script>
> <link rel='stylesheet' type='text/css' href='https://www.x3dom.org/download/x3dom.css'>
> <script>
> function changeColor()
> {
> if(document.getElementById("color").getAttribute('diffuseColor')=="1 0 0")
> document.getElementById("color").setAttribute('diffuseColor', '0 0 1');
> else
> document.getElementById("color").setAttribute('diffuseColor', '1 0 0');
> }
> function dataload()
> {
> $('#digital_download2').load('http://localhost/index2.php', function(data){
> alert(data)});
> }
> </script>
> <style>
> x3d
> {
> border:2px solid darkorange;
> background: rgba(128, 128, 128, 0.4);
> }
>
> body
> {
> font-size:110%;
> font-family:verdana, sans-serif;
> background-image: url('pattern.png');
> margin: 3em;
> color: lightgray;
> }
>
> h1
> {
> color: darkorange;
> }
> </style>
> </head>
> <body>
>
> <h1>Hello, X3DOM!</h1>
> <p>
>
> </p>
> <x3d width='500px' height='400px'>
> <scene>
> <shape onclick="changeColor(); dataload();">
> <appearance>
> <material id ="color" diffuseColor='1 0 0'></material>
> </appearance>
> <box></box>
> </shape>
> <transform translation='-3 0 0'>
> <shape>
> <appearance>
> <material diffuseColor='0 1 0'></material>
> </appearance>
> <box></box>
> </shape>
> </transform>
> <transform translation='3 0 0'>
> <shape>
> <appearance>
> <material id="color3" diffuseColor='0 0 1' size="2 2 2"></material>
> </appearance>
> <box></box>
> </shape>
> </transform>
> </scene>
> </x3d>
> <div id="digital_download">
> A
> </div>
> <div id="digital_download2" style="display: none;">
>
>
>
>
>
>
> </script>
>
>
> </body>
> </html>
>
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
More information about the x3d-public
mailing list