JSFiddle - React, Tailwind, and code Playground
by fredd man
HTML
<body>
<a href="#π€7777twitch">π€7777twitch-twitch</a>
<div id="π€7777twitch" class="js_zoom_and_pan">
<div> <a href="#close" title="Close" class="close">X</a>
<style type="text/css">
#π€7777twitch {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
padding: 0px;
margin 0px;
position: fixed;
right: 10px;
bottom:0px;
width: 260px;
height: 440px;
z-index: 9999px;
font-size: 5px;
background: rgba(0, 0, 0, 0.8);
opacity:0;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
pointer-events: none;
}
#π€7777twitch:target {
opacity:1;
pointer-events: auto;
}
#π€7777twitch > div {
width: 200px;
position: fixed;
padding: 5px 20px 13px 20px;
border-radius: 10px;
background: #fff;
background: -moz-linear-gradient(#fff, #999);
background: -webkit-linear-gradient(#fff, #999);
background: -o-linear-gradient(#fff, #999);
}
.close {
background: #606061;
color: #FFFFFF;
line-height: 25px;
position: absolute;
right: 10px;
text-align: center;
top: -10px;
width: 24px;
text-decoration: none;
font-weight: bold;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
-moz-box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
box-shadow: 1px 1px 3px #000;
}
.close:hover {
background: #00d9ff;
}
</style>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<!-- DRAGABLE 3 -->
<!-- Draggable DIV -->
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<div id="mydiv5" class="js_zoom_and_pan">
<div id="mydivheader5">π€7777twitch</div>
<script>
(function() {
function touchHandler(e) {
var touches = e.changedTouches;
var first = touches[0];
var type = "";
switch(e.type) {
...