A Pen by liuxiaomingskm on CodePen.
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
<svg | |
version="1.1" | |
baseProfile="full" | |
xmlns="http://www.w3.org/2000/svg" | |
id="bahamas"> | |
<rect x ="0" y="100" width="600" height="100" fill="#FFC72C" /> | |
<polygon points="0 0, 260 150, 0 300" fill="black"/> | |
</svg> --> |
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
<svg | |
version="1.1" | |
baseProfile="full" | |
xmlns="http://www.w3.org/2000/svg"> | |
</svg> |
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
<svg | |
version='1.1' | |
baseProfile="full" | |
smlns="http://www.w3.org/2000/svg"> | |
<g stroke-width="5px" stroke="blue"> | |
<line x1="100" y1="100" x2="700" y2="350" /> | |
<line x1 ="100" y1="350" x2="700" y2="100" /> | |
</g> | |
</svg> |
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 add = d3.select("#add");//add is a button | |
add.on('click', function(){ | |
quotes = quotes.concat(newQuotes); | |
var listItems = d3.select("#quotes") | |
.selectAll("li") | |
.data(quotes); | |
listItems |
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
d3.select("#new-note").on("submit", function(){ | |
d3.event.preventDefault(); | |
var input = d3.select("input"); | |
d3.select("#notes") | |
.append("p") | |
.classed("note",true) | |
.text(input.property("value")); | |
input.property("value",""); | |
}); |
A Pen by liuxiaomingskm on CodePen.
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
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
<button id="btn">click me!</button> |
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
<script src="https://code.jquery.com/jquery-3.4.1.js"></script> | |
<div class="container"> | |
<h1>Welcome To Random Cat Pictures</h1> | |
<img id="photo" src="https:\/\/dog.ceo\/api\/img\/deerhound-scottish\/n02092002_6780.jpg" alt=""> | |
<button id="btn">Get Random Cat!</button> | |
</div> |
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
<script | |
src="https://code.jquery.com/jquery-3.2.1.min.js"></script> | |
<button id="getBtn">GET()</button> | |
<button id="postBtn">POST()</button> | |
<button id="getJSONBtn">GETJSON()</button> | |
NewerOlder