MediaWiki:Common.js: различия между версиями

Материал из Алговики
Перейти к навигации Перейти к поиску
WebGL example
WebGL example
Строка 4: Строка 4:


$('head').append("<script type='text/javascript' src='http://www.x3dom.org/download/x3dom.js'> </script> <link rel='stylesheet' type='text/css' href='http://www.x3dom.org/download/x3dom.css'></link>");
$('head').append("<script type='text/javascript' src='http://www.x3dom.org/download/x3dom.js'> </script> <link rel='stylesheet' type='text/css' href='http://www.x3dom.org/download/x3dom.css'></link>");
$('#wegl-example').html(`
<x3d width='600px' height='400px'>
<scene>
<shape>
<box></box>
</shape>
</scene>
</x3d>
`);


}());
}());

Версия от 13:03, 25 февраля 2016

/* Размещённый здесь код JavaScript будет загружаться пользователям при обращении к каждой странице */

(function () {

$('head').append("<script type='text/javascript' src='http://www.x3dom.org/download/x3dom.js'> </script> <link rel='stylesheet' type='text/css' href='http://www.x3dom.org/download/x3dom.css'></link>");

$('#wegl-example').html(`
<x3d width='600px' height='400px'> 
<scene> 
<shape> 			
<box></box> 
</shape> 
</scene> 
</x3d> 
`);

}());