Procházet zdrojové kódy

Display correct element number.

Per a suggestion on the Google+ post about this example, this change fixes the incorrect element numbers displayed on the table.
Robert před 12 roky
rodič
revize
87870ec83a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      examples/css3d_periodictable.html

+ 1 - 1
examples/css3d_periodictable.html

@@ -262,7 +262,7 @@
 
 					var number = document.createElement( 'div' );
 					number.className = 'number';
-					number.textContent = i + 1;
+					number.textContent = (i/5) + 1;
 					element.appendChild( number );
 
 					var symbol = document.createElement( 'div' );

粤ICP备19079148号