Solve “Youtube refuse to connect” while using youtube link in iframe code

Sometimes, when we use the youtube link directly in iframe code, the video will not load and shows error like youtube refuse to connect. Solution: YouTube doesn’t allow 3rd parties to embed their site directly like that. The easiest way to get the correct link is to right-click on the YouTube video and select copy embed code.

List of properties in owl carousel using javascript API

items Type: NumberDefault: 3 The number of items you want to see on the screen. margin Type: NumberDefault: 0 margin-right(px) on item. loop Type: BooleanDefault: false Infinity loop. Duplicate last and first items to get loop illusion. center Type: BooleanDefault: false Center item. Works well with even an odd number of items. mouseDrag Type: BooleanDefault: true Mouse drag enabled. touchDrag Type: BooleanDefault: true Touch drag enabled. pullDrag… Continue reading List of properties in owl carousel using javascript API

Generate a Sitemap

When you generate a sitemap, your Homepage URL, Item URLs, Commerce Category URLs, and Commerce Subcategory URLs are added by default. To add any additional URLs such as Site Builder Category URLs, Blog posts, and so on, follow the steps outlined in Add User-Defined URLs to the Sitemap. To add the change frequency for each URL… Continue reading Generate a Sitemap

How to save data to a firebase database (firestore) using firebase function using ReactJS

In Cloud Firestore, data is stored in collections. To add data to Firestore, import the Collection and addDoc functions. We also import the db initialized in the firebase.js file. When the button is clicked, the Cloud Firestore creates a collection (we have named it todos) and adds data as a document to the todos collection. For importing addDoc and Collection we first have to initialize the app… Continue reading How to save data to a firebase database (firestore) using firebase function using ReactJS

What is hooks and type of hooks used in the react.Js

React Hooks are simple JavaScript functions that we can use to isolate the reusable part from a functional component. Hooks can be stateful and can manage side-effects. React provides a bunch of standard in-built hooks: useState: To manage states. Returns a stateful value and an updater function to update it. useEffect: To manage side-effects like… Continue reading What is hooks and type of hooks used in the react.Js