Preload Javascript


Since My client need some Arabic & Hebrew text in the project, I thought to preload A script that make the text run from Right to Left (something like the css style ‘direction = RTL’.

Does anyone have an idea how to write the code in javascript and where to place it?

Hi Musa:

This is a CSS property which you can read more about here:

So for Hype, if you have an element you wish to set as rtl then you would select it (or select multiple items) and edit the ‘class’ to be rtl.

Next, you would edit the Head HTML of the document (in the Document Inspector) and add this line:

.rtl {direction: rtl; }

The first RTL is what you have set in the ‘class’ area, and the second RTL is that actual CSS property.