林炳权 %!s(int64=6) %!d(string=hai) anos
pai
achega
0ae595d5d4
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      docs/manual/en/introduction/WebGL-compatibility-check.html

+ 6 - 2
docs/manual/en/introduction/WebGL-compatibility-check.html

@@ -20,12 +20,16 @@
 		</p>
 
 		<code>
-		if (WEBGL.isWebGLAvailable()) {
+		if ( WEBGL.isWebGLAvailable() ) {
+
 			// Initiate function or other initializations here
 			animate();
+
 		} else {
+
 			var warning = WEBGL.getWebGLErrorMessage();
-			document.getElementById('container').appendChild(warning);
+			document.getElementById( 'container' ).appendChild( warning );
+
 		}
 		</code>
 	</body>