Swap heads, change colors, take it apart, and rebuild it! #LegoLove
A Pen by Josh Bader on CodePen.
<script> | |
const checkNodeType = Node.COMMENT_NODE; | |
const observer = new MutationObserver((mutationsList, observer) => { | |
for (const mutation of mutationsList) { | |
if (mutation.type === 'childList' && mutation.addedNodes.length > 0) { | |
for (const addedNode of mutation.addedNodes) { | |
if (addedNode.nodeType === checkNodeType) { |
Swap heads, change colors, take it apart, and rebuild it! #LegoLove
A Pen by Josh Bader on CodePen.
<svg viewBox="0 0 122 122" xmlns="http://www.w3.org/2000/svg"> | |
<defs> | |
<g class="whole" id="pizza"> | |
<circle cx="61" cy="61" r="61" fill="#FFB800"/> | |
<circle cx="61" cy="61" r="55" fill="#FFDE31"/> | |
<g fill="#CD2D36" stroke="#FEA202" stroke-miterlimit="10" stroke-width="2"> | |
<circle cx="61" cy="29.11" r="8" /> | |
<circle cx="38.45" cy="38.45" r="8" /> | |
<circle cx="29.11" cy="61" r="8" /> | |
<circle cx="38.45" cy="83.55" r="8" /> |
<style> | |
/* | |
Max width before this PARTICULAR table gets nasty. This query will take effect for any screen smaller than 760px and also iPads specifically. | |
*/ | |
@media only screen and (max-width: 760px), | |
(min-device-width: 768px) and (max-device-width: 1024px) { | |
/* Force table to not be like tables anymore */ | |
table, | |
thead, |
<?php | |
$my_database_txt = 'numeri.txt'; | |
$array_righi = file($my_database_txt); | |
print_r( $array_righi); | |
$A=explode("|",$array_righi[0]); | |
$B=explode("|",$array_righi[1]); | |
$C=explode("|",$array_righi[2]); |
<?php | |
// Create connection | |
$conn = new mysqli("localhost", "root", ""); | |
// Check connection | |
if ($conn->connect_error) { | |
die("Connection failed: " . $conn->connect_error); | |
} | |