forked from mdn/interactive-examples
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
* upstream/master: Add source example. (mdn#885) Add object and param examples. (mdn#876) Add <li> example (mdn#896) small js change (mdn#894) Add <ul> example (mdn#895) Add <wbr> example (mdn#874) Add html input password (mdn#867) Replace <br> with <div> in input examples (mdn#877) chore(deps): update dependency npm-run-all to v4.1.3 (mdn#893) Add <hr> example (mdn#883) Add <p> example (mdn#884)
- Loading branch information
Showing
33 changed files
with
532 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
live-examples/html-examples/embedded-content/css/object.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
footer { | ||
font-size: .8rem; | ||
position: absolute; | ||
bottom: 10px; | ||
right: 10px; | ||
} | ||
|
||
.output { | ||
background: #eee; | ||
position: relative; | ||
} |
11 changes: 11 additions & 0 deletions
11
live-examples/html-examples/embedded-content/css/source.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
footer { | ||
font-size: .8rem; | ||
position: absolute; | ||
bottom: 10px; | ||
right: 10px; | ||
} | ||
|
||
.output { | ||
background: #eee; | ||
position: relative; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<object type="application/pdf" | ||
data="/media/examples/pdf_open_parameters.pdf" | ||
width="300" | ||
height="200"> | ||
</object> | ||
|
||
<footer><a href="https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf">PDF</a> by Adobe</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<video controls | ||
width="300" | ||
height="200" | ||
muted="true"> | ||
<source src="/media/examples/stream_of_water.webm" | ||
type="video/webm"> | ||
<source src="/media/examples/stream_of_water.mp4" | ||
type="video/mp4"> | ||
This browser does not support the HTML5 video element. | ||
</video> | ||
|
||
<footer><a href=https://www.youtube.com/watch?v=Z_4TlZCvYL4>Video</a> by Leonard Lee</footer> |
10 changes: 10 additions & 0 deletions
10
live-examples/html-examples/inline-text-semantics/css/wbr.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.output { | ||
background-color: gray; | ||
} | ||
|
||
#example-paragraphs { | ||
background-color: white; | ||
overflow: hidden; | ||
resize: horizontal; | ||
width: 7rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div id="example-paragraphs"> | ||
<p>Fernstraßenbauprivatfinanzierungsgesetz</p> | ||
<p>Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz</p> | ||
<p>Fernstraßen­bau­privat­finanzierungs­gesetz</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
<fieldset> | ||
<legend>Choose some monster features</legend> | ||
|
||
<input type="checkbox" | ||
id="scales" name="feature" value="scales" checked /> | ||
<label for="scales">Scales</label><br/> | ||
<div> | ||
<input type="checkbox" id="scales" name="feature" | ||
value="scales" checked /> | ||
<label for="scales">Scales</label> | ||
</div> | ||
|
||
<input type="checkbox" | ||
id="horns" name="feature" value="horns" /> | ||
<label for="horns">Horns</label><br/> | ||
<div> | ||
<input type="checkbox" id="horns" name="feature" | ||
value="horns" /> | ||
<label for="horns">Horns</label> | ||
</div> | ||
|
||
<input type="checkbox" | ||
id="claws" name="feature" value="claws" /> | ||
<label for="claws">Claws</label> | ||
<div> | ||
<input type="checkbox" id="claws" name="feature" | ||
value="claws" /> | ||
<label for="claws">Claws</label> | ||
</div> | ||
|
||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
<fieldset> | ||
<legend>Choose some monster colors</legend> | ||
|
||
<input type="color" | ||
id="head" name="color" value="#e66465" /> | ||
<label for="head">Head</label><br/> | ||
<div> | ||
<input type="color" id="head" name="color" | ||
value="#e66465" /> | ||
<label for="head">Head</label> | ||
</div> | ||
|
||
<input type="color" | ||
id="body" name="color" value="#f6b73c" /> | ||
<label for="body">Body</label><br/> | ||
<div> | ||
<input type="color" id="body" name="color" | ||
value="#f6b73c" /> | ||
<label for="body">Body</label> | ||
</div> | ||
|
||
<input type="color" | ||
id="feet" name="color" value="#3f87a6" /> | ||
<label for="feet">Feet</label> | ||
<div> | ||
<input type="color" id="feet" name="color" | ||
value="#3f87a6" /> | ||
<label for="feet">Feet</label> | ||
</div> | ||
|
||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@font-face { | ||
font-family: 'Fira Sans'; | ||
src: local('FiraSans-Regular'), | ||
url('/media/fonts/FiraSans-Regular.woff2') format('woff2'); | ||
} | ||
|
||
legend { | ||
background-color: #000; | ||
color: #fff; | ||
padding: 3px 6px; | ||
} | ||
|
||
.output { | ||
font: 1rem 'Fira Sans', sans-serif; | ||
} | ||
|
||
label { | ||
display: inline-block; | ||
font-size: .9rem; | ||
width: 35%; | ||
} | ||
|
||
input[type="text"], | ||
input[type="password"] { | ||
width: 60%; | ||
} | ||
|
||
input { | ||
margin: .4rem 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
<fieldset> | ||
<legend>Choose trip dates</legend> | ||
|
||
<label for="start">Start</label> | ||
<input type="date" | ||
id="start" name="trip" value="2018-07-22" | ||
min="2018-01-01" max="2018-12-31" /><br/> | ||
<div> | ||
<label for="start">Start</label> | ||
<input type="date" id="start" name="trip" | ||
value="2018-07-22" | ||
min="2018-01-01" max="2018-12-31" /> | ||
</div> | ||
|
||
<label for="end">End</label> | ||
<input type="date" | ||
id="end" name="trip" value="2018-07-29" | ||
min="2018-01-01" max="2018-12-31"/ > | ||
<div> | ||
<label for="end">End</label> | ||
<input type="date" id="end" name="trip" | ||
value="2018-07-29" | ||
min="2018-01-01" max="2018-12-31"/ > | ||
</div> | ||
|
||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
<fieldset> | ||
<legend>Profile</legend> | ||
|
||
<label for="display-name">Display name:</label> | ||
<input type="text" | ||
id="display-name" name="display-name"/><br/> | ||
<div> | ||
<label for="name">Display name:</label> | ||
<input type="text" id="name" name="name"/> | ||
</div> | ||
|
||
<label for="avatar">Profile picture:</label> | ||
<input type="file" | ||
id="avatar" name="avatar" | ||
accept="image/png, image/jpeg" /> | ||
<div> | ||
<label for="avatar">Profile picture:</label> | ||
<input type="file" | ||
id="avatar" name="avatar" | ||
accept="image/png, image/jpeg" /> | ||
</div> | ||
|
||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<fieldset> | ||
<legend>Sign in</legend> | ||
|
||
<div> | ||
<label for="userName">Username:</label> | ||
<input type="text" id="username" name="username" | ||
required /> | ||
</div> | ||
|
||
<div> | ||
<label for="password">Password:</label> | ||
<input type="password" id="password" name="password" | ||
minLength="8" required | ||
placeholder="8 characters minimum" /> | ||
</div> | ||
|
||
<input type="submit" value="Sign in"> | ||
|
||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
hr { | ||
border: none; | ||
border-top: 3px double #333; | ||
color: #333; | ||
overflow: visible; | ||
text-align: center; | ||
height: 5px; | ||
} | ||
|
||
hr:after { | ||
background: #fff; | ||
content: '§'; | ||
padding: 0 4px; | ||
position: relative; | ||
top: -13px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ol li { | ||
font-weight: bold; | ||
} | ||
|
||
ul li { | ||
font-weight: normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
p { | ||
margin: 10px 0; | ||
padding: 5px; | ||
border: 1px solid #999; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
li { | ||
list-style-type: circle; | ||
} | ||
|
||
li li { | ||
list-style-type: square; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p>§1: The first rule of Fight Club is: You do not talk about Fight Club.</p> | ||
<hr> | ||
<p>§2: The second rule of Fight Club is: You do not talk about Fight Club.</p> |
Oops, something went wrong.