Created
October 9, 2017 21:32
-
-
Save davchana/c0679e6d1fa645c80ccc5b6c9612f8f6 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/moxuli
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<span id="test" contenteditable="true" readonly>this is test</span> | |
<script id="jsbin-javascript"> | |
var css="#test{font:2em monospace;} #test:focus{background:pink;}@media print{#test{color:red;font:12vw serif;}}"; | |
var d=document; | |
var style = d.createElement("style"); | |
style.innerHTML=css; | |
d.getElementsByTagName("head")[0].appendChild(style); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var css="#test{font:2em monospace;} #test:focus{background:pink;}@media print{#test{color:red;font:12vw serif;}}"; | |
var d=document; | |
var style = d.createElement("style"); | |
style.innerHTML=css; | |
d.getElementsByTagName("head")[0].appendChild(style); | |
</script></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
var css="#test{font:2em monospace;} #test:focus{background:pink;}@media print{#test{color:red;font:12vw serif;}}"; | |
var d=document; | |
var style = d.createElement("style"); | |
style.innerHTML=css; | |
d.getElementsByTagName("head")[0].appendChild(style); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment