revision new files
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="https://d3js.org/d3.v7.min.js"></script>
|
||||
<style>
|
||||
svg {
|
||||
background-color: lightgrey;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<svg id="drawing-area" height=100 width=500></svg>
|
||||
<script>
|
||||
let svg = d3.select("#drawing-area");
|
||||
svg.append("circle")
|
||||
.attr("cx", 100).attr("cy", 50).attr("r", 20).style("fill", "pink");
|
||||
svg.append("circle")
|
||||
.attr("cx", 200).attr("cy", 20).attr("r", 20).style("fill", "black");
|
||||
svg.append("circle")
|
||||
.attr("cx", 300).attr("cy", 70).attr("r", 20).style("fill", "grey");
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="https://unpkg.com/react@17/umd/react.development.js" crossorigin></script>
|
||||
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" crossorigin></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script>
|
||||
let p = React.createElement("p", null, "Hi Emile, what's up?");
|
||||
ReactDOM.render(
|
||||
p,
|
||||
document.getElementById("root")
|
||||
);
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="https://cdn.jsdelivr.net/npm/underscore@1.13.1/underscore-umd-min.js
|
||||
"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
_.each([1, 2, 3], alert);
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user