浏览代码

Examples: Changing "View Source" link to just open the example in a new window.
It was crashing Chrome all the time. I don't know if this is a good idea but it works for me...

Mr.doob 11 年之前
父节点
当前提交
bd1a00555d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/index.html

+ 3 - 3
examples/index.html

@@ -74,7 +74,7 @@
 
 			#button {
 				position: fixed;
-				top: 20px;
+				bottom: 20px;
 				right: 20px;
 				padding: 8px;
 				color: #fff;
@@ -342,13 +342,13 @@
 
 		var button = document.createElement( 'div' );
 		button.id = 'button';
-		button.textContent = 'View source';
+		button.textContent = '#';
 		button.addEventListener( 'click', function ( event ) {
 
 			var array = location.href.split( '/' );
 			array.pop();
 
-			window.open( 'view-source:' + array.join( '/' ) + '/' + selected + '.html' );
+			window.open( array.join( '/' ) + '/' + selected + '.html' );
 
 		}, false );
 		button.style.display = 'none';