HTML5 game development example

Development tool: vscode 1, Character puzzle The game is introduced: the jigsaw game divides a picture into several pieces and randomly scrambles them. When all the pieces are put back in place, the puzzle is finished. In the "game", click the slider to select the game difficult and easy, "easy" is a 3-row 3-column puzzle, i ...

Posted on Mon, 06 Apr 2020 03:55:20 -0700 by harman

HTML 5 plus js to read and write local files and get local file path

HTML5 provides an API for reading and writing files. The API for reading files is FileReader The code is as follows: Read local file <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div> <input typ ...

Posted on Tue, 31 Mar 2020 05:31:34 -0700 by powergen

HTML5 mini game development

Base of HTML HTML, known as hypertext markup language, is an identifying language.It includes a series of tags that can be used to unify the format of documents on the network and to link scattered Internet resources into a logical whole.HTML text is descriptive text composed of HTML commands, which can explain text, graphics, animation, sound ...

Posted on Sun, 29 Mar 2020 10:56:23 -0700 by lanasa

Build cross platform APP with Electron

About electron Electron is an open source library developed by Github to build cross platform desktop applications using HTML, CSS and JavaScript. Electron achieves this goal by merging Chromium and Node.js into the same runtime environment, and packaging them as applications under Mac, Windows and Linux systems. The following code goes directl ...

Posted on Wed, 11 Mar 2020 03:11:57 -0700 by jpowermacg4

How to use Web storage in HTML5?

With HTML5 Web storage, users' browsing data can be stored locally. Before HTML5, local storage used cookie s. Advantages of Web storage More secure More quickly Can store a lot of data Each server request does not send stored data Data exists as key / value pairs, and the data of a Web page can onl ...

Posted on Sat, 15 Feb 2020 04:51:47 -0800 by dch27

Internet Explorer's console is an undefined error

I'm using Firebug, and I have some similar statements: console.log("..."); In my page. In IE8 (and probably earlier), I received a script error that said "console" was not defined. I try to put it at the top of the page: <script type="text/javascript"> if (!console) console = {log: function() {}}; </script> ...

Posted on Sat, 15 Feb 2020 03:02:48 -0800 by realchamp

3D Configuration Visualization Solution

The application of HTML5 WebGL in three-dimensional has been well developed, making it easy to configure in three-dimensional (industrial control) as well!The three-dimensional configuration software improves the management efficiency of industrial control, and greatly improves the resource management and risk control of industrial control. Tra ...

Posted on Thu, 13 Feb 2020 20:14:51 -0800 by stride-r

Summary of knowledge points of css

Preface css is not only the makeup artist of the page, but also the foundation that every front-end must master. In the work, it is often too frequent for business, so it can't be very good to precipitate the technology. This paper is mainly the notes that the author learned from his spare time. It ma ...

Posted on Fri, 07 Feb 2020 01:24:07 -0800 by nawhaley2265

A preliminary understanding of websocket and the simple implementation of java Server

Concept: WebSocket is a single TCP Connect to full duplex Communication protocol. WebSocket makes the data exchange between the client and the server easier, allowing the server to actively push data to the client. In WebSocket API, the browser and server only need to complete one handshake, and the ...

Posted on Tue, 04 Feb 2020 00:43:40 -0800 by kiwi2

Front end HTML&CSS basic summary

HTML Grammar ① Document suffix. html or. htm ② Labels are divided into: Containment label: there are start and end labels, such as < HTML ></html> Autism and tag: start tag and end tag are together, such as < br / > ③ Labels can be nested ④ Define the attribute in the start tag. ...

Posted on Tue, 14 Jan 2020 20:37:06 -0800 by jacko