Simplest possible examples of HTML, CSS and Javascript:
Switch branches/tags
Nothing to show
Clone or download
samdutton Merge pull request #129 from fippo/getdisplaymedia
use getdisplaymedia for screen capture
Latest commit 7eaffc8 Oct 19, 2018
Permalink
Failed to load latest commit information.
a Tidied up head code some more Feb 2, 2018
ajax Fixed ajax redirect Aug 15, 2018
appcache Fixed lazy load bugs Apr 6, 2018
array Fixed lazy load bugs Apr 6, 2018
audio Fixed lazy load bugs Apr 6, 2018
audiodata Fixed errors found by stylelint Aug 4, 2018
av1 Fixed ajax redirect Aug 15, 2018
battery Fixed lazy load bugs Apr 6, 2018
bigimage Fixed lazy load bugs Apr 6, 2018
br Tidied up head code some more Feb 2, 2018
build Tweaks to meta tags Dec 7, 2017
canplaytype Fixed lazy load bugs Apr 6, 2018
canvas Fixed lazy load bugs Apr 6, 2018
ck Tidied up head code some more Feb 2, 2018
cors Fixed lazy load bugs Apr 6, 2018
cpt Tidied up head code some more Feb 2, 2018
css Fixed errors found by stylelint Aug 4, 2018
cssbackgroundanimation Fixed lazy load bugs Apr 6, 2018
cssfilters Fixed lazy load bugs Apr 6, 2018
cssmenu Simplified CSS menu code May 4, 2018
cssnegativeselector Fixed lazy load bugs Apr 6, 2018
cssregions Fixed lazy load bugs Apr 6, 2018
csstextindent Fixed lazy load bugs Apr 6, 2018
csstransition Fixed lazy load bugs Apr 6, 2018
datalist Fixed errors found by stylelint Aug 4, 2018
dc Tidied up head code some more Feb 2, 2018
details Fixed lazy load bugs Apr 6, 2018
devicemotion Fixed lazy load bugs Apr 6, 2018
deviceorientation Doh Apr 25, 2018
dm Tidied up head code some more Feb 2, 2018
do Tidied up head code some more Feb 2, 2018
eme Fixed lazy load bugs Apr 6, 2018
es6-modules Fixed errors found by stylelint Aug 4, 2018
eventsource Fixed lazy load bugs Apr 6, 2018
fetch Fixed lazy load bugs Apr 6, 2018
filesystem Fixed lazy load bugs Apr 6, 2018
flexboxcenter Fixed lazy load bugs Apr 6, 2018
flexboxexpand Fixed lazy load bugs Apr 6, 2018
flexvideo Fixed lazy load bugs Apr 6, 2018
fs Tidied up head code some more Feb 2, 2018
fullscreen Fixed lazy load bugs Apr 6, 2018
geolocation Tidied up head code some more Feb 2, 2018
getusermedia use getdisplaymedia for screen capture Oct 19, 2018
grid Fixed errors found by stylelint Aug 4, 2018
gridpage Fixed errors found by stylelint Aug 4, 2018
gs Tidied up head code some more Feb 2, 2018
gum Tidied up head code some more Feb 2, 2018
h264 Fixed lazy load bugs Apr 6, 2018
headtrackr Fixed lazy load bugs Apr 6, 2018
history Fixed lazy load bugs Apr 6, 2018
i Tidied up head code some more Feb 2, 2018
ic Tidied up head code some more Feb 2, 2018
idbkeyval Fixed errors found by stylelint Aug 4, 2018
idbwrapper Fixed lazy load bugs Apr 6, 2018
iframe Fixed lazy load bugs Apr 6, 2018
imagecapture remove URL.createObjectURL(mediaStream) Oct 18, 2018
images Added 180 icon Dec 7, 2017
indexeddb Fixed lazy load bugs Apr 6, 2018
inputtypes Fixed lazy load bugs Apr 6, 2018
install Fixed errors found by stylelint Aug 4, 2018
intersectionobserver Fixed lazy load bugs Apr 6, 2018
io Tidied up head code some more Feb 2, 2018
js/lib Cleanup: removed redundant content and moved locations Mar 29, 2017
l Tidied up head code some more Feb 2, 2018
lazy-single Fixed lazy load bugs Apr 6, 2018
lazy Doh Apr 25, 2018
loadevents Tweak Aug 16, 2018
localstorage Fixed lazy load bugs Apr 6, 2018
longvideo Tidied up head code some more Feb 2, 2018
lotsofimages-old Added service worker 😳 Jan 10, 2018
lotsofimages Fixed errors found by stylelint Aug 4, 2018
lotsofrequests Fixed errors found by stylelint Aug 4, 2018
map Tidied up head code some more Feb 2, 2018
mediacapture Tidied up head code some more Feb 2, 2018
mediafragments Fixed lazy load bugs Apr 6, 2018
mediaqueries Fixed lazy load bugs Apr 6, 2018
mediarecorder remove cruft Oct 19, 2018
mq Tidied up head code some more Feb 2, 2018
mr Tidied up head code some more Feb 2, 2018
mse Added missing mse test.webm Sep 17, 2018
multigum remove cruft Oct 19, 2018
mutationobserver Fixed lazy load bugs Apr 6, 2018
n Tidied up head code some more Feb 2, 2018
navigationtiming Fixed lazy load bugs Apr 6, 2018
notification Fixed lazy load bugs Apr 6, 2018
nt Tidied up head code some more Feb 2, 2018
observe Fixed lazy load bugs Apr 6, 2018
online Fixed lazy load bugs Apr 6, 2018
pagevisibility Fixed lazy load bugs Apr 6, 2018
pc Tidied up head code some more Feb 2, 2018
peerconnection Tidied up head code some more Feb 2, 2018
pictureart Fixed lazy load bugs Apr 6, 2018
picturetype Fixed lazy load bugs Apr 6, 2018
pixelsizes Fixed lazy load bugs Apr 6, 2018
postmessage Fixed lazy load bugs Apr 6, 2018
pr Tidied up head code some more Feb 2, 2018
promise Tidied up head code some more Feb 2, 2018
promises Fixed lazy load bugs Apr 6, 2018
queryselector Fixed lazy load bugs Apr 6, 2018
requestanimationframe Fixed lazy load bugs Apr 6, 2018
requestidlecallback Fixed lazy load bugs Apr 6, 2018
resizedimages Fixed lazy load bugs Apr 6, 2018
resourcetiming Fixed lazy load bugs Apr 6, 2018
rt Tidied up head code some more Feb 2, 2018
rtcdatachannel Added link to blog post about teaching web dev Jun 22, 2018
rtcpeerconnection Added link to audit article Aug 23, 2018
s Fixed errors found by stylelint Aug 4, 2018
sc Tidied up head code some more Feb 2, 2018
scroll Fixed lazy load bugs Apr 6, 2018
scrollintoview Fixed lazy load bugs Apr 6, 2018
search Fixed errors found by stylelint Aug 4, 2018
serviceworker Fixed lazy load bugs Apr 6, 2018
sessionstorage Fixed lazy load bugs Apr 6, 2018
sh Fixed errors found by stylelint Aug 4, 2018
shaka Fixed lazy load bugs Apr 6, 2018
shortcuts Fixed lazy load bugs Apr 6, 2018
simpl.info Added grid examples Mar 28, 2018
singleton Added singleton class example Jul 25, 2018
sizeswvalues Fixed lazy load bugs Apr 6, 2018
softhyphen Fixed lazy load bugs Apr 6, 2018
sources Tidied up head code some more Feb 2, 2018
srcsetwvalues Fixed lazy load bugs Apr 6, 2018
srcsetxvalues Fixed lazy load bugs Apr 6, 2018
stt Fixed lazy load bugs Apr 6, 2018
svg Added google-developers.png for svg codepen Sep 14, 2018
sw Tidied up head code some more Feb 2, 2018
t Tidied up head code some more Feb 2, 2018
track Fixed errors found by stylelint Aug 4, 2018
tts Fixed lazy load bugs Apr 6, 2018
ua Tidied up head code some more Feb 2, 2018
uc Fixed lazy load bugs Apr 6, 2018
useragent Fixed lazy load bugs Apr 6, 2018
v Tidied up head code some more Feb 2, 2018
ve Tidied up head code some more Feb 2, 2018
vibrate Fixed lazy load bugs Apr 6, 2018
video replace navigator.getUserMedia with navigator.mediaDevices.getUserMedia Oct 19, 2018
videoalpha Fixed errors found by stylelint Aug 4, 2018
videomedia Fixed lazy load bugs Apr 6, 2018
w Tidied up head code some more Feb 2, 2018
wa Tidied up head code some more Feb 2, 2018
webanimations Fixed lazy load bugs Apr 6, 2018
webaudio Fixed lazy load bugs Apr 6, 2018
webfonts Fixed lazy load bugs Apr 6, 2018
webgl Fixed lazy load bugs Apr 6, 2018
webp Fixed lazy load bugs Apr 6, 2018
webrtc Fixed lazy load bugs Apr 6, 2018
webrtcwebaudio remove URL.createObjectURL(mediaStream) Oct 18, 2018
websocket Fixed lazy load bugs Apr 6, 2018
websql Fixed lazy load bugs Apr 6, 2018
webworkers Fixed lazy load bugs Apr 6, 2018
wordlist Updated wordlists to use LF Jul 7, 2017
ws Tidied up head code some more Feb 2, 2018
xhr Fixed lazy load bugs Apr 6, 2018
yt Tidied up head code some more Feb 2, 2018
.eslintignore Updated to fix eslint validation errors Aug 9, 2017
.eslintrc Added loadevents Aug 15, 2018
.gitignore Fixed ajax redirect Aug 15, 2018
.stylelintrc Moved from csslint to stylelint Aug 4, 2018
.travis.yml changed to node version Mar 21, 2017
404.html Tweaks to meta tags Dec 7, 2017
AUTHORS Added medianews.me link back to index.html Jun 9, 2015
CNAME Updated CNAME Nov 7, 2015
CONTRIBUTING.md Updated licence info Mar 21, 2017
Gruntfile.js Updated Gruntfile.js not to use htmlhint Sep 17, 2018
LICENSE Added medianews.me link back to index.html Jun 9, 2015
README.md Fixed broken links. Mar 23, 2017
favicon.ico favicon Aug 15, 2012
foo tweaks... Apr 5, 2017
index.html Added link to audit article Aug 23, 2018
manifest.json Updated meta tags for UTF-8 Dec 7, 2017
package-lock.json Updated package.json to remove htmlhint, which uses vulnerable minima… Sep 17, 2018
package.json Updated package.json to remove htmlhint, which uses vulnerable minima… Sep 17, 2018
sitemap.xml Server-Sent Events (EventSource) Aug 5, 2013
sw.js Added link to audit article Aug 23, 2018

README.md

Build Status

Check out my new blog post: High performance HTML.

simpl

simpl.info is a website for simplest-possible code examples.

Your contributions and comments are welcome. See CONTRIBUTING.md for more information.

The Developer's Guide for this repo has more information about code style, structure and validation.

A list of resources for working with HTML, CSS and JavaScript is available at bit.ly/webdevres

Analytics

License

Copyright 2017 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Please note: this is not a Google product.