FCC: Build a Markdown Previewer
How do I make an fcc: build a markdown previewer?
What is a fcc: build a markdown previewer? How do you make a fcc: build a markdown previewer? This script and codes were developed by Jeanine on 12 September 2022, Monday.
FCC: Build a Markdown Previewer - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>FCC: Build a Markdown Previewer</title> <link rel='stylesheet prefetch' href='http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Kaushan+Script'>
<link rel='stylesheet prefetch' href='http://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header> <h1><span class="fa fa-free-code-camp"><span class="sr-only">FreeCodeCamp</span></span> Markdown Previewer</h1></header>
<div id="app"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
FCC: Build a Markdown Previewer - Script Codes CSS Codes
html,
body { height: 100%; margin: 0; padding: 0;
}
header { position: fixed; bottom: 0; z-index: 1000; width: 100%; background: #ececec;
}
header h1 { margin: 0; padding: 8px 13px; border-top: 1px solid #ccc; color: #333; font-family: 'Kaushan Script', cursive; text-align: center;
}
.editor .row { display: -ms-flex; display: -webkit-flex; display: flex;
}
.editor .row > div { width: 50%;
}
.markdown-input,
.markdown-input textarea { background: #000; color: #ccc; border: 0; padding: 0; margin: 0; font-family: 'Courier New', monospace; font-size: 14px; height: 100vh;
}
textarea.form-control,
.markdown-output { padding: 10px 20px;
}
.form-control:focus { -webkit-box-shadow: none; box-shadow: none; color: #fff;
}
FCC: Build a Markdown Previewer - Script Codes JS Codes
"use strict";
var Display = React.createClass({ displayName: "Display", getInitialState: function getInitialState() { return { value: "<h3>Instructions:</h3>\n- Type some markup or HTML" }; }, handleUpdateText: function handleUpdateText(e) { this.setState({ value: e.target.value }); }, render: function render() { return React.createElement( "div", { className: "editor container-fluid" }, React.createElement( "div", { className: "row" }, React.createElement( "div", { className: "markdown-input col-sm-6" }, React.createElement("textarea", { value: this.state.value, className: "form-control", onChange: this.handleUpdateText }) ), React.createElement( "div", { className: "markdown-output col-sm-6" }, React.createElement(Output, { value: this.state.value }) ) ) ); }
});
function Output(props) { return React.createElement("div", { dangerouslySetInnerHTML: { __html: marked(props.value) } });
}
ReactDOM.render(React.createElement(Display, null), document.getElementById("app"));
Developer | Jeanine |
Username | virtual |
Uploaded | September 12, 2022 |
Rating | 3 |
Size | 3,609 Kb |
Views | 36,432 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
3 Piece Slider with featured center | 3,920 Kb |
Parallax Cats | 6,553 Kb |
Flexbox | 2,263 Kb |
3 Piece Slider | 3,881 Kb |
Expanding Info Boxes | 5,141 Kb |
Table Sorter Data | 3,347 Kb |
Bootstrap 4 | 2,121 Kb |
Font-Awesome Icon Card with heading | 2,882 Kb |
Simple Event Box | 1,623 Kb |
Simple React Template | 2,233 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Toolbar | Onsen | 5,414 Kb |
Eunice A | Ejbronze | 2,203 Kb |
Testing Code Pen | Jduprey | 1,468 Kb |
Next Word Predictor | Rfalor | 2,776 Kb |
IE flex collapse bug fix | Rowno | 2,678 Kb |
Ball Physics | Getsetbro | 3,149 Kb |
SVG Icons Template | Legofsalmon | 2,618 Kb |
Flexbox Grid - equal height | DaveOrDead | 2,855 Kb |
Sass Radar | Jlong | 6,887 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!