Underline All Words of a Text Using jQuery

Tarun Singh
Updated on 04-May-2023 16:02:08

906 Views

Underlining text is a common requirement in web development, and it can be done easily with the help of jQuery. In this article, we will see how to underline all words of a text using jQuery and learn the different methods to perform this. Before we dive into the different methods, let's first understand the basic concept of jQuery. jQuery is a fast and concise JavaScript library that simplifies HTML document traversing, event handling, and animation. It is designed to make things easier for web developers, and it does so by providing a simple syntax that is easy to read ... Read More

Translate Image or Icon by Hovering Over It

Tarun Singh
Updated on 04-May-2023 16:00:30

2K+ Views

In web development, interactivity is key to providing a memorable user experience. One common technique used to add interactivity is hovering over images or icons to reveal more information or change the appearance. Translating an image or icon by hovering over it is a great way to add some movement and interest to your website. In this article, we will learn how to translate an image or icon on hover. To perform this task, we will learn different approaches using only HTML and CSS. Different Methods to Translate an Image or Icon on Hover Method 1: CSS Transitions The first ... Read More

Check If Two Circles Touch or Intersect in Java

Mr. Satyabrata
Updated on 04-May-2023 15:56:19

2K+ Views

A circle is a closed shape formed by tracing a point that moves in a plane such that its distance from a given point is constant. In this article we will check if two given circles touch or intersect each other. We will be given the two circles with center 1 i.e (x1, y1) and center 2 i.e (x2, y2) and radius R1 and R2. We need to check if the given circle collides with the other circle or not and hence five possible situation arises as mentioned below − Circle 2 lie inside circle 1 Circle 1 ... Read More

Check If the Matrix is Diagonal Matrix in Java

Mr. Satyabrata
Updated on 04-May-2023 15:55:59

1K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. A matrix having non-zero elements only in the main diagonal (running from the upper left to the lower right) is called as diagonal matrix. As per the problem statement we have to a matrix and we have to check whether that given matrix is a diagonal matrix or not. Let’s deep dive into this article, to know how it can be done by using Java ... Read More

Check Diagonally Dominant Matrix in Java

Mr. Satyabrata
Updated on 04-May-2023 15:55:37

345 Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. If the absolute value of the diagonal element in a matrix is larger than or equal to the sum of the absolute values of the other components in that row, the matrix is said to be diagonally dominating. When resolving systems of linear equations in numerical analysis, this characteristic is helpful. Even if the coefficients of the equations are not precisely known, it guarantees that ... Read More

Form Equation of Circle from Given Radius and Centre in Java

Mr. Satyabrata
Updated on 04-May-2023 15:55:16

287 Views

A circle is a closed shape formed by tracing a point that moves in a plane such that its distance from a given point is constant. In this article we will check how to form the equation of circle from given radius and centre. We will be given a circle with centre i.e (x1, y1) and radius r. We need to form the equation of circle from given radius and centre. The equation of the circle is given by formula − $$\mathrm{(x-x1)^2\:+\:(y-y1)^2\:=\:r^2}$$ Now after expanding and arranging the equation we get − $$\mathrm{(x)^2\:–\:(2*x1*x)\:+\:(y)^2\:-\:(2*y1*y)\:=\:(r)^2\:-\:(x1)^2\:-\:(y1)^2}$$ Let’s start! To show you ... Read More

Find Total Area When Two Rectangles Overlap in Java

Mr. Satyabrata
Updated on 04-May-2023 15:54:31

361 Views

A Rectangle is a four sided-polygon, with opposite side equal and having all the internal angles equal to 90 degrees. In this article we will check how to find total area when two rectangles overlap each other. We will be given with two rectangle having length and breadth. Also we will we given with intersecting length and width of the two rectangles as shown in the figure − To find the total area of a rectangle we basically add areas of two rectangles. This includes the intersecting part twice, so we subtract the area of intersecting part. Total ... Read More

Find Column with Maximum Zeros in a Binary Matrix in Java

Mr. Satyabrata
Updated on 04-May-2023 15:54:09

315 Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. A binary matrix is a matrix of 0s and 1s, where each element can only be one of two possible values. Here we have given a binary matrix which contains set of binary elements and as per the problem statement we have to find the column which is having maximum number of 0’s. Let’s start! To show you some instances Instance-1 Given binary matrix =1 ... Read More

Transform Child Elements to Preserve 3D Transformations

Tarun Singh
Updated on 04-May-2023 15:53:27

280 Views

Being a web developer, it's important to have a solid understanding of 3D transformations and how to apply them to child elements. Transforming child elements can be a bit tricky, as we'll need to make sure that the transformations of the parent element are preserved. CSS 3D transforms create depth and visually interesting elements on the web page using perspective. In this article, we will learn how to transform child elements and preserve 3D transformations. We will learn different methods to transform the child elements in HTML. Different Methods to Transform Child Elements Preserve the 3D Transformations To transform the ... Read More

Product of Sum of First & Last Row Elements of a Matrix in Java

Mr. Satyabrata
Updated on 04-May-2023 15:52:21

658 Views

Matrices are nothing but it’s more than a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. As per the problem statement the task is to find the product of sum of all elements in first row and last row. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose the original matrix is{{15, 5, 9}, {4, 14, 16}, {7, 8, 19}}; After finding product of sum ... Read More

Advertisements