瀏覽代碼

Merge pull request #15538 from linbingquan/clean-up-1

Docs: Clean up
Michael Herzog 6 年之前
父節點
當前提交
c07c597153
共有 1 個文件被更改,包括 11 次插入9 次删除
  1. 11 9
      docs/manual/en/introduction/WebGL-compatibility-check.html

+ 11 - 9
docs/manual/en/introduction/WebGL-compatibility-check.html

@@ -19,16 +19,18 @@
 			to your javascript and run the following before attempting to render anything.
 		</p>
 
-<code>
-if (WEBGL.isWebGLAvailable()) {
-    // Initiate function or other initializations here
-    animate();
-} else {
-    var warning = WEBGL.getWebGLErrorMessage();
-    document.getElementById('container').appendChild(warning);
-}
-</code>
+		<code>
+		if ( WEBGL.isWebGLAvailable() ) {
 
+			// Initiate function or other initializations here
+			animate();
 
+		} else {
+
+			var warning = WEBGL.getWebGLErrorMessage();
+			document.getElementById( 'container' ).appendChild( warning );
+
+		}
+		</code>
 	</body>
 </html>