Browse Source

Docs: Set navigation direction to rtl when language is ar.

Mr.doob 5 năm trước cách đây
mục cha
commit
81bdccaa4a
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      docs/index.html

+ 6 - 0
docs/index.html

@@ -204,6 +204,12 @@
 				navigation = document.createElement( 'div' );
 				content.appendChild( navigation );
 
+				if ( language === 'ar' ) {
+
+					navigation.style.direction = 'rtl';
+
+				}
+
 				var localList = list[ language ];
 
 				for ( var section in localList ) {