Skip to content

Commit 5b93477

Browse files
committed
Added info button.
1 parent ef07453 commit 5b93477

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

editor.appcache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# 2012-09-3:1
2+
# 2012-09-3:2
33

44
CACHE:
55
/favicon.ico

index.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@
7171
<body>
7272
<script>
7373

74-
// https://github.com/mrdoob/code-editor
75-
7674
window.URL = window.URL || window.webkitURL;
7775

7876
// deflate
@@ -249,6 +247,16 @@
249247
}, false );
250248
toolbar.appendChild( buttonHide );
251249

250+
var buttonInfo = document.createElement( 'button' );
251+
buttonInfo.className = 'button';
252+
buttonInfo.textContent = '?';
253+
buttonInfo.addEventListener( 'click', function ( event ) {
254+
255+
window.open( 'https://github.com/mrdoob/code-editor' );
256+
257+
}, false );
258+
toolbar.appendChild( buttonInfo );
259+
252260
// events
253261

254262
document.addEventListener( 'drop', function ( event ) {

0 commit comments

Comments
 (0)