Found 601 Articles for Front End Scripts

Using FFMPEG with HTML5 for online video hosting

Samual Sam
Updated on 30-Jul-2019 22:30:22

945 Views

HTML5 enabled browsers to have a video element that you can use to play a video on your site. To let you know, flowplayer and other flash based video streaming players use the FLV format. It has the same encoding as H.264. FFMPEG can convert videos to FLV, feel free to work it with flowplayer. Use the flvtool2 for reading and writing FLV metadata from and to the file. Use the tools to create your videos and stream them through flowplayer.

Any ideas on how to prepare for the future of Flash/ Flex/ HTML5 Development?

Lakshmi Srinivas
Updated on 28-Jan-2020 10:01:21

67 Views

In future, in the same like today, if any user still wants to use Flash they will have to enable Flash manually.HTML5 and Flex is the future.HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG). The latest versions of Apple Safari, Google Chrome, Mozilla Firefox, and Opera all support many HTML5 features and Internet Explorer 11.0 will also support HTML5 functionality.The mobile web browsers that come pre-installed on iPhones, iPads, and Android phones all have excellent support for HTML5. Flexbox (flexible box) is a layout mode of CSS3. Using this mode, ... Read More

HTML5 / JS storage event handler

Jennifer Nicholas
Updated on 28-Jan-2020 09:21:54

217 Views

Storage event handlers only fire if the storage event triggered by another window. You can try to run the following code:// event handler window.addEventListener('storage', storageEventHandlerFunc, false); function storageEventHandlerFunc(evt) {    alert("Storage event called key: " + event.key );    switch(event.key){       case 'one':       case 'two': batteryDCMeter(); break;       case 'extPowerOn': rechargeBattery(); break;    } } sessionStorage.setItem("someKey", "someValue");

Does 'position: absolute' conflict with flexbox?

karthikeya Boyini
Updated on 28-Jan-2020 09:21:30

185 Views

Absolutely positioning will not conflict with flex containers. You need to set the parent width and values as well:.parent {    display: flex;    justify-content: center;    position: absolute;    width:100% }The following is the HTML:    text

Flexbox layout losing proportions when reduced in size

Nitya Raut
Updated on 28-Jan-2020 09:19:54

65 Views

To avoid the Flexbox layout issue, you need to add the following:* {    flex-shrink: 0;    min-width: 0;    min-height: 0; }Here, flex-shrink: 1 - Flex items are allows to shrinkmin-width: 0 - flex items to shrink past their content

Polymer 1.0 dom-repeat should display index starting at 1 with HTML

Samual Sam
Updated on 28-Jan-2020 09:20:46

104 Views

Polymer.js is a JavaScript library created by Google that allows reusing the HTML elements for building applications with components.To achieve this index, you need to set the index as:{{displayIndex(index)}}The displayIndex would be:function (index) {    return index + 1; }Let us see it in an example:Subject {{displayIndex(index)}}

Difference between MessageChannel and WebSockets in HTML5

Smita Kapse
Updated on 30-Jul-2019 22:30:22

122 Views

Web Sockets is a next-generation bidirectional communication technology for web applications that operates over a single socket and is exposed via a JavaScript interface in HTML 5 compliant browsers. Once you get a Web Socket connection with the web server, you can send data from browser to server by calling a send() method, and receive data from server to browser by an onmessage event handler.Two way communication between the browsing contexts is called channel messaging. It is useful for communication across multiple origins.While creating messageChannel, it internally creates two ports to sending the data and forwarded to another browsing context. ... Read More

Difference between and

Anvi Jain
Updated on 30-Jul-2019 22:30:22

169 Views

Ionic is an open source framework used for developing mobile applications. It provides tools and services for building Mobile UI with native look and feel. Lists are one of the most popular elements of any web or mobile application. They are usually used for displaying various information. They can be combined with other HTML elements to create different menus, tabs or to break the monotony of pure text files. The ionic framework offers different list types to make their usage easy.The HTML formatting such as will give you all the CSS styling that you are looking for. However, Ionic will ... Read More

Load image from url and draw to HTML5 Canvas

Lakshmi Srinivas
Updated on 28-Jan-2020 09:19:27

3K+ Views

You need to create an image object in JavaScript after that set the src.However, you need to wait for the load event before drawing.The following is the canvas:var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); var myImg = new Image(); img.onload = function() {    context.drawImage(myImg, 0, 0); }; img.src = 'https://www.tutorialspoint.com/images/seaborn-4.jpg?v=2';

Improve performance of a HTML5 Canvas with particles bouncing around

Nishtha Thakur
Updated on 28-Jan-2020 09:18:43

114 Views

To enhance the performance of Canvas with particles bouncing around, try the following:Separate the calculations from the drawing.Request a redraw after you have updated your calculations.Optimize collision detection by not testing evert particle against each other.Reduce callback usage.Reduce function calls.Inline.

Advertisements