CSS unicode-bidi Property

Lakshmi Srinivas
Updated on 25-Jun-2020 10:21:56

85 Views

Use the Unicode-bidi property to set whether the text should be overridden to support multiple languages with CSSExampleLive Demo                    p.demo1 {             direction: rtl;             unicode-bidi: bidi-override;          }          p.demo2 {             direction: rtl;             unicode-bidi: isolate;          }                     The unicode-bidi Property       This is demo text.       This is demo text       This is demo text    

Set the Width of a Tab Character with CSS

Ankith Reddy
Updated on 25-Jun-2020 10:21:12

184 Views

Use the tab-size property in CSS to set the width of a tab character. You can try to run the following code to implement the tab-size propertyExampleLive Demo                    #demo {             tab-size: 12;          }                     The tab-size Property                This is demo text.          

Set Quotation Marks with CSS

George John
Updated on 25-Jun-2020 10:19:20

184 Views

Use the quotes property to set quotation marks. You can try to run the following code to implement the quotes propertyExampleLive Demo                    #demo {             quotes: "'" "'";          }                                        This is demo text surrounded by quotes.                    

Atomics XOR Function in JavaScript

Samual Sam
Updated on 25-Jun-2020 10:19:19

163 Views

The Atomic object of JavaScript is an object and which provides atomic operations such as add, sub, and, or, xor, load, store etc. as static methods, these methods are used with SharedArrayBuffer objects.The xor() function of the atomic object accepts a number and the position and, performs an xor operation on the given value at the given position.SyntaxIts syntax is as followsAtomics.xor()Example Live Demo    JavaScript Example           var arrayBuffer = new SharedArrayBuffer(16);       var data = new Uint8Array(arrayBuffer);       data[0] = 30;       document.write(Atomics.xor(data, 0, 3));       document.write(", "+Atomics.load(data, 0));     Output30, 29

DataView byteLength Property in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 10:18:46

141 Views

The byteLength property of the DataView represents the length of the current Data View.SyntaxIts syntax is as followsdataView.byteLength();Example Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(8);       var dataView = new DataView(arrayBuffer);       document.write(dataView.byteLength);     Output8

DataView byteOffset Property in JavaScript

Samual Sam
Updated on 25-Jun-2020 10:18:10

90 Views

The byteOffset property of the DataView represents the offset of the current DataView.SyntaxIts syntax is as followsdataView.byteOffset();ExampleTry the following example. Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(114);       var dataView = new DataView(arrayBuffer);       document.write(dataView.buffer.byteLength);     Output114

DataView Buffer Property in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 10:17:40

158 Views

The buffer property of the DataView represents the ArrayBuffer of the current DataView.SyntaxIts syntax is as followsdataView.buffer;ExampleTry the following example. Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(156);       var dataView = new DataView(arrayBuffer);       document.write(dataView.buffer.byteLength);     Output156

Close or Hide the Virtual Keyboard on Android

Chandu yadav
Updated on 25-Jun-2020 10:17:36

5K+ Views

In Android there are some situations, we should close android default keyboard forcefully. For that this example is help for you.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.             Step 3Add the following code to src/MainActivity.javaimport android.app.ProgressDialog; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; import android.widget.ProgressBar; public class MainActivity extends AppCompatActivity implements View.OnClickListener {    Handler mHandler;   ... Read More

DataView getFloat32 Function in JavaScript

Sharon Christine
Updated on 25-Jun-2020 10:17:22

144 Views

The getFloat32() function of the DataView gets and returns a signed 32-bit floating point number at the specified position.SyntaxIts syntax is as followsdataView.getFloat32();ExampleTry the following example. Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(8);       var dataView = new DataView(arrayBuffer);       dataView.setFloat32(1, Math.LOG2E);       document.write(dataView.getFloat32(1));     Output1.4426950216293335ExampleTo this function, in addition to floating point values you can also pass Math functions. Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(8);       var dataView ... Read More

DataView getFloat64 Function in JavaScript

Samual Sam
Updated on 25-Jun-2020 10:16:32

133 Views

The getFloat64() function of the DataView gets and returns a signed 64-bit floating point number at the specified position.SyntaxIts syntax is as followsdataView.getFloat64();ExampleTry the following example. Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(20);       var dataView = new DataView(arrayBuffer);       dataView.setFloat64(1, 654.44);       document.write(dataView.getFloat64(1));     Output654.44ExampleTo this function, in addition to floating point values you can also pass Math functions. Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(20);       var dataView ... Read More

Advertisements