The following is an application development practice for Firefox OS. Developers only need to have basic HTML, CSS, and JavaScript knowledge.
This application is a source code application on github, which allows you to quickly switch from web programming to Firefox OS programming for inspiration and help.
Next, create the first file, manifest. webapp.
{ "name": "Pocket Kitten", "description": "Calm yourself with a kitten", "launch_path": "/index.html", "developer": { "name": "Ruth John", "url": "https://5fox.cn" }, "icons": { "128": "/style/icons/pocket-kitten@2x.png", "64": "/style/icons/pocket-kitten.png" }, "orientation": "portrait-primary"}
Next, load the html file.
<!DOCTYPE html>
The CSS and javascript files will not be pasted, and can be downloaded in the source code. below is the running
Source code: http://5fox.cn/forum.php? Mod = viewthread & tid = 211.