123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>three.js - documentation</title>
- <style>
- @font-face {
- font-family: 'inconsolata';
- src: url('files/inconsolata.woff') format('woff');
- font-weight: normal;
- font-style: normal;
- }
- html {
- height: 100%;
- }
- body {
- margin: 0;
- padding: 0;
- height: 100%;
- color: #555;
- font-family: 'inconsolata';
- font-size: 15px;
- overflow: hidden;
- }
- a {
- color: #2194CE;
- }
- #panel {
- position: fixed;
- width: 260px;
- height: 100%;
- overflow: auto;
- }
- #panel h1 {
- color: #333;
- font-size: 25px;
- font-weight: normal;
- margin-top: 25px;
- margin-left: 20px;
- }
- #panel h2 {
- color: #666;
- font-size: 16px;
- font-weight: normal;
- margin-top: 20px;
- margin-left: 20px;
- }
- #panel ul {
- list-style-type: none;
- padding: 0px;
- margin-left: 20px;
- }
- #viewer {
- border: 0px;
- margin-left: 260px;
- width: -webkit-calc(100% - 260px);
- width: -moz-calc(100% - 260px);
- width: calc(100% - 260px);
- height: 100%;
- overflow: auto;
- }
- </style>
- </head>
- <body>
- <div id="panel"></div>
- <iframe id="viewer"></iframe>
- <script src="list.js"></script>
- <script>
- var REVISION = '49';
- var panel = document.getElementById( 'panel' );
- var viewer = document.getElementById( 'viewer' );
- var html = '<h1>three.js<span style="font-size: 50%; vertical-align: super;"> r' + REVISION + '</span></h1>';
- for ( var category in list ) {
- html += '<h2>' + category + '</h2>';
- html += '<ul>';
- for ( var i = 0; i < list[ category ].length; i ++ ) {
- var page = list[ category ][ i ];
- html += '<li><a href="javascript:goTo(\'' + page[ 0 ] + '\')">' + page[ 0 ] + '</a></li>';
- }
- html += '</ul>';
- }
- panel.innerHTML += html;
- // Page loading
- function goTo( name ) {
- var path = pages[ name ];
- window.location.hash = name;
- viewer.src = 'api/' + path + '.html';
- }
- function goToHash() {
- goTo( window.location.hash.substring( 1 ) );
- }
-
- window.addEventListener( 'hashchange', goToHash, false );
- if ( window.location.hash.length > 0 ) goToHash();
- </script>
- </body>
- </html>
|