Changes between Version 2 and Version 3 of jsc3d


Ignore:
Timestamp:
Dec 18, 2013, 10:15:28 AM (7 years ago)
Author:
ptomsic
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jsc3d

    v2 v3  
    2525
    2626{{{
    27 <h1><div align="center">Prikaz modela na spletni strani</div></h1>
    28 <p>
    29 
    3027<script src="jsc3d.min.js"></script>            <!-- Knjižnica jsc3d za prikaz na spletni strani -->
    3128<script src="jsc3d.touch.js?"></script>         <!-- Knjižnica jsc3d za prikaz na tablicah -->
     
    4744}}}
    4845
     46{{{
     47#!html
     48<script src="/jpelan/raw-attachment/wiki/WikiStart/jsc3d.min.js"></script>
     49<script type="text/javascript">
     50function onLoad(){
     51  var canvas = document.getElementById('cv');
     52  var viewer = new JSC3D.Viewer(canvas);
     53  viewer.setParameter('SceneUrl', '/jpelan/raw-attachment/wiki/WikiStart/elbow.stl');
     54  viewer.init();
     55  viewer.update();
     56}     
     57window.onload = window.onresize = function() {onLoad();}       
     58</script> 
     59<canvas id="cv" width="600" height="400"
     60  style="background:lightgrey; border: 1px solid; float:right;" ></canvas>
     61}}}
    4962
    5063
     64