HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<style>@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400;600;700;900&display=swap');</style>
<style>@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100;200;300;400;500;600;700;800;900&display=swap');</style>
<form>
<div class="frame" id="one">
<div class="header">
<div class="name">40K Data Sheet Designer</div>
<div class="padding"><!--Intentionally blank--></div>
</div>
<div id="label">
<span>SQUAD NAME</span><input id="squad_name" type=text placeholder="Assault Intercessor Squad"></input>
<span>POWER</span><input id="power" type=text placeholder="5"></input>
</div>
<div class="label">
<div class="center no" id="label">No.<input type=text placeholder="4-9"></input></div>
<div class="center name" id="label">Name<input type=text placeholder="Assault Intercessor"></input></div>
</div>
<div class="label form">
<div class="center" id="label">M<input type=text placeholder="6""></input></div>
<div class="center" id="label">WS<input type=text placeholder="3+"></input></div>
<div class="center" id="label">BS<input type=text placeholder="3+"></input></div>
<div class="center" id="label">S<input type=text placeholder="4"></input></div>
<div class="center" id="label">T<input type=text placeholder="4"></input></div>
<div class="center" id="label">W<input type=text placeholder="2"></input></div>
<div class="center" id="label">A<input type=text placeholder="2"></input></div>
<div class="center" id="label">Ld<input type=text placeholder="7"></input></div>
<div class="center" id="label">Sv<input type=text placeholder="3+"></input></div>
</div>
</div>
</div>
</form>
</br></br>
<div class="page">
<div class="frame" id="one">
<div class="header">
<!--<div class="role">-->
<!--You can only select one troop type per data card, ensure only 1 troop type is uncommented-->
<!--<div class="hq" title="HQ" alt-text="HQ"></div>-->
<!--<div class="assault" title="Assault" alt-text="Assault"></div>-->
<!--<div class="elites" title="Elites" alt-text="Elites"></div>-->
<!--<div class="fast-attack" title="Fast Attack" alt-text="Fast Attack"></div>-->
<!--<div class="dedicated-transport" title="Dedicated Transport" alt-text="Dedicated Transport"></div>-->
<!--<div class="flyer" title="Flyer" alt-text="Flyer"></div>-->
<!--<div class="heavy-support" title="Heavy Support" alt-text="Heavy Support"></div>-->
<!--<div class="fortification" title="Fortification" alt-text="Fortification"></div>-->
<!--<div class="lord-of-war" title="Lord of War" alt-text="Lord of War"></div>-->
<!--</div>-->
<div class="name">
<div id="A0001">Assault Intercessor Squad</div><!--Assault Intercessor Squad-->
<div class="power_value" id="A0002">5</div><!--5-->
<div class="power"><p>POWER</p></div>
</div>
</div>
<div class="label heading">
<div class="center" id="label">No.</div>
<div class="left" id="label">Name</div>
<div class="center" id="label">M</div>
<div class="center" id="label">WS</div>
<div class="center" id="label">BS</div>
<div class="center" id="label">S</div>
<div class="center" id="label">T</div>
<div class="center" id="label">W</div>
<div class="center" id="label">A</div>
<div class="center" id="label">Ld</div>
<div class="center" id="label">Sv</div>
</div>
<div class="profile">
<div class="odd troop data">
<div class="center" id="value B0001">4-9</div><!--4-9-->
<div class="left" id="value B0002">Assault Intercessor</div><!--Assault Intercessor-->
<div class="center" id="value B0003">6"</div><!--6"-->
<div class="center" id="value B0004">3+</div><!--3+-->
<div class="center" id="value B0005">3+</div><!--3+-->
<div class="center" id="value B0006">4</div><!--4-->
<div class="center" id="value B0007">4</div><!--4-->
<div class="center" id="value B0008">2</div><!--2-->
<div class="center" id="value B0009">2</div><!--2-->
<div class="center" id="value B0010">7</div><!--7-->
<div class="center" id="value B0011">3+</div><!--3+-->
</div>
<div class="even troop data">
<div class="center" id="value C0001">1</div>
<div class="left" id="value C0002">Assault Intercessor Sergeant</div>
<div class="center" id="value C0003">6"</div>
<div class="center" id="value C0004">3+</div>
<div class="center" id="value C0005">3+</div>
<div class="center" id="value C0006">4</div>
<div class="center" id="value C0007">4</div>
<div class="center" id="value C0008">2</div>
<div class="center" id="value C0009">3</div>
<div class="center" id="value C0010">8</div>
<div class="center" id="value C0011">3+</div>
</div>
</div>
<div class="description D0001">If this unit contains 6 or more models, its Power Rating is increased to 10. Every model is equiped with: heavy bolt pistol; Astartes Chainsword; frag grenades; krak grenades.</div>
<div class="weapon heading">
<div class="left" id="label">WEAPON</div>
<div class="center" id="label">RANGE</div>
<div class="center" id="label">TYPE</div>
<div class="center" id="label">S</div>
<div class="center" id="label">AP</div>
<div class="center" id="label">D</div>
<div class="left" id="label">ABILITIES</div>
</div>
<div class="profile">
<div class="odd weapon data">
<div class="left" id="value E0001">Heavy bolt pistol</div>
<div class="center" id="value E0002">18"</div>
<div class="center" id="value E0003">Pistol 1</div>
<div class="center" id="value E0004">4</div>
<div class="center" id="value E0005">-1</div>
<div class="center" id="value E0006">1</div>
<div class="justify" id="value E0007">-</div>
</div>
<div class="even weapon data">
<div class="left" id="value">Plasma pistol</div>
<div class="left desc" id="value">Before selecting targets, select one of the profiles below to make attacks with.</div>
</div>
<div class="even weapon data">
<div class="left" id="value">- Standard</div>
<div class="center" id="value">12"</div>
<div class="center" id="value">Pistol 1</div>
<div class="center" id="value">7</div>
<div class="center" id="value">-3</div>
<div class="center" id="value">1</div>
<div class="justify" id="value">-</div>
</div>
<div class="even weapon data">
<div class="left" id="value">- Supercharge</div>
<div class="center" id="value">12"</div>
<div class="center" id="value">Pistol 1</div>
<div class="center" id="value">8</div>
<div class="center" id="value">-3</div>
<div class="center" id="value">2</div>
<div class="justify" id="value">On an unmodified hit roll of 1, the bearer is destroyed after shooting with this weapon.</div>
</div>
<div class="odd weapon data">
<div class="left" id="value">Astartes chainsword</div>
<div class="center" id="value">Melee</div>
<div class="center" id="value">Melee</div>
<div class="center" id="value">User</div>
<div class="center" id="value">-1</div>
<div class="center" id="value">1</div>
<div class="justify" id="value">When the bearer fights, it makes 1 additional attack with this weapon.</div>
</div>
<div class="even weapon data">
<div class="left" id="value">Frag Grenades</div>
<div class="center" id="value">6"</div>
<div class="center" id="value">D6</div>
<div class="center" id="value">3</div>
<div class="center" id="value">0</div>
<div class="center" id="value">1</div>
<div class="justify" id="value">Blast</div>
</div>
<div class="odd weapon data">
<div class="left" id="value">Krak Grenades</div>
<div class="center" id="value">6"</div>
<div class="center" id="value">1</div>
<div class="center" id="value">6</div>
<div class="center" id="value">-1</div>
<div class="center" id="value">D3</div>
<div class="justify" id="value">-</div>
</div>
</div>
<div class="padding"><!--Intentionally blank--></div>
<div class="wargear heading">
<div class="left" id="wg_label">WARGEAR OPTIONS</div>
</div>
<div class="profile">
<div class="odd data">
<div class="wargear" id="value">
<ul>
<li>The Assault Intercessor Sergeant can be equiped with 1 plasma pistol instead of 1 heavy bolt pistol.</li>
<!--<li>This is a second line for the Wargear Options section, copy and remove the comment flags beside the List Item elements at the start and end of this row to add another Option.</li>-->
</ul>
</div>
</div>
</div>
<div class="padding"><!--Intentionally blank--></div>
<div class="wargear heading">
<div class="left" id="wg_label">ABILITIES</div>
</div>
<div class="profile">
<div class="odd data">
<div class="wargear" id="value">
<p><span class="bold">Angels of Death</span>(See Codex Space Marines)</p>
<p><span class="bold">Combat Squads</span>If this unit contains 10 models, then during deployment, before any units have been set up, it can be divided into two units of 5 models.</p>
</div>
</div>
</div>
<div class="profile">
<div class="odd data">
<div class="wargear" id="value">
<p><span>FACTION KEYWORDS:</span><span class="bold">IMPERIUM, ADEPTUS ASTARTES, <CHAPTER></span></p>
<p><span>KEYWORDS:</span><span class="bold">INFANTRY, PRIMARIS, ASSAULT INTERCESSOR SQUAD</span></p>
</div>
</div>
</div>
</div>
</div>
body {
font-family: 'Source+Sans+Pro', sans-serif;
font-weight: 400;
height: auto;
width: 820px;
}
form {
background-color: #d4d5d0;
height: 250px;
padding: 10px;
margin: 0;
}
form h1 {
padding: 0;
margin: 0;
}
.form div {
padding: 5px;
float: left;
}
.form .no {
width: 50px;
text-align: center;
}
.form .name {
width: 50px;
text-align: center;
}
.form input {
width: 25px;
text-align: center;
display: inline;
}
ul {
margin: 0;
padding: 0;
list-style: disc inside none;
}
input {
width: auto;
}
.page {
display: grid;
position: relative;
place-items: center;
height: auto;
width: 820px;
background-color: #d4d5d0;
}
.frame {
height: auto;
margin: 10px 0;
padding-bottom: 15px;
width: 800px;
background-color: #e2e2dd;
}
.header {
display: block;
height: 41px;
margin: 0 15px 8px;
}
.role {
position: relative;
float: left;
width: 54px;
height: 69px;
}
.role div {
height: 60px;
width: 60px;
position: absolute;
bottom: 0;
}
#icon {
display: block;
height: 20px;
width: 20px;
margin: 0 auto;
background-repeat: no-repeat;
}
.name {
float: left;
display: grid;
grid-template-columns: 14fr 1fr 1fr;
width: 770px;
height: 28px;
padding: 12px 0 0 0;
line-height: 26px;
text-transform: uppercase;
vertical-align: middle;
font-size: 32px;
font-weight: 700;
letter-spacing: -2px;
border-bottom: 2px solid #000;
}
.power_value {
text-align: right;
padding-right: 8px;
}
.name:nth-of-type(3) {
height: 16px;
}
.power p {
position: relative;
top: 4px;
font-size: 16px;
text-align: bottom;
}
.heading {
display: grid;
background: #b6beba;
margin: 0 15px;
grid-template-rows: 24px;
vertical-align: middle;
font-size: 16px;
border-top: 2px solid #b6beba;
border-bottom: 2px solid #777273;
}
.label {
grid-template-columns: 1fr 6fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}
.weapon {
grid-template-columns: 3fr 1fr 2fr 1fr 1fr 1fr 4fr;
}
.weapon .desc {
grid-column: 2 / 8;
}
.wargear {
padding-left: 8px;
grid-template-columns: 1fr;
}
.wargear #label.left {
padding-left: 6px;
display: grid;
place-items: center;
justify-content: left;
}
.left {
padding-left: 6px;
display: grid;
place-items: center;
justify-content: left;
}
.justify {
padding-left: 0px;
text-justify: inter-word;
}
.center {
display: grid;
place-items: center;
justify-content: center;
}
.padding {
padding: 5px -0
}
p {
padding: 0;
margin: 0;
}
span {
padding-right: 5px;
}
.bold {
font-weight: 700;
}
#label {
vertical-align: middle;
font-weight: 600;
letter-spacing: -1px;
}
#wg_label {
padding-left: 0;
vertical-align: middle;
font-weight: 600;
letter-spacing: -1px;
grid-column: 1 / span 6;
}
.profile {
border-bottom: 1px solid #777273;
margin: 0 15px;
}
.data {
display: grid;
font-size: 12px;
}
.troop {
grid-template-columns: 1fr 6fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}
.odd {
background: #fff;
padding: 3px 0;
}
.even {
background: #dee3e0;
padding: 3px 0;
}
#value {
vertical-align: middle;
letter-spacing: -1px;
}
.description {
background: #dee3e0;
margin: 4px 15px;
padding: 0 8px;
vertical-align: middle;
font-size: 12px;
text-align: justify;
/*letter-spacing: -1px;*/
word-spacing: -1px;
line-height: 20px;
}
.hq {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/HQ.svg");}
.assault {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Troops.svg");}
.elites {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Elites.svg");}
.fast-attack {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Fast-Attack.svg");}
.dedicated-transport {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Dedicated-Transport.svg");}
.flyer {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Flyer.svg");}
.heavy-support {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Heavy-Support.svg");}
.fortification {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Fortification.svg");}
.lord-of-war {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Lord-of-War.svg");}
.m {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Move.svg");}
.ws {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/WeaponSkill.svg");}
.bs {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/BallisticSkill.svg");}
.s {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Strength.svg");}
.t {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Toughness.svg");}
.w {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Wounds.svg");}
.a {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Attacks.svg");}
.ld {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Leadership.svg");}
.sv {background-image: url("https://raw.githubusercontent.com/Locequen/40k-Data-Card/master/src/svg/Save.svg");}
function set(el, text) {
while (el.firstChild) el.removeChild(el.firstChild);
el.appendChild(document.createTextNode(text))
}
function A0001() {
var inputA0001 = document.getElementsByTagName('input')[0],
origA0001 = document.getElementById('A0001'),
oldTextA0001 = inputA0001.value,
timeout = null;
function handleChangeA0001() {
var newTextA0001 = inputA0001.value;
if (newTextA0001 == oldTextA0001) return;
else oldTextA0001 = newTextA0001;
set(origA0001, newTextA0001);
}
function eventHandlerA0001() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeA0001, 50);
}
inputA0001.onkeydown = inputA0001.onkeyup = inputA0001.onclick = eventHandlerA0001;
}
function A0002() {
var inputA0002 = document.getElementsByTagName('input')[1],
origA0002 = document.getElementById('A0002'),
oldTextA0002 = inputA0002.value,
timeout = null;
function handleChangeA0002() {
var newTextA0002 = inputA0002.value;
if (newTextA0002 == oldTextA0002) return;
else oldTextA0002 = newTextA0002;
set(origA0002, newTextA0002);
}
function eventHandlerA0002() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeA0002, 50);
}
inputA0002.onkeydown = inputA0002.onkeyup = inputA0002.onclick = eventHandlerA0002;
}
function B0001() {
var inputB0001 = document.getElementsByTagName('input')[2],
origB0001 = document.getElementById('value B0001'),
oldTextB0001 = inputB0001.value,
timeout = null;
function handleChangeB0001() {
var newTextB0001 = inputB0001.value;
if (newTextB0001 == oldTextB0001) return;
else oldTextB0001 = newTextB0001;
set(origB0001, newTextB0001);
}
function eventHandlerB0001() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0001, 50);
}
inputB0001.onkeydown = inputB0001.onkeyup = inputB0001.onclick = eventHandlerB0001;
}
function B0002() {
var inputB0002 = document.getElementsByTagName('input')[3],
origB0002 = document.getElementById('value B0002'),
oldTextB0002 = inputB0002.value,
timeout = null;
function handleChangeB0002() {
var newTextB0002 = inputB0002.value;
if (newTextB0002 == oldTextB0002) return;
else oldTextB0002 = newTextB0002;
set(origB0002, newTextB0002);
}
function eventHandlerB0002() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0002, 50);
}
inputB0002.onkeydown = inputB0002.onkeyup = inputB0002.onclick = eventHandlerB0002;
}
function B0003() {
var inputB0003 = document.getElementsByTagName('input')[4],
origB0003 = document.getElementById('value B0003'),
oldTextB0003 = inputB0003.value,
timeout = null;
function handleChangeB0003() {
var newTextB0003 = inputB0003.value;
if (newTextB0003 == oldTextB0003) return;
else oldTextB0003 = newTextB0003;
set(origB0003, newTextB0003);
}
function eventHandlerB0003() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0003, 50);
}
inputB0003.onkeydown = inputB0003.onkeyup = inputB0003.onclick = eventHandlerB0003;
}
function B0004() {
var inputB0004 = document.getElementsByTagName('input')[5],
origB0004 = document.getElementById('value B0004'),
oldTextB0004 = inputB0004.value,
timeout = null;
function handleChangeB0004() {
var newTextB0004 = inputB0004.value;
if (newTextB0004 == oldTextB0004) return;
else oldTextB0004 = newTextB0004;
set(origB0004, newTextB0004);
}
function eventHandlerB0004() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0004, 50);
}
inputB0004.onkeydown = inputB0004.onkeyup = inputB0004.onclick = eventHandlerB0004;
}
function B0005() {
var inputB0005 = document.getElementsByTagName('input')[6],
origB0005 = document.getElementById('value B0005'),
oldTextB0005 = inputB0005.value,
timeout = null;
function handleChangeB0005() {
var newTextB0005 = inputB0005.value;
if (newTextB0005 == oldTextB0005) return;
else oldTextB0005 = newTextB0005;
set(origB0005, newTextB0005);
}
function eventHandlerB0005() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0005, 50);
}
inputB0005.onkeydown = inputB0005.onkeyup = inputB0005.onclick = eventHandlerB0005;
}
function B0006() {
var inputB0006 = document.getElementsByTagName('input')[7],
origB0006 = document.getElementById('value B0006'),
oldTextB0006 = inputB0006.value,
timeout = null;
function handleChangeB0006() {
var newTextB0006 = inputB0006.value;
if (newTextB0006 == oldTextB0006) return;
else oldTextB0006 = newTextB0006;
set(origB0006, newTextB0006);
}
function eventHandlerB0006() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0006, 50);
}
inputB0006.onkeydown = inputB0006.onkeyup = inputB0006.onclick = eventHandlerB0006;
}
function B0007() {
var inputB0007 = document.getElementsByTagName('input')[8],
origB0007 = document.getElementById('value B0007'),
oldTextB0007 = inputB0007.value,
timeout = null;
function handleChangeB0007() {
var newTextB0007 = inputB0007.value;
if (newTextB0007 == oldTextB0007) return;
else oldTextB0007 = newTextB0007;
set(origB0007, newTextB0007);
}
function eventHandlerB0007() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0007, 50);
}
inputB0007.onkeydown = inputB0007.onkeyup = inputB0007.onclick = eventHandlerB0007;
}
function B0008() {
var inputB0008 = document.getElementsByTagName('input')[9],
origB0008 = document.getElementById('value B0008'),
oldTextB0008 = inputB0008.value,
timeout = null;
function handleChangeB0008() {
var newTextB0008 = inputB0008.value;
if (newTextB0008 == oldTextB0008) return;
else oldTextB0008 = newTextB0008;
set(origB0008, newTextB0008);
}
function eventHandlerB0008() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0008, 50);
}
inputB0008.onkeydown = inputB0008.onkeyup = inputB0008.onclick = eventHandlerB0008;
}
function B0009() {
var inputB0009 = document.getElementsByTagName('input')[10],
origB0009 = document.getElementById('value B0009'),
oldTextB0009 = inputB0009.value,
timeout = null;
function handleChangeB0009() {
var newTextB0009 = inputB0009.value;
if (newTextB0009 == oldTextB0009) return;
else oldTextB0009 = newTextB0009;
set(origB0009, newTextB0009);
}
function eventHandlerB0009() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0009, 50);
}
inputB0009.onkeydown = inputB0009.onkeyup = inputB0009.onclick = eventHandlerB0009;
}
function B0010() {
var inputB0010 = document.getElementsByTagName('input')[11],
origB0010 = document.getElementById('value B0010'),
oldTextB0010 = inputB0010.value,
timeout = null;
function handleChangeB0010() {
var newTextB0010 = inputB0010.value;
if (newTextB0010 == oldTextB0010) return;
else oldTextB0010 = newTextB0010;
set(origB0010, newTextB0010);
}
function eventHandlerB0010() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0010, 50);
}
inputB0010.onkeydown = inputB0010.onkeyup = inputB0010.onclick = eventHandlerB0010;
}
function B0011() {
var inputB0011 = document.getElementsByTagName('input')[12],
origB0011 = document.getElementById('value B0011'),
oldTextB0011 = inputB0011.value,
timeout = null;
function handleChangeB0011() {
var newTextB0011 = inputB0011.value;
if (newTextB0011 == oldTextB0011) return;
else oldTextB0011 = newTextB0011;
set(origB0011, newTextB0011);
}
function eventHandlerB0011() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeB0011, 50);
}
inputB0011.onkeydown = inputB0011.onkeyup = inputB0011.onclick = eventHandlerB0011;
}
function C0001() {
var inputC0001 = document.getElementsByTagName('input')[13],
origC0001 = document.getElementById('value C0001'),
oldTextC0001 = inputC0001.value,
timeout = null;
function handleChangeC0001() {
var newTextC0001 = inputC0001.value;
if (newTextC0001 == oldTextC0001) return;
else oldTextC0001 = newTextC0001;
set(origC0001, newTextC0001);
}
function eventHandlerC0001() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0001, 50);
}
inputC0001.onkeydown = inputC0001.onkeyup = inputC0001.onclick = eventHandlerC0001;
}
function C0002() {
var inputC0002 = document.getElementsByTagName('input')[14],
origC0002 = document.getElementById('value C0002'),
oldTextC0002 = inputC0002.value,
timeout = null;
function handleChangeC0002() {
var newTextC0002 = inputC0002.value;
if (newTextC0002 == oldTextC0002) return;
else oldTextC0002 = newTextC0002;
set(origC0002, newTextC0002);
}
function eventHandlerC0002() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0002, 50);
}
inputC0002.onkeydown = inputC0002.onkeyup = inputC0002.onclick = eventHandlerC0002;
}
function C0003() {
var inputC0003 = document.getElementsByTagName('input')[15],
origC0003 = document.getElementById('value C0003'),
oldTextC0003 = inputC0003.value,
timeout = null;
function handleChangeC0003() {
var newTextC0003 = inputC0003.value;
if (newTextC0003 == oldTextC0003) return;
else oldTextC0003 = newTextC0003;
set(origC0003, newTextC0003);
}
function eventHandlerC0003() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0003, 50);
}
inputC0003.onkeydown = inputC0003.onkeyup = inputC0003.onclick = eventHandlerC0003;
}
function C0004() {
var inputC0004 = document.getElementsByTagName('input')[16],
origC0004 = document.getElementById('value C0004'),
oldTextC0004 = inputC0004.value,
timeout = null;
function handleChangeC0004() {
var newTextC0004 = inputC0004.value;
if (newTextC0004 == oldTextC0004) return;
else oldTextC0004 = newTextC0004;
set(origC0004, newTextC0004);
}
function eventHandlerC0004() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0004, 50);
}
inputC0004.onkeydown = inputC0004.onkeyup = inputC0004.onclick = eventHandlerC0004;
}
function C0005() {
var inputC0005 = document.getElementsByTagName('input')[17],
origC0005 = document.getElementById('value C0005'),
oldTextC0005 = inputC0005.value,
timeout = null;
function handleChangeC0005() {
var newTextC0005 = inputC0005.value;
if (newTextC0005 == oldTextC0005) return;
else oldTextC0005 = newTextC0005;
set(origC0005, newTextC0005);
}
function eventHandlerC0005() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0005, 50);
}
inputC0005.onkeydown = inputC0005.onkeyup = inputC0005.onclick = eventHandlerC0005;
}
function C0006() {
var inputC0006 = document.getElementsByTagName('input')[18],
origC0006 = document.getElementById('value C0006'),
oldTextC0006 = inputC0006.value,
timeout = null;
function handleChangeC0006() {
var newTextC0006 = inputC0006.value;
if (newTextC0006 == oldTextC0006) return;
else oldTextC0006 = newTextC0006;
set(origC0006, newTextC0006);
}
function eventHandlerC0006() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0006, 50);
}
inputC0006.onkeydown = inputC0006.onkeyup = inputC0006.onclick = eventHandlerC0006;
}
function C0007() {
var inputC0007 = document.getElementsByTagName('input')[19],
origC0007 = document.getElementById('value C0007'),
oldTextC0007 = inputC0007.value,
timeout = null;
function handleChangeC0007() {
var newTextC0007 = inputC0007.value;
if (newTextC0007 == oldTextC0007) return;
else oldTextC0007 = newTextC0007;
set(origC0007, newTextC0007);
}
function eventHandlerC0007() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0007, 50);
}
inputC0007.onkeydown = inputC0007.onkeyup = inputC0007.onclick = eventHandlerC0007;
}
function C0008() {
var inputC0008 = document.getElementsByTagName('input')[20],
origC0008 = document.getElementById('value C0008'),
oldTextC0008 = inputC0008.value,
timeout = null;
function handleChangeC0008() {
var newTextC0008 = inputC0008.value;
if (newTextC0008 == oldTextC0008) return;
else oldTextC0008 = newTextC0008;
set(origC0008, newTextC0008);
}
function eventHandlerC0008() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0008, 50);
}
inputC0008.onkeydown = inputC0008.onkeyup = inputC0008.onclick = eventHandlerC0008;
}
function C0009() {
var inputC0009 = document.getElementsByTagName('input')[21],
origC0009 = document.getElementById('value C0009'),
oldTextC0009 = inputC0009.value,
timeout = null;
function handleChangeC0009() {
var newTextC0009 = inputC0009.value;
if (newTextC0009 == oldTextC0009) return;
else oldTextC0009 = newTextC0009;
set(origC0009, newTextC0009);
}
function eventHandlerC0009() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0009, 50);
}
inputC0009.onkeydown = inputC0009.onkeyup = inputC0009.onclick = eventHandlerC0009;
}
function C0010() {
var inputC0010 = document.getElementsByTagName('input')[22],
origC0010 = document.getElementById('value C0010'),
oldTextC0010 = inputC0010.value,
timeout = null;
function handleChangeC0010() {
var newTextC0010 = inputC0010.value;
if (newTextC0010 == oldTextC0010) return;
else oldTextC0010 = newTextC0010;
set(origC0010, newTextC0010);
}
function eventHandlerC0010() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0010, 50);
}
inputC0010.onkeydown = inputC0010.onkeyup = inputC0010.onclick = eventHandlerC0010;
}
function C0011() {
var inputC0011 = document.getElementsByTagName('input')[23],
origC0011 = document.getElementById('value C0011'),
oldTextC0011 = inputC0011.value,
timeout = null;
function handleChangeC0011() {
var newTextC0011 = inputC0011.value;
if (newTextC0011 == oldTextC0011) return;
else oldTextC0011 = newTextC0011;
set(origC0011, newTextC0011);
}
function eventHandlerC0011() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(handleChangeC0011, 50);
}
inputC0011.onkeydown = inputC0011.onkeyup = inputC0011.onclick = eventHandlerC0011;
}
A0001();
A0002();
B0001();
B0002();
B0003();
B0004();
B0005();
B0006();
B0007();
B0008();
B0009();
B0010();
B0011();
C0001();
C0002();
C0003();
C0004();
C0005();
C0006();
C0007();
C0008();
C0009();
C0010();
C0011();
var el_up = document.getElementById("FH");
var el_down = document.getElementById("GW");
var str = "Click on button to change the header image";
el_up.innerHTML = str;
function changeColor(color) {
document.body.style.background = color;
}
function gfg_Run() {
changeColor('yellow');
el_down.innerHTML = "Background Color changed";
}
Also see: Tab Triggers