Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save gunnarbittersmann/f16fc290cca092fe8610 to your computer and use it in GitHub Desktop.

Select an option

Save gunnarbittersmann/f16fc290cca092fe8610 to your computer and use it in GitHub Desktop.
responsive heading text
/**
* responsive heading text
*/
:invalid { background: #FCC }
<form action="">
<input type="number" name="number" step="0.0001"/>
<button>submit</button>
<output></output>
</form>
var formElement = document.querySelector('form'),
inputElement = document.querySelector('input'),
outputEleent = document.querySelector('output');
formElement.addEventListener('submit', submitFunction, false);
function submitFunction(event)
{
event.preventDefault();
outputElement.innerHTML = inputElement.value;
}
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment