User:Jiywang3/icn3d

mw.loader.load( 'https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/jquery-ui.min.css', 'text/css' ); mw.loader.load( 'https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d_full_ui.css', 'text/css' );

mw.loader.load( 'https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/jquery.min.js', 'text/javascript' ); mw.loader.load( 'https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/jquery-ui.min.js', 'text/javascript' ); mw.loader.load( 'https://www.ncbi.nlm.nih.gov/Structure/icn3d/lib/three.min.js', 'text/javascript' ); mw.loader.load( 'https://www.ncbi.nlm.nih.gov/Structure/icn3d/full_ui_all.min.js', 'text/javascript' );

console.log("hello");

$( document ).ready(function {         var cfg = {              divid: 'icn3dwrap',              width: '100%',              height: '100%',              resize: true,              rotate: 'right',              showmenu: true          };          cfg['pdbid'] = '2por';

var icn3dui = new iCn3DUI(cfg);

//communicate with the 3D viewer with chained functions $.when(icn3dui.show3DStructure).then(function {              //icn3dui.setOption('color', 'cyan');          }); });