-
Notifications
You must be signed in to change notification settings - Fork 846
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3768f4
commit 2d33a1c
Showing
589 changed files
with
42,550 additions
and
40,675 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
theme: jekyll-theme-slate | ||
theme: jekyll-theme-slate |
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,16 @@ | ||
p { | ||
background-color: white; | ||
color: black; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-family: serif; | ||
} | ||
|
||
h1 { | ||
text-shadow: 2px 2px 2px #747474; | ||
text-align: center; | ||
font-weight: bold; | ||
font-size: 22px; | ||
font-family: sans-serif; | ||
} | ||
p { | ||
background-color: white; | ||
color: black; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-family: serif; | ||
} | ||
|
||
h1 { | ||
text-shadow: 2px 2px 2px #747474; | ||
text-align: center; | ||
font-weight: bold; | ||
font-size: 22px; | ||
font-family: sans-serif; | ||
} |
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,16 @@ | ||
p { | ||
border-style: groove; | ||
border-width: 2px; | ||
background-color: #8d0019; | ||
color: #fcff00; | ||
font-size: 14px; | ||
font-family: Georgia, "Times New Roman", Times, serif; | ||
} | ||
|
||
h1 { | ||
background-color: #000c6e; | ||
color: #ff8100; | ||
font-weight: bold; | ||
font-size: 20px; | ||
font-family: "Zapf Chancery", "Comic Sans MS", cursive; | ||
} | ||
p { | ||
border-style: groove; | ||
border-width: 2px; | ||
background-color: #8d0019; | ||
color: #fcff00; | ||
font-size: 14px; | ||
font-family: Georgia, "Times New Roman", Times, serif; | ||
} | ||
|
||
h1 { | ||
background-color: #000c6e; | ||
color: #ff8100; | ||
font-weight: bold; | ||
font-size: 20px; | ||
font-family: "Zapf Chancery", "Comic Sans MS", cursive; | ||
} |
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,17 +1,32 @@ | ||
<html lang="en-us"> | ||
<head> | ||
<title>Alternate Style Sheets example</title> | ||
<link href="default.css" rel="stylesheet" title="Default Style"> | ||
<link href="simple.css" rel="alternate stylesheet" title="Simple"> | ||
<link href="fancy.css" rel="alternate stylesheet" title="Fancy"> | ||
</head> | ||
<body> | ||
<h1>About alternative style sheets</h1> | ||
<p>Firefox offers support for <em>alternative style sheets</em>. Pages that provide alternative style sheets allow the user to select the style in which the page is displayed using the View>Page Style submenu. This provides a way for users to see multiple versions of a page, based on their needs or preferences.</p> | ||
|
||
<p>A web page can use the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link"><link></a> element to add alternative style sheets to a document.</p> | ||
|
||
<h1>Try it out!</h1> | ||
<p>Go to the View>Page Style submenu and select a different style to watch this page's look change!</p> | ||
</body> | ||
</html> | ||
<html lang="en-us"> | ||
<head> | ||
<title>Alternate Style Sheets example</title> | ||
<link href="default.css" rel="stylesheet" title="Default Style" /> | ||
<link href="simple.css" rel="alternate stylesheet" title="Simple" /> | ||
<link href="fancy.css" rel="alternate stylesheet" title="Fancy" /> | ||
</head> | ||
<body> | ||
<h1>About alternative style sheets</h1> | ||
<p> | ||
Firefox offers support for <em>alternative style sheets</em>. Pages that | ||
provide alternative style sheets allow the user to select the style in | ||
which the page is displayed using the View>Page Style submenu. This | ||
provides a way for users to see multiple versions of a page, based on | ||
their needs or preferences. | ||
</p> | ||
|
||
<p> | ||
A web page can use the | ||
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link" | ||
><link></a | ||
> | ||
element to add alternative style sheets to a document. | ||
</p> | ||
|
||
<h1>Try it out!</h1> | ||
<p> | ||
Go to the View>Page Style submenu and select a different style to watch | ||
this page's look change! | ||
</p> | ||
</body> | ||
</html> |
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,10 +1,10 @@ | ||
p { | ||
font-size: 12px; | ||
font-family: sans-serif; | ||
} | ||
|
||
h1 { | ||
font-weight: bold; | ||
font-size: 16px; | ||
font-family: sans-serif; | ||
} | ||
p { | ||
font-size: 12px; | ||
font-family: sans-serif; | ||
} | ||
|
||
h1 { | ||
font-weight: bold; | ||
font-size: 16px; | ||
font-family: sans-serif; | ||
} |
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
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,27 +1,26 @@ | ||
var section = document.querySelector('section'); | ||
var editable = document.querySelector('.editable'); | ||
var textareaHTML = document.querySelector('.playable-html'); | ||
var textareaCSS = document.querySelector('.playable-css'); | ||
var reset = document.getElementById('reset'); | ||
var section = document.querySelector("section"); | ||
var editable = document.querySelector(".editable"); | ||
var textareaHTML = document.querySelector(".playable-html"); | ||
var textareaCSS = document.querySelector(".playable-css"); | ||
var reset = document.getElementById("reset"); | ||
var htmlCode = textareaHTML.value; | ||
var cssCode = textareaCSS.value; | ||
|
||
let editorHeading = document.createElement("h4"); | ||
editorHeading.innerHTML = "Interactive editor"; | ||
document.querySelector('body').insertBefore(editorHeading,textareaCSS); | ||
document.querySelector("body").insertBefore(editorHeading, textareaCSS); | ||
|
||
function fillCode() { | ||
editable.innerHTML = textareaCSS.value; | ||
section.innerHTML = textareaHTML.value; | ||
editable.innerHTML = textareaCSS.value; | ||
section.innerHTML = textareaHTML.value; | ||
} | ||
|
||
reset.addEventListener('click', function () { | ||
textareaHTML.value = htmlCode; | ||
textareaCSS.value = cssCode; | ||
fillCode(); | ||
reset.addEventListener("click", function () { | ||
textareaHTML.value = htmlCode; | ||
textareaCSS.value = cssCode; | ||
fillCode(); | ||
}); | ||
|
||
|
||
textareaHTML.addEventListener('input', fillCode); | ||
textareaCSS.addEventListener('input', fillCode); | ||
window.addEventListener('load', fillCode); | ||
textareaHTML.addEventListener("input", fillCode); | ||
textareaCSS.addEventListener("input", fillCode); | ||
window.addEventListener("load", fillCode); |
Oops, something went wrong.