Skip to content

Files

Latest commit

 

History

History
54 lines (54 loc) · 121 KB

bookmarklets.md

File metadata and controls

54 lines (54 loc) · 121 KB

edit.min.js javascript:krazete:console.log(document.body.contentEditable="true"==document.body.contentEditable?"false":"true"); | invert,min.js javascript:krazete:var inverthtml;void 0===inverthtml?((inverthtml=document.createElement("style")).innerHTML="html{background:black;filter:invert(100%25)}",document.body.appendChild(inverthtml)):(inverthtml.remove(),inverthtml=void 0); | invertmedia.min.js javascript:krazete:var invertimg;void 0===invertimg?((invertimg=document.createElement("style")).innerHTML="img,video,embed,object{filter:invert(100%25)}",document.body.appendChild(invertimg)):(invertimg.remove(),invertimg=void 0); | invertselection.min.js javascript:krazete:!function(){var a,h,m,v;function u(e){h.remove(),a.remove(),e.style.filter="invert(1)"==e.style.filter?"":"invert(1)"}function w(e){return e.touches?("touchmove"==e.type&&e.preventDefault(),e.touches[0]||e.changedTouches[0]):e}function p(e){window.removeEventListener("mousemove",y),window.removeEventListener("touchmove",y),window.removeEventListener("mouseup",p),window.removeEventListener("touchend",p),v=w(e);for(var e=u,t=Math.min(m.clientX,v.clientX),n=Math.max(m.clientX,v.clientX),i=Math.min(m.clientY,v.clientY),o=Math.max(m.clientY,v.clientY),l=Math.max(1,(n-t)/10),s=Math.max(1,(o-i)/10),d=[],c=t;c<=n;c+=l)for(var r=i;r<=o;r+=s)d.push(document.elementsFromPoint(c,r));d.sort((e,t)=>e.length-t.length),t=d[0].filter(t=>t!=h&&t!=a&&d.every(e=>e.includes(t))),console.log(t),e(t[0])}function y(e){e=w(e);h.style.left=Math.min(m.clientX,e.clientX)+"px",h.style.top=Math.min(m.clientY,e.clientY)+"px",h.style.width=Math.abs(e.clientX-m.clientX)+"px",h.style.height=Math.abs(e.clientY-m.clientY)+"px"}function t(e){window.removeEventListener("mousedown",t),window.removeEventListener("touchstart",t),window.addEventListener("mousemove",y),window.addEventListener("touchmove",y,{passive:!1}),window.addEventListener("mouseup",p),window.addEventListener("touchend",p),m=w(e),(h=document.createElement("div")).style.position="relative",h.style.left=m.clientX+"px",h.style.top=m.clientY+"px",h.style.width=0,h.style.height=0,h.style.outline="3px dashed black",h.style.boxShadow="inset 0 0 30px 3px white",h.style.mixBlendMode="difference",a.appendChild(h)}(a=document.createElement("div")).style.position="fixed",a.style.left=0,a.style.top=0,a.style.width="100%25",a.style.height="100%25",a.style.zIndex=1e13,document.body.appendChild(a),window.addEventListener("mousedown",t),window.addEventListener("touchstart",t)}(); | lupire.min.js javascript:krazete:function choose(e){return e[Math.floor(Math.random()e.length)]}function newHex(e,t){void 0===e&&(e=0),void 0===t&&(t=16);for(var s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="#",o=0;o<6;o++)n+=choose(s.slice(e,t));return n}function newByte(e,t,s){void 0===t&&(t=0),void 0===s&&(s=256);for(var n=[],o=0;o<256;o++)n.push(o);for(var i="rgba(",o=0;o<3;o++)i+=choose(n.slice(t,s))+",";return i+=e+")"}function newBlock(e){for(var t=[0,1,2,2,3,3,3,3,4,4,5,5],s=[],n=0;n<blocks.length;n++)for(var o=0;o<e[t[n]];o++)s.push(blocks[n]);return choose(s)}var compass,edges,goal,ball,blocks=[full={img:1,goto:[0,1,2,3]},empty={img:0,goto:[2,3,0,1]},bslash={img:1,goto:[1,0,3,2]},slash={img:0,goto:[3,2,1,0]},cornertr={img:[1,1,0,0],goto:[0,1,3,2]},cornerbr={img:[1,0,0,1],goto:[0,2,1,3]},cornerbl={img:[0,0,1,1],goto:[1,0,2,3]},cornertl={img:[0,1,1,0],goto:[3,1,2,0]},vpipe={img:[1,0,1,0],goto:[0,3,2,1]},hpipe={img:[0,1,0,1],goto:[2,1,0,3]},ccw={img:1,goto:[1,2,3,0]},cw={img:0,goto:[3,0,1,2]}],spinster=document.createElement("style"),span=(spinster.innerHTML="@keyframes cwise{ from{transform:rotate(0deg);} to{transform:rotate(360deg);} }",spinster.innerHTML+="@keyframes ccwise{ from{transform:rotate(360deg);} to{transform:rotate(0deg);} }",document.body.appendChild(spinster),3),distribution=[0,2,1,0,0,0],zoom=75,unit=zoom/span,speed=.1,game=document.createElement("div"),corners=(game.style.position="fixed",game.style.top="50%25",game.style.left="50%25",game.style.transform="translate(-50%25,-50%25)",game.style.transition=speed+"s opacity",game.style.zIndex="9999",document.getElementsByClassName("cornerBox")),inners=document.getElementsByClassName("innerBox"),rawEdges=document.getElementsByClassName("edgeBox"),lvl=1,pts=0,hp=15,board=document.createElement("div"),tab=(board.style.background="white",board.style.textAlign="center",board.style.position="fixed",board.style.top=(100+zoom)/2+"vmin",board.style.left="50%25",board.style.transform="translateX(-50%25)",board.style.transition=speed+"s opacity",board.style.border="1px solid black",board.style.padding="1vmin",board.style.borderRadius="1vmin",board.style.zIndex="9999",document.body.appendChild(board)," ­ ­ ­ ­ ­ ­ ­ ­ ­ ");function newGame(e,t,s,n){if(distribution=t=void 0===t?distribution:t,unit=(zoom=s=void 0===s?zoom:s)/(span=e=void 0===e?span:e),speed=n=void 0===n?speed:n,board.style.opacity=1,board.innerHTML="Lives: "+hp+tab+"Points: "+pts+tab+"Level: "+(span-2)+tab+"Sublevel: "+lvl+"/"+(span-2)+"
",0==hp||2==span)return hide(),disable(),ball.remove(),board.innerHTML+="GAME OVER",0;for(;game.lastChild;)game.removeChild(game.lastChild);for(game.remove(),game.style.background=newByte(.75,64,192),game.style.height=zoom+"vmin",game.style.width=zoom+"vmin",game.style.borderRadius=.5
unit+"vmin",game.style.opacity=1,document.body.appendChild(game),compass=newBoard(),edges=[],i=0;i<rawEdges.length;i++)rawEdges[i].end=newPath(rawEdges[i].x,rawEdges[i].y),edges.push(rawEdges[i]);edges.sort(function(e,t){return e.end.steps-t.end.steps}),setTimeout(setUp,1e4speed(1+span/10))}function setUp(){goal=newGoal(),ball=newBall(goal.x,goal.y),hide(),enable()}function newBoard(){for(var e=newHex(0,8),t=[],s=[],n=0;n<span;n++){t[n]=[],s[n]=[];for(var o=0;o<span;o++){var i=document.createElement("div"),r=(i.style.height=unit+"vmin",i.style.width=unit+"vmin",i.style.position="absolute",i.style.top=nunit+"vmin",i.style.left=ounit+"vmin",i.style.boxSizing="border-box",i.style.boxShadow="inset 0 0 3vmin "+game.style.backgroundColor,game.appendChild(i),document.createElement("div")),i=(r.x=n,r.y=o,r.style.position="absolute",r.style.top=nunit+"vmin",r.style.left=ounit+"vmin",r.style.boxSizing="border-box",0==n&&0==o||0==n&&o==span-1||n==span-1&&o==span-1||n==span-1&&0==o?(i.remove(),t[n][o]=blocks[0],s[n][o]="X",r.className="cornerBox",r.style.transition=speed+"s border-radius",0==n&&0==o?(r.style.borderTopLeftRadius="50%25",r.setAttribute("onMouseOver","this.style.borderTopLeftRadius='25%25'"),r.setAttribute("onMouseOut","this.style.borderTopLeftRadius='50%25'"),r.setAttribute("onClick","newGame()")):0==n&&o==span-1?((i=document.createElement("div")).style.background="white",i.style.height=.5unit+"vmin",i.style.width=.1unit+"vmin",i.style.borderRadius=100/3+"%25",i.style.position="absolute",i.style.top=.25unit+"vmin",i.style.left=.45unit+"vmin",i.style.transform="rotate(45deg)",r.appendChild(i),(i=i.cloneNode()).style.transform="rotate(-45deg)",r.appendChild(i),r.style.borderTopRightRadius="50%25",r.setAttribute("onMouseOver","this.style.borderTopRightRadius='25%25'"),r.setAttribute("onMouseOut","this.style.borderTopRightRadius='50%25'"),r.setAttribute("onClick","game.style.opacity=0;board.style.opacity=0;setTimeout(function(){ game.remove(); board.remove(); },100)")):n==span-1&&o==span-1?(r.style.borderBottomRightRadius="50%25",r.setAttribute("onMouseOver","this.style.borderBottomRightRadius='25%25'"),r.setAttribute("onMouseOut","this.style.borderBottomRightRadius='50%25'"),r.setAttribute("onClick","hide()")):n==span-1&&0==o&&(r.style.borderBottomLeftRadius="50%25",r.setAttribute("onMouseOver","this.style.borderBottomLeftRadius='25%25'"),r.setAttribute("onMouseOut","this.style.borderBottomLeftRadius='50%25'"),r.setAttribute("onClick","show()"))):0==n||n==span-1||0==o||o==span-1?(0==n||n==span-1?(t[n][o]=blocks[8],s[n][o]=0==n?[3,3,3,3]:[1,1,1,1]):0!=o&&o!=span-1||(t[n][o]=blocks[9],s[n][o]=0==o?[0,0,0,0]:[2,2,2,2]),r.className="edgeBox",r.style.background="rgba(0,0,0,0.25)",r.style.transition=2speed+"s background"):(t[n][o]=newBlock(distribution),s[n][o]=t[n][o].goto,r.className="innerBox",r.style.borderRadius=100/3+"%25",r.style.transition=2speed+"s opacity"),t[n][o]),a="innerBox"==r.className?"white":e;i==full||i==empty?(r.style.background=i.img?a:"transparent",r.style.height=unit+"vmin",r.style.width=unit+"vmin"):i==bslash||i==slash?(r.style.background=a,r.style.left=(o+.4)unit+"vmin",r.style.height=unit+"vmin",r.style.width=.2unit+"vmin",r.style.transform="rotate("+[45,-45][i.img]+"deg)"):i==cornertr||i==cornerbr||i==cornerbl||i==cornertl?(r.style.height=unit+"vmin",r.style.width=unit+"vmin",r.style.borderRight=.5unit+"vmin solid "+(i.img[0]?a:"transparent"),r.style.borderTop=.5unit+"vmin solid "+(i.img[1]?a:"transparent"),r.style.borderLeft=.5unit+"vmin solid "+(i.img[2]?a:"transparent"),r.style.borderBottom=.5unit+"vmin solid "+(i.img[3]?a:"transparent")):i==vpipe||i==hpipe?(r.style.height=unit+"vmin",r.style.width=unit+"vmin",r.style.borderRight=.2unit+"vmin solid "+(i.img[0]?a:"transparent"),r.style.borderTop=.2unit+"vmin solid "+(i.img[1]?a:"transparent"),r.style.borderLeft=.2unit+"vmin solid "+(i.img[2]?a:"transparent"),r.style.borderBottom=.2unit+"vmin solid "+(i.img[3]?a:"transparent")):i==ccw||i==cw?(r.style.background=a,r.style.left=(o+.4)unit+"vmin",r.style.height=unit+"vmin",r.style.width=.2unit+"vmin",r.style.animation=["cwise","ccwise"][i.img]+" "+5speed+"s infinite linear"):console.log("Error: Unknown block entered into display()."),game.appendChild(r)}}return s}function newPath(e,t,s,n){void 0===s&&(s=compass[e][t][0]),void 0===n&&(n=0);var s=compass[e][t][s],o=[[0,1],[-1,0],[0,-1],[1,0]];return e+=o[s][0],t+=o[s][1],0!=e&&e!=span-1&&0!=t&&t!=span-1?newPath(e,t,(s+2)%254,compass[e][t]==empty.goto?n+1:n+2):{x:e,y:t,steps:n}}function newBall(e,t){var s=document.createElement("div");return s.style.background="white",s.style.position="absolute",s.style.top=eunit+"vmin",s.style.left=tunit+"vmin",s.style.width=.4unit+"vmin",s.style.height=.4unit+"vmin",s.style.borderRadius="50%25",s.style.margin=.3unit+"vmin",s.style.transition=speed+"s top, "+speed+"s left, "+speed+"s background",s.style.transitionTimingFunction="linear",s.style.pointerEvents="none",game.appendChild(s),s}function move(e,t,s,n,o){void 0===o&&(o=compass[s][n][0]),0<s&&s<span-1&&0<n&&n<span-1&&(getByXY(s,n).style.opacity=1);var i=compass[s][n][o],o=[[0,1],[-1,0],[0,-1],[1,0]];if(s+=o[i][0],n+=o[i][1],ball.style.top=units+"vmin",ball.style.left=unitn+"vmin",0!=s&&s!=span-1&&0!=n&&n!=span-1)setTimeout(function(){move(e,t,s,n,(i+2)%254)},1e3speed);else{if(goal.end.x==e&&goal.end.y==t){for(var r=0;r<edges.length;r++)edges[r].style.background="rgba(0,128,0,0.5)";ball.style.background="green",pts+=goal.end.steps,lvl==span-2?(span++,lvl=1):lvl++}else{for(r=0;r<edges.length;r++)edges[r].style.background="rgba(128,0,0,0.5)";ball.style.background="red",hp--,3<span&&(1==lvl?lvl=--span-2:lvl--)}setTimeout(show,1e4speed),setTimeout(newGame,2e4speed)}}function getByXY(e,t){for(var s=0;s<inners.length;s++)if(inners[s].x==e&&inners[s].y==t)return inners[s]}function hide(){for(var e=0;e<inners.length;e++)inners[e].style.opacity=0}function show(){for(var e=0;e<inners.length;e++)inners[e].style.opacity=1}function newGoal(){for(var e={},t=0;t<edges.length;t++)null==e[edges[t].end.steps]?e[edges[t].end.steps]=[edges[t]]:e[edges[t].end.steps].push(edges[t]);return choose(e[(key=Object.keys(e))[key.length-1]])}function enable(){for(var e=0;e<edges.length;e++)edges[e].style.background="transparent",edges[e].setAttribute("onMouseOver","this.style.background='rgba(0,0,0,0.25)'"),edges[e].setAttribute("onMouseOut","this.style.background='transparent'"),edges[e].setAttribute("onClick","guess("+goal.x+","+goal.y+","+edges[e].x+","+edges[e].y+")")}function disable(){for(var e=0;e<edges.length;e++)edges[e].style.background="rgba(0,0,0,0.25)",edges[e].removeAttribute("onMouseOver"),edges[e].removeAttribute("onMouseOut"),edges[e].removeAttribute("onClick")}function guess(e,t,s,n){disable(),move(s,n,e,t)}newGame(); | lupiremobile.min.js javascript:krazete:function choose(e){return e[Math.floor(Math.random()e.length)]}function newHex(e,t){void 0===e&&(e=0),void 0===t&&(t=16);for(var s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],o="#",n=0;n<6;n++)o+=choose(s.slice(e,t));return o}function newByte(e,t,s){void 0===t&&(t=0),void 0===s&&(s=256);for(var o=[],n=0;n<256;n++)o.push(n);for(var r="rgba(",n=0;n<3;n++)r+=choose(o.slice(t,s))+",";return r+=e+")"}function newBlock(e){for(var t=[0,1,2,2,3,3,3,3,4,4,5,5],s=[],o=0;o<blocks.length;o++)for(var n=0;n<e[t[o]];n++)s.push(blocks[o]);return choose(s)}var compass,edges,goal,ball,blocks=[full={img:1,goto:[0,1,2,3]},empty={img:0,goto:[2,3,0,1]},bslash={img:1,goto:[1,0,3,2]},slash={img:0,goto:[3,2,1,0]},cornertr={img:[1,1,0,0],goto:[0,1,3,2]},cornerbr={img:[1,0,0,1],goto:[0,2,1,3]},cornerbl={img:[0,0,1,1],goto:[1,0,2,3]},cornertl={img:[0,1,1,0],goto:[3,1,2,0]},vpipe={img:[1,0,1,0],goto:[0,3,2,1]},hpipe={img:[0,1,0,1],goto:[2,1,0,3]},ccw={img:1,goto:[1,2,3,0]},cw={img:0,goto:[3,0,1,2]}],spinster=document.createElement("style"),span=(spinster.innerHTML="@keyframes cwise{ from{transform:rotate(0deg);-webkit-transform:rotate(0deg);} to{transform:rotate(360deg);-webkit-transform:rotate(360deg);} }",spinster.innerHTML+="@keyframes ccwise{ from{transform:rotate(360deg);-webkit-transform:rotate(360deg);} to{transform:rotate(0deg);-webkit-transform:rotate(0deg);} }",document.body.appendChild(spinster),3),distribution=[0,2,1,0,0,0],VMIN=innerWidth<innerHeight?innerWidth:innerHeight,zoom=3VMIN/4,unit=zoom/span,speed=.1,game=document.createElement("div"),corners=(game.style.position="fixed",game.style.top="50%25",game.style.left="50%25",game.style.transform="translate(-50%25,-50%25)",game.style.webkitTransform="translate(-50%25,-50%25)",game.style.transition=speed+"s opacity",game.style.zIndex="9999",document.getElementsByClassName("cornerBox")),inners=document.getElementsByClassName("innerBox"),rawEdges=document.getElementsByClassName("edgeBox"),lvl=1,pts=0,hp=15,board=document.createElement("div"),tab=(board.style.background="white",board.style.textAlign="center",board.style.position="fixed",board.style.bottom=0,board.style.left="50%25",board.style.transform="translateX(-50%25)",board.style.webkitTransform="translateX(-50%25)",board.style.transition=speed+"s opacity",board.style.border="1px solid black",board.style.padding="5px",board.style.borderRadius="5px",board.style.zIndex="9999",document.body.appendChild(board)," ­ ­ ­ ­ ­ ­ ­ ­ ­ ");function newGame(e,t,s,o){if(distribution=t=void 0===t?distribution:t,unit=(zoom=s=void 0===s?zoom:s)/(span=e=void 0===e?span:e),speed=o=void 0===o?speed:o,board.style.opacity=1,board.innerHTML="Lives: "+hp+tab+"Points: "+pts+tab+"Level: "+(span-2)+tab+"Sublevel: "+lvl+"/"+(span-2)+"
",0==hp||2==span)return hide(),disable(),ball.remove(),board.innerHTML+="GAME OVER",0;for(;game.lastChild;)game.removeChild(game.lastChild);for(game.remove(),game.style.background=newByte(.75,64,192),game.style.height=zoom+"px",game.style.width=zoom+"px",game.style.borderRadius=.5
unit+"px",game.style.opacity=1,document.body.appendChild(game),compass=newBoard(),edges=[],i=0;i<rawEdges.length;i++)rawEdges[i].end=newPath(rawEdges[i].x,rawEdges[i].y),edges.push(rawEdges[i]);edges.sort(function(e,t){return e.end.steps-t.end.steps}),setTimeout(setUp,1e4speed(1+span/10))}function setUp(){goal=newGoal(),ball=newBall(goal.x,goal.y),hide(),enable()}function newBoard(){for(var e=newHex(0,8),t=[],s=[],o=0;o<span;o++){t[o]=[],s[o]=[];for(var n=0;n<span;n++){var r=document.createElement("div"),i=(r.style.height=unit+"px",r.style.width=unit+"px",r.style.position="absolute",r.style.top=ounit+"px",r.style.left=nunit+"px",r.style.boxSizing="border-box",r.style.boxShadow="inset 0 0 3px "+game.style.backgroundColor,game.appendChild(r),document.createElement("div")),r=(i.x=o,i.y=n,i.style.position="absolute",i.style.top=ounit+"px",i.style.left=nunit+"px",i.style.boxSizing="border-box",0==o&&0==n||0==o&&n==span-1||o==span-1&&n==span-1||o==span-1&&0==n?(r.remove(),t[o][n]=blocks[0],s[o][n]="X",i.className="cornerBox",i.style.transition=speed+"s border-radius",0==o&&0==n?(i.style.borderTopLeftRadius="50%25",i.setAttribute("onMouseOver","this.style.borderTopLeftRadius='25%25'"),i.setAttribute("onMouseOut","this.style.borderTopLeftRadius='50%25'"),i.setAttribute("onClick","newGame()")):0==o&&n==span-1?((r=document.createElement("div")).style.background="white",r.style.height=.5unit+"px",r.style.width=.1unit+"px",r.style.borderRadius=100/3+"%25",r.style.position="absolute",r.style.top=.25unit+"px",r.style.left=.45unit+"px",r.style.transform="rotate(45deg)",r.style.webkitTransform="rotate(45deg)",i.appendChild(r),(r=r.cloneNode()).style.transform="rotate(-45deg)",r.style.webkitTransform="rotate(-45deg)",i.appendChild(r),i.style.borderTopRightRadius="50%25",i.setAttribute("onMouseOver","this.style.borderTopRightRadius='25%25'"),i.setAttribute("onMouseOut","this.style.borderTopRightRadius='50%25'"),i.setAttribute("onClick","game.style.opacity=0;board.style.opacity=0;setTimeout(function(){ game.remove(); board.remove(); },100)")):o==span-1&&n==span-1?(i.style.borderBottomRightRadius="50%25",i.setAttribute("onMouseOver","this.style.borderBottomRightRadius='25%25'"),i.setAttribute("onMouseOut","this.style.borderBottomRightRadius='50%25'"),i.setAttribute("onClick","hide()")):o==span-1&&0==n&&(i.style.borderBottomLeftRadius="50%25",i.setAttribute("onMouseOver","this.style.borderBottomLeftRadius='25%25'"),i.setAttribute("onMouseOut","this.style.borderBottomLeftRadius='50%25'"),i.setAttribute("onClick","show()"))):0==o||o==span-1||0==n||n==span-1?(0==o||o==span-1?(t[o][n]=blocks[8],s[o][n]=0==o?[3,3,3,3]:[1,1,1,1]):0!=n&&n!=span-1||(t[o][n]=blocks[9],s[o][n]=0==n?[0,0,0,0]:[2,2,2,2]),i.className="edgeBox",i.style.background="rgba(0,0,0,0.25)",i.style.transition=2speed+"s background"):(t[o][n]=newBlock(distribution),s[o][n]=t[o][n].goto,i.className="innerBox",i.style.borderRadius=100/3+"%25",i.style.transition=2speed+"s opacity"),t[o][n]),a="innerBox"==i.className?"white":e;r==full||r==empty?(i.style.background=r.img?a:"transparent",i.style.height=unit+"px",i.style.width=unit+"px"):r==bslash||r==slash?(i.style.background=a,i.style.left=(n+.4)unit+"px",i.style.height=unit+"px",i.style.width=.2unit+"px",i.style.transform="rotate("+[45,-45][r.img]+"deg)",i.style.webkitTransform="rotate("+[45,-45][r.img]+"deg)"):r==cornertr||r==cornerbr||r==cornerbl||r==cornertl?(i.style.height=unit+"px",i.style.width=unit+"px",i.style.borderRight=.5unit+"px solid "+(r.img[0]?a:"transparent"),i.style.borderTop=.5unit+"px solid "+(r.img[1]?a:"transparent"),i.style.borderLeft=.5unit+"px solid "+(r.img[2]?a:"transparent"),i.style.borderBottom=.5unit+"px solid "+(r.img[3]?a:"transparent")):r==vpipe||r==hpipe?(i.style.height=unit+"px",i.style.width=unit+"px",i.style.borderRight=.2unit+"px solid "+(r.img[0]?a:"transparent"),i.style.borderTop=.2unit+"px solid "+(r.img[1]?a:"transparent"),i.style.borderLeft=.2unit+"px solid "+(r.img[2]?a:"transparent"),i.style.borderBottom=.2unit+"px solid "+(r.img[3]?a:"transparent")):r==ccw||r==cw?(i.style.background=a,i.style.left=(n+.4)unit+"px",i.style.height=unit+"px",i.style.width=.2unit+"px",i.style.animation=["cwise","ccwise"][r.img]+" "+5speed+"s infinite linear"):console.log("Error: Unknown block entered into display()."),game.appendChild(i)}}return s}function newPath(e,t,s,o){void 0===s&&(s=compass[e][t][0]),void 0===o&&(o=0);var s=compass[e][t][s],n=[[0,1],[-1,0],[0,-1],[1,0]];return e+=n[s][0],t+=n[s][1],0!=e&&e!=span-1&&0!=t&&t!=span-1?newPath(e,t,(s+2)%254,compass[e][t]==empty.goto?o+1:o+2):{x:e,y:t,steps:o}}function newBall(e,t){var s=document.createElement("div");return s.style.background="white",s.style.position="absolute",s.style.top=eunit+"px",s.style.left=tunit+"px",s.style.width=.4unit+"px",s.style.height=.4unit+"px",s.style.borderRadius="50%25",s.style.margin=.3unit+"px",s.style.transition=speed+"s top, "+speed+"s left, "+speed+"s background",s.style.transitionTimingFunction="linear",s.style.pointerEvents="none",game.appendChild(s),s}function move(e,t,s,o,n){void 0===n&&(n=compass[s][o][0]),0<s&&s<span-1&&0<o&&o<span-1&&(getByXY(s,o).style.opacity=1);var r=compass[s][o][n],n=[[0,1],[-1,0],[0,-1],[1,0]];if(s+=n[r][0],o+=n[r][1],ball.style.top=units+"px",ball.style.left=unito+"px",0!=s&&s!=span-1&&0!=o&&o!=span-1)setTimeout(function(){move(e,t,s,o,(r+2)%254)},1e3speed);else{if(goal.end.x==e&&goal.end.y==t){for(var i=0;i<edges.length;i++)edges[i].style.background="rgba(0,128,0,0.5)";ball.style.background="green",pts+=goal.end.steps,lvl==span-2?(span++,lvl=1):lvl++}else{for(i=0;i<edges.length;i++)edges[i].style.background="rgba(128,0,0,0.5)";ball.style.background="red",hp--,3<span&&(1==lvl?lvl=--span-2:lvl--)}setTimeout(show,1e4speed),setTimeout(newGame,2e4speed)}}function getByXY(e,t){for(var s=0;s<inners.length;s++)if(inners[s].x==e&&inners[s].y==t)return inners[s]}function hide(){for(var e=0;e<inners.length;e++)inners[e].style.opacity=0}function show(){for(var e=0;e<inners.length;e++)inners[e].style.opacity=1}function newGoal(){for(var e={},t=0;t<edges.length;t++)null==e[edges[t].end.steps]?e[edges[t].end.steps]=[edges[t]]:e[edges[t].end.steps].push(edges[t]);return choose(e[(key=Object.keys(e))[key.length-1]])}function enable(){for(var e=0;e<edges.length;e++)edges[e].style.background="transparent",edges[e].setAttribute("onMouseOver","this.style.background='rgba(0,0,0,0.25)'"),edges[e].setAttribute("onMouseOut","this.style.background='transparent'"),edges[e].setAttribute("onClick","guess("+goal.x+","+goal.y+","+edges[e].x+","+edges[e].y+")")}function disable(){for(var e=0;e<edges.length;e++)edges[e].style.background="rgba(0,0,0,0.25)",edges[e].removeAttribute("onMouseOver"),edges[e].removeAttribute("onMouseOut"),edges[e].removeAttribute("onClick")}function guess(e,t,s,o){disable(),move(s,o,e,t)}newGame(); | mouselight.min.js javascript:krazete:function choose(e){return e[Math.floor(Math.random()e.length)]}function newHex(e,t){void 0===e&&(e=0),void 0===t&&(t=16);for(var s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],o="#",n=0;n<6;n++)o+=choose(s.slice(e,t));return o}function newByte(e,t,s){void 0===t&&(t=0),void 0===s&&(s=256);for(var o=[],n=0;n<256;n++)o.push(n);for(var r="rgba(",n=0;n<3;n++)r+=choose(o.slice(t,s))+",";return r+=e+")"}function newBlock(e){for(var t=[0,1,2,2,3,3,3,3,4,4,5,5],s=[],o=0;o<blocks.length;o++)for(var n=0;n<e[t[o]];n++)s.push(blocks[o]);return choose(s)}var compass,edges,goal,ball,blocks=[full={img:1,goto:[0,1,2,3]},empty={img:0,goto:[2,3,0,1]},bslash={img:1,goto:[1,0,3,2]},slash={img:0,goto:[3,2,1,0]},cornertr={img:[1,1,0,0],goto:[0,1,3,2]},cornerbr={img:[1,0,0,1],goto:[0,2,1,3]},cornerbl={img:[0,0,1,1],goto:[1,0,2,3]},cornertl={img:[0,1,1,0],goto:[3,1,2,0]},vpipe={img:[1,0,1,0],goto:[0,3,2,1]},hpipe={img:[0,1,0,1],goto:[2,1,0,3]},ccw={img:1,goto:[1,2,3,0]},cw={img:0,goto:[3,0,1,2]}],spinster=document.createElement("style"),span=(spinster.innerHTML="@keyframes cwise{ from{transform:rotate(0deg);-webkit-transform:rotate(0deg);} to{transform:rotate(360deg);-webkit-transform:rotate(360deg);} }",spinster.innerHTML+="@keyframes ccwise{ from{transform:rotate(360deg);-webkit-transform:rotate(360deg);} to{transform:rotate(0deg);-webkit-transform:rotate(0deg);} }",document.body.appendChild(spinster),3),distribution=[0,2,1,0,0,0],VMIN=innerWidth<innerHeight?innerWidth:innerHeight,zoom=3VMIN/4,unit=zoom/span,speed=.1,game=document.createElement("div"),corners=(game.style.position="fixed",game.style.top="50%25",game.style.left="50%25",game.style.transform="translate(-50%25,-50%25)",game.style.webkitTransform="translate(-50%25,-50%25)",game.style.transition=speed+"s opacity",game.style.zIndex="9999",document.getElementsByClassName("cornerBox")),inners=document.getElementsByClassName("innerBox"),rawEdges=document.getElementsByClassName("edgeBox"),lvl=1,pts=0,hp=15,board=document.createElement("div"),tab=(board.style.background="white",board.style.textAlign="center",board.style.position="fixed",board.style.bottom=0,board.style.left="50%25",board.style.transform="translateX(-50%25)",board.style.webkitTransform="translateX(-50%25)",board.style.transition=speed+"s opacity",board.style.border="1px solid black",board.style.padding="5px",board.style.borderRadius="5px",board.style.zIndex="9999",document.body.appendChild(board)," ­ ­ ­ ­ ­ ­ ­ ­ ­ ");function newGame(e,t,s,o){if(distribution=t=void 0===t?distribution:t,unit=(zoom=s=void 0===s?zoom:s)/(span=e=void 0===e?span:e),speed=o=void 0===o?speed:o,board.style.opacity=1,board.innerHTML="Lives: "+hp+tab+"Points: "+pts+tab+"Level: "+(span-2)+tab+"Sublevel: "+lvl+"/"+(span-2)+"
",0==hp||2==span)return hide(),disable(),ball.remove(),board.innerHTML+="GAME OVER",0;for(;game.lastChild;)game.removeChild(game.lastChild);for(game.remove(),game.style.background=newByte(.75,64,192),game.style.height=zoom+"px",game.style.width=zoom+"px",game.style.borderRadius=.5
unit+"px",game.style.opacity=1,document.body.appendChild(game),compass=newBoard(),edges=[],i=0;i<rawEdges.length;i++)rawEdges[i].end=newPath(rawEdges[i].x,rawEdges[i].y),edges.push(rawEdges[i]);edges.sort(function(e,t){return e.end.steps-t.end.steps}),setTimeout(setUp,1e4speed(1+span/10))}function setUp(){goal=newGoal(),ball=newBall(goal.x,goal.y),hide(),enable()}function newBoard(){for(var e=newHex(0,8),t=[],s=[],o=0;o<span;o++){t[o]=[],s[o]=[];for(var n=0;n<span;n++){var r=document.createElement("div"),i=(r.style.height=unit+"px",r.style.width=unit+"px",r.style.position="absolute",r.style.top=ounit+"px",r.style.left=nunit+"px",r.style.boxSizing="border-box",r.style.boxShadow="inset 0 0 3px "+game.style.backgroundColor,game.appendChild(r),document.createElement("div")),r=(i.x=o,i.y=n,i.style.position="absolute",i.style.top=ounit+"px",i.style.left=nunit+"px",i.style.boxSizing="border-box",0==o&&0==n||0==o&&n==span-1||o==span-1&&n==span-1||o==span-1&&0==n?(r.remove(),t[o][n]=blocks[0],s[o][n]="X",i.className="cornerBox",i.style.transition=speed+"s border-radius",0==o&&0==n?(i.style.borderTopLeftRadius="50%25",i.setAttribute("onMouseOver","this.style.borderTopLeftRadius='25%25'"),i.setAttribute("onMouseOut","this.style.borderTopLeftRadius='50%25'"),i.setAttribute("onClick","newGame()")):0==o&&n==span-1?((r=document.createElement("div")).style.background="white",r.style.height=.5unit+"px",r.style.width=.1unit+"px",r.style.borderRadius=100/3+"%25",r.style.position="absolute",r.style.top=.25unit+"px",r.style.left=.45unit+"px",r.style.transform="rotate(45deg)",r.style.webkitTransform="rotate(45deg)",i.appendChild(r),(r=r.cloneNode()).style.transform="rotate(-45deg)",r.style.webkitTransform="rotate(-45deg)",i.appendChild(r),i.style.borderTopRightRadius="50%25",i.setAttribute("onMouseOver","this.style.borderTopRightRadius='25%25'"),i.setAttribute("onMouseOut","this.style.borderTopRightRadius='50%25'"),i.setAttribute("onClick","game.style.opacity=0;board.style.opacity=0;setTimeout(function(){ game.remove(); board.remove(); },100)")):o==span-1&&n==span-1?(i.style.borderBottomRightRadius="50%25",i.setAttribute("onMouseOver","this.style.borderBottomRightRadius='25%25'"),i.setAttribute("onMouseOut","this.style.borderBottomRightRadius='50%25'"),i.setAttribute("onClick","hide()")):o==span-1&&0==n&&(i.style.borderBottomLeftRadius="50%25",i.setAttribute("onMouseOver","this.style.borderBottomLeftRadius='25%25'"),i.setAttribute("onMouseOut","this.style.borderBottomLeftRadius='50%25'"),i.setAttribute("onClick","show()"))):0==o||o==span-1||0==n||n==span-1?(0==o||o==span-1?(t[o][n]=blocks[8],s[o][n]=0==o?[3,3,3,3]:[1,1,1,1]):0!=n&&n!=span-1||(t[o][n]=blocks[9],s[o][n]=0==n?[0,0,0,0]:[2,2,2,2]),i.className="edgeBox",i.style.background="rgba(0,0,0,0.25)",i.style.transition=2speed+"s background"):(t[o][n]=newBlock(distribution),s[o][n]=t[o][n].goto,i.className="innerBox",i.style.borderRadius=100/3+"%25",i.style.transition=2speed+"s opacity"),t[o][n]),a="innerBox"==i.className?"white":e;r==full||r==empty?(i.style.background=r.img?a:"transparent",i.style.height=unit+"px",i.style.width=unit+"px"):r==bslash||r==slash?(i.style.background=a,i.style.left=(n+.4)unit+"px",i.style.height=unit+"px",i.style.width=.2unit+"px",i.style.transform="rotate("+[45,-45][r.img]+"deg)",i.style.webkitTransform="rotate("+[45,-45][r.img]+"deg)"):r==cornertr||r==cornerbr||r==cornerbl||r==cornertl?(i.style.height=unit+"px",i.style.width=unit+"px",i.style.borderRight=.5unit+"px solid "+(r.img[0]?a:"transparent"),i.style.borderTop=.5unit+"px solid "+(r.img[1]?a:"transparent"),i.style.borderLeft=.5unit+"px solid "+(r.img[2]?a:"transparent"),i.style.borderBottom=.5unit+"px solid "+(r.img[3]?a:"transparent")):r==vpipe||r==hpipe?(i.style.height=unit+"px",i.style.width=unit+"px",i.style.borderRight=.2unit+"px solid "+(r.img[0]?a:"transparent"),i.style.borderTop=.2unit+"px solid "+(r.img[1]?a:"transparent"),i.style.borderLeft=.2unit+"px solid "+(r.img[2]?a:"transparent"),i.style.borderBottom=.2unit+"px solid "+(r.img[3]?a:"transparent")):r==ccw||r==cw?(i.style.background=a,i.style.left=(n+.4)unit+"px",i.style.height=unit+"px",i.style.width=.2unit+"px",i.style.animation=["cwise","ccwise"][r.img]+" "+5speed+"s infinite linear"):console.log("Error: Unknown block entered into display()."),game.appendChild(i)}}return s}function newPath(e,t,s,o){void 0===s&&(s=compass[e][t][0]),void 0===o&&(o=0);var s=compass[e][t][s],n=[[0,1],[-1,0],[0,-1],[1,0]];return e+=n[s][0],t+=n[s][1],0!=e&&e!=span-1&&0!=t&&t!=span-1?newPath(e,t,(s+2)%254,compass[e][t]==empty.goto?o+1:o+2):{x:e,y:t,steps:o}}function newBall(e,t){var s=document.createElement("div");return s.style.background="white",s.style.position="absolute",s.style.top=eunit+"px",s.style.left=tunit+"px",s.style.width=.4unit+"px",s.style.height=.4unit+"px",s.style.borderRadius="50%25",s.style.margin=.3unit+"px",s.style.transition=speed+"s top, "+speed+"s left, "+speed+"s background",s.style.transitionTimingFunction="linear",s.style.pointerEvents="none",game.appendChild(s),s}function move(e,t,s,o,n){void 0===n&&(n=compass[s][o][0]),0<s&&s<span-1&&0<o&&o<span-1&&(getByXY(s,o).style.opacity=1);var r=compass[s][o][n],n=[[0,1],[-1,0],[0,-1],[1,0]];if(s+=n[r][0],o+=n[r][1],ball.style.top=units+"px",ball.style.left=unito+"px",0!=s&&s!=span-1&&0!=o&&o!=span-1)setTimeout(function(){move(e,t,s,o,(r+2)%254)},1e3speed);else{if(goal.end.x==e&&goal.end.y==t){for(var i=0;i<edges.length;i++)edges[i].style.background="rgba(0,128,0,0.5)";ball.style.background="green",pts+=goal.end.steps,lvl==span-2?(span++,lvl=1):lvl++}else{for(i=0;i<edges.length;i++)edges[i].style.background="rgba(128,0,0,0.5)";ball.style.background="red",hp--,3<span&&(1==lvl?lvl=--span-2:lvl--)}setTimeout(show,1e4speed),setTimeout(newGame,2e4speed)}}function getByXY(e,t){for(var s=0;s<inners.length;s++)if(inners[s].x==e&&inners[s].y==t)return inners[s]}function hide(){for(var e=0;e<inners.length;e++)inners[e].style.opacity=0}function show(){for(var e=0;e<inners.length;e++)inners[e].style.opacity=1}function newGoal(){for(var e={},t=0;t<edges.length;t++)null==e[edges[t].end.steps]?e[edges[t].end.steps]=[edges[t]]:e[edges[t].end.steps].push(edges[t]);return choose(e[(key=Object.keys(e))[key.length-1]])}function enable(){for(var e=0;e<edges.length;e++)edges[e].style.background="transparent",edges[e].setAttribute("onMouseOver","this.style.background='rgba(0,0,0,0.25)'"),edges[e].setAttribute("onMouseOut","this.style.background='transparent'"),edges[e].setAttribute("onClick","guess("+goal.x+","+goal.y+","+edges[e].x+","+edges[e].y+")")}function disable(){for(var e=0;e<edges.length;e++)edges[e].style.background="rgba(0,0,0,0.25)",edges[e].removeAttribute("onMouseOver"),edges[e].removeAttribute("onMouseOut"),edges[e].removeAttribute("onClick")}function guess(e,t,s,o){disable(),move(s,o,e,t)}newGame(); | piano.min.js javascript:krazete:!function(){var a={css:document.createElement("style"),ui:document.createElement("div"),menuleft:document.createElement("div"),wave:document.createElement("select"),pitch:document.createElement("input"),tilt:document.createElement("input"),keyboard:document.createElement("div"),menuright:document.createElement("div"),audio:new AudioContext,keymap:[{key:"",caps_key:"~",dom:document.createElement("div"),hz:0,pressed:0},{key:"Tab",caps_key:"Tab",dom:document.createElement("div"),hz:0,pressed:0},{key:"1",caps_key:"!",dom:document.createElement("div"),hz:0,pressed:0},{key:"q",caps_key:"Q",dom:document.createElement("div"),hz:0,pressed:0},{key:"2",caps_key:"@",dom:document.createElement("div"),hz:0,pressed:0},{key:"w",caps_key:"W",dom:document.createElement("div"),hz:0,pressed:0},{key:"3",caps_key:"#",dom:document.createElement("div"),hz:0,pressed:0},{key:"e",caps_key:"E",dom:document.createElement("div"),hz:0,pressed:0},{key:"r",caps_key:"R",dom:document.createElement("div"),hz:0,pressed:0},{key:"5",caps_key:"%25",dom:document.createElement("div"),hz:0,pressed:0},{key:"t",caps_key:"T",dom:document.createElement("div"),hz:0,pressed:0},{key:"6",caps_key:"^",dom:document.createElement("div"),hz:0,pressed:0},{key:"y",caps_key:"Y",dom:document.createElement("div"),hz:0,pressed:0},{key:"u",caps_key:"U",dom:document.createElement("div"),hz:0,pressed:0},{key:"8",caps_key:"*",dom:document.createElement("div"),hz:0,pressed:0},{key:"i",caps_key:"I",dom:document.createElement("div"),hz:0,pressed:0},{key:"9",caps_key:"(",dom:document.createElement("div"),hz:0,pressed:0},{key:"o",caps_key:"O",dom:document.createElement("div"),hz:0,pressed:0},{key:"0",caps_key:")",dom:document.createElement("div"),hz:0,pressed:0},{key:"p",caps_key:"P",dom:document.createElement("div"),hz:0,pressed:0},{key:"[",caps_key:"{",dom:document.createElement("div"),hz:0,pressed:0},{key:"=",caps_key:"+",dom:document.createElement("div"),hz:0,pressed:0},{key:"]",caps_key:"}",dom:document.createElement("div"),hz:0,pressed:0},{key:"Backspace",caps_key:"Backspace",dom:document.createElement("div"),hz:0,pressed:0},{key:"\\",caps_key:"|",dom:document.createElement("div"),hz:0,pressed:0},{key:"ShiftLeft",caps_key:"ShiftLeft",dom:document.createElement("div"),hz:0,pressed:0},{key:"a",caps_key:"A",dom:document.createElement("div"),hz:0,pressed:0},{key:"z",caps_key:"Z",dom:document.createElement("div"),hz:0,pressed:0},{key:"s",caps_key:"S",dom:document.createElement("div"),hz:0,pressed:0},{key:"x",caps_key:"X",dom:document.createElement("div"),hz:0,pressed:0},{key:"d",caps_key:"D",dom:document.createElement("div"),hz:0,pressed:0},{key:"c",caps_key:"C",dom:document.createElement("div"),hz:0,pressed:0},{key:"v",caps_key:"V",dom:document.createElement("div"),hz:0,pressed:0},{key:"g",caps_key:"G",dom:document.createElement("div"),hz:0,pressed:0},{key:"b",caps_key:"B",dom:document.createElement("div"),hz:0,pressed:0},{key:"h",caps_key:"H",dom:document.createElement("div"),hz:0,pressed:0},{key:"n",caps_key:"N",dom:document.createElement("div"),hz:0,pressed:0},{key:"m",caps_key:"M",dom:document.createElement("div"),hz:0,pressed:0},{key:"k",caps_key:"K",dom:document.createElement("div"),hz:0,pressed:0},{key:",",caps_key:"<",dom:document.createElement("div"),hz:0,pressed:0},{key:"l",caps_key:"L",dom:document.createElement("div"),hz:0,pressed:0},{key:".",caps_key:">",dom:document.createElement("div"),hz:0,pressed:0},{key:";",caps_key:":",dom:document.createElement("div"),hz:0,pressed:0},{key:"/",caps_key:"?",dom:document.createElement("div"),hz:0,pressed:0},{key:"ShiftRight",caps_key:"ShiftRight",dom:document.createElement("div"),hz:0,pressed:0},{key:"Enter",caps_key:"Enter",dom:document.createElement("div"),hz:0,pressed:0}],disc:[[],[{keyi:53,wave:"triangle",time:0,timeout:null},{keyi:55,wave:"triangle",time:.1973696145124677,timeout:null},{keyi:62,wave:"triangle",time:.4063492063492049,timeout:null},{keyi:55,wave:"triangle",time:.6153287981859421,timeout:null},{keyi:62,wave:"triangle",time:.8533333333333246,timeout:null},{keyi:62,wave:"triangle",time:2.02594104308389,timeout:null},{keyi:60,wave:"triangle",time:2.5135600907029527,timeout:null},{keyi:55,wave:"triangle",time:3.4017233560090574,timeout:null},{keyi:62,wave:"triangle",time:3.60489795918366,timeout:null},{keyi:55,wave:"triangle",time:3.8254875283446665,timeout:null},{keyi:62,wave:"triangle",time:4.028662131519269,timeout:null},{keyi:60,wave:"triangle",time:4.260861678004517,timeout:null},{keyi:58,wave:"triangle",time:4.696235827664395,timeout:null},{keyi:58,wave:"triangle",time:4.905215419501133,timeout:null},{keyi:57,wave:"triangle",time:5.1200000000000045,timeout:null},{keyi:58,wave:"triangle",time:5.340589569160983,timeout:null},{keyi:58,wave:"triangle",time:5.572789115646259,timeout:null},{keyi:51,wave:"triangle",time:6.669931972789101,timeout:null},{keyi:53,wave:"triangle",time:6.873106575963703,timeout:null},{keyi:54,wave:"triangle",time:7.1053061224489795,timeout:null},{keyi:56,wave:"triangle",time:7.3200907029478515,timeout:null},{keyi:58,wave:"triangle",time:7.52907029478456,timeout:null},{keyi:60,wave:"triangle",time:7.73514739229023,timeout:null},{keyi:61,wave:"triangle",time:7.935419501133794,timeout:null},{keyi:63,wave:"triangle",time:8.161814058956907,timeout:null},{keyi:65,wave:"triangle",time:8.399818594104289,timeout:null},{keyi:65,wave:"triangle",time:11.157188208616788,timeout:null},{keyi:65,wave:"triangle",time:11.412607709750574,timeout:null},{keyi:62,wave:"triangle",time:11.839274376417222,timeout:null},{keyi:62,wave:"triangle",time:12.103401360544211,timeout:null},{keyi:58,wave:"triangle",time:12.550385487528331,timeout:null},{keyi:58,wave:"triangle",time:12.817414965986387,timeout:null},{keyi:55,wave:"triangle",time:13.223764172335592,timeout:null},{keyi:58,wave:"triangle",time:13.479183673469379,timeout:null},{keyi:55,wave:"triangle",time:13.862312925170073,timeout:null},{keyi:58,wave:"triangle",time:14.071292517006782,timeout:null},{keyi:60,wave:"triangle",time:14.303492063492058,timeout:null},{keyi:58,wave:"triangle",time:14.5298866213152,timeout:null},{keyi:60,wave:"triangle",time:14.727256235827667,timeout:null},{keyi:62,wave:"triangle",time:14.988480725623589,timeout:null},{keyi:58,wave:"triangle",time:15.23809523809524,timeout:null},{keyi:58,wave:"triangle",time:15.493514739229028,timeout:null},{keyi:53,wave:"triangle",time:15.981133786848062,timeout:null},{keyi:58,wave:"triangle",time:17.055056689342393,timeout:null},{keyi:56,wave:"triangle",time:17.293061224489776,timeout:null},{keyi:58,wave:"triangle",time:17.502040816326513,timeout:null},{keyi:61,wave:"triangle",time:17.7574603174603,timeout:null},{keyi:60,wave:"triangle",time:18.245079365079363,timeout:null},{keyi:58,wave:"triangle",time:18.721088435374156,timeout:null},{keyi:60,wave:"triangle",time:18.918458049886624,timeout:null},{keyi:56,wave:"triangle",time:19.191292517006787,timeout:null},{keyi:68,wave:"triangle",time:21.809342403628108,timeout:null},{keyi:67,wave:"triangle",time:22.064761904761895,timeout:null},{keyi:61,wave:"triangle",time:24.009433106575955,timeout:null},{keyi:60,wave:"triangle",time:24.247437641723337,timeout:null},{keyi:58,wave:"triangle",time:24.479637188208613,timeout:null},{keyi:60,wave:"triangle",time:24.67700680272108,timeout:null},{keyi:58,wave:"triangle",time:24.944036281179137,timeout:null},{keyi:56,wave:"triangle",time:25.45487528344671,timeout:null},{keyi:55,wave:"triangle",time:25.92507936507937,timeout:null},{keyi:56,wave:"triangle",time:26.151473922902483,timeout:null},{keyi:60,wave:"triangle",time:26.412698412698404,timeout:null},{keyi:58,wave:"triangle",time:26.929342403628112,timeout:null},{keyi:53,wave:"triangle",time:28.64761904761903,timeout:null},{keyi:55,wave:"triangle",time:28.879818594104307,timeout:null},{keyi:56,wave:"triangle",time:29.112018140589555,timeout:null},{keyi:55,wave:"triangle",time:29.384852607709746,timeout:null},{keyi:60,wave:"triangle",time:30.27301587301588,timeout:null},{keyi:53,wave:"triangle",time:31.103129251700665,timeout:null},{keyi:55,wave:"triangle",time:34.41777777777776,timeout:null},{keyi:62,wave:"triangle",time:34.649977324263034,timeout:null},{keyi:65,wave:"triangle",time:34.980861678004516,timeout:null},{keyi:62,wave:"triangle",time:35.25369614512471,timeout:null},{keyi:58,wave:"triangle",time:35.497505668934224,timeout:null},{keyi:55,wave:"triangle",time:35.735510204081635,timeout:null},{keyi:58,wave:"triangle",time:35.996734693877556,timeout:null},{keyi:53,wave:"triangle",time:37.0938775510204,timeout:null},{keyi:55,wave:"triangle",time:37.54086167800452,timeout:null},{keyi:62,wave:"triangle",time:37.80208616780044,timeout:null},{keyi:60,wave:"triangle",time:38.04589569160996,timeout:null},{keyi:58,wave:"triangle",time:38.2897052154195,timeout:null},{keyi:60,wave:"triangle",time:38.54512471655329,timeout:null},{keyi:62,wave:"triangle",time:39.07918367346937,timeout:null},{keyi:58,wave:"triangle",time:39.648072562358266,timeout:null},{keyi:65,wave:"triangle",time:40.245986394557804,timeout:null},{keyi:54,wave:"triangle",time:41.63337868480724,timeout:null},{keyi:65,wave:"triangle",time:41.89460317460316,timeout:null},{keyi:54,wave:"triangle",time:42.16743764172335,timeout:null},{keyi:65,wave:"triangle",time:42.393832199546466,timeout:null},{keyi:63,wave:"triangle",time:42.66086167800452,timeout:null},{keyi:61,wave:"triangle",time:42.90467120181404,timeout:null},{keyi:63,wave:"triangle",time:43.14267573696145,timeout:null},{keyi:65,wave:"triangle",time:43.40970521541951,timeout:null},{keyi:60,wave:"triangle",time:43.665124716553294,timeout:null},{keyi:61,wave:"triangle",time:43.937959183673456,timeout:null},{keyi:56,wave:"triangle",time:44.22240362811792,timeout:null},{keyi:53,wave:"triangle",time:44.756462585034,timeout:null},{keyi:56,wave:"triangle",time:45.046712018140596,timeout:null},{keyi:58,wave:"triangle",time:46.71274376417233,timeout:null},{keyi:60,wave:"triangle",time:46.96816326530612,timeout:null},{keyi:61,wave:"triangle",time:47.22938775510204,timeout:null},{keyi:60,wave:"triangle",time:47.76925170068026,timeout:null},{keyi:61,wave:"triangle",time:48.0130612244898,timeout:null},{keyi:60,wave:"triangle",time:48.32653061224488,timeout:null},{keyi:55,wave:"triangle",time:49.27854875283447,timeout:null},{keyi:56,wave:"triangle",time:49.51655328798185,timeout:null},{keyi:58,wave:"triangle",time:49.77777777777777,timeout:null},{keyi:58,wave:"triangle",time:50.02158730158729,timeout:null},{keyi:56,wave:"triangle",time:50.265396825396806,timeout:null},{keyi:55,wave:"triangle",time:50.54403628117913,timeout:null},{keyi:56,wave:"triangle",time:50.793650793650784,timeout:null},{keyi:58,wave:"triangle",time:51.06068027210884,timeout:null},{keyi:60,wave:"triangle",time:51.36834467120181,timeout:null},{keyi:65,wave:"triangle",time:51.7166439909297,timeout:null},{keyi:67,wave:"triangle",time:52.34938775510204,timeout:null},{keyi:68,wave:"triangle",time:52.999546485260765,timeout:null},{keyi:68,wave:"triangle",time:53.5974603174603,timeout:null},{keyi:65,wave:"triangle",time:55.333151927437626,timeout:null},{keyi:65,wave:"triangle",time:55.64662131519273,timeout:null},{keyi:68,wave:"triangle",time:57.301043083900225,timeout:null},{keyi:67,wave:"triangle",time:57.620317460317466,timeout:null}],[{keyi:52,wave:"sine",time:0,timeout:null},{keyi:67,wave:"sine",time:.01160997732421265,timeout:null},{keyi:55,wave:"sine",time:.4353741496598218,timeout:null},{keyi:66,wave:"sine",time:.6501587301586937,timeout:null},{keyi:60,wave:"sine",time:.9055782312925089,timeout:null},{keyi:67,wave:"sine",time:.9113832199546437,timeout:null},{keyi:53,wave:"sine",time:1.3873922902494087,timeout:null},{keyi:65,wave:"sine",time:1.3873922902494087,timeout:null},{keyi:56,wave:"sine",time:1.8111564625850178,timeout:null},{keyi:60,wave:"sine",time:2.226213151927425,timeout:null},{keyi:68,wave:"sine",time:2.2407256235827617,timeout:null},{keyi:48,wave:"sine",time:2.7399546485260657,timeout:null},{keyi:67,wave:"sine",time:2.7399546485260657,timeout:null},{keyi:55,wave:"sine",time:3.2043537414965613,timeout:null},{keyi:60,wave:"sine",time:3.633922902494305,timeout:null},{keyi:64,wave:"sine",time:4.115736961451205,timeout:null},{keyi:55,wave:"sine",time:4.585941043083892,timeout:null},{keyi:64,wave:"sine",time:5.044535147392253,timeout:null},{keyi:52,wave:"sine",time:5.491519274376401,timeout:null},{keyi:67,wave:"sine",time:5.491519274376401,timeout:null},{keyi:55,wave:"sine",time:5.98494331065757,timeout:null},{keyi:64,wave:"sine",time:6.420317460317449,timeout:null},{keyi:68,wave:"sine",time:6.896326530612214,timeout:null},{keyi:47,wave:"sine",time:6.896326530612214,timeout:null},{keyi:53,wave:"sine",time:7.343310657596362,timeout:null},{keyi:67,wave:"sine",time:7.604535147392255,timeout:null},{keyi:56,wave:"sine",time:7.819319727891127,timeout:null},{keyi:65,wave:"sine",time:7.836734693877531,timeout:null},{keyi:67,wave:"sine",time:8.3301587301587,timeout:null},{keyi:48,wave:"sine",time:8.335963718820835,timeout:null},{keyi:52,wave:"sine",time:8.794557823129253,timeout:null},{keyi:55,wave:"sine",time:9.264761904761883,timeout:null},{keyi:58,wave:"sine",time:9.746575963718783,timeout:null}],[{keyi:27,wave:"sawtooth",time:0,timeout:null},{keyi:27,wave:"sawtooth",time:.31927437641723344,timeout:null},{keyi:29,wave:"sawtooth",time:.49342403628117637,timeout:null},{keyi:27,wave:"sawtooth",time:.9810430839002251,timeout:null},{keyi:32,wave:"sawtooth",time:1.4744671201814086,timeout:null},{keyi:31,wave:"sawtooth",time:1.9736961451247126,timeout:null},{keyi:27,wave:"sawtooth",time:2.9663492063492,timeout:null},{keyi:27,wave:"sawtooth",time:3.297233560090696,timeout:null},{keyi:29,wave:"sawtooth",time:3.430748299319724,timeout:null},{keyi:27,wave:"sawtooth",time:3.895147392290248,timeout:null},{keyi:34,wave:"sawtooth",time:4.400181405895687,timeout:null},{keyi:32,wave:"sawtooth",time:4.870385487528345,timeout:null},{keyi:27,wave:"sawtooth",time:5.886258503401358,timeout:null},{keyi:27,wave:"sawtooth",time:6.1997278911564635,timeout:null},{keyi:39,wave:"sawtooth",time:6.368072562358272,timeout:null},{keyi:36,wave:"sawtooth",time:6.861496598639455,timeout:null},{keyi:32,wave:"sawtooth",time:7.337505668934234,timeout:null},{keyi:31,wave:"sawtooth",time:7.865759637188212,timeout:null},{keyi:29,wave:"sawtooth",time:8.405623582766431,timeout:null},{keyi:37,wave:"sawtooth",time:9.589841269841266,timeout:null},{keyi:37,wave:"sawtooth",time:9.891700680272102,timeout:null},{keyi:36,wave:"sawtooth",time:10.11809523809523,timeout:null},{keyi:32,wave:"sawtooth",time:10.628934240362803,timeout:null},{keyi:34,wave:"sawtooth",time:11.206530612244897,timeout:null},{keyi:32,wave:"sawtooth",time:11.789931972789113,timeout:null}],[{keyi:27,wave:"triangle",time:0,timeout:null},{keyi:30,wave:"triangle",time:1.021333333333331,timeout:null},{keyi:25,wave:"triangle",time:2.4799999999999898,timeout:null},{keyi:32,wave:"triangle",time:3.6213333333333253,timeout:null},{keyi:27,wave:"triangle",time:4.661333333333346,timeout:null},{keyi:27,wave:"triangle",time:5.669333333333327,timeout:null},{keyi:30,wave:"triangle",time:6.629333333333335,timeout:null},{keyi:25,wave:"triangle",time:7.501333333333321,timeout:null},{keyi:32,wave:"triangle",time:8.22933333333333,timeout:null},{keyi:51,wave:"triangle",time:11.360000000000014,timeout:null},{keyi:58,wave:"triangle",time:11.981333333333339,timeout:null},{keyi:51,wave:"triangle",time:13.400000000000006,timeout:null},{keyi:51,wave:"triangle",time:14.781333333333322,timeout:null},{keyi:58,wave:"triangle",time:15.181333333333328,timeout:null},{keyi:51,wave:"triangle",time:15.52000000000001,timeout:null},{keyi:58,wave:"triangle",time:15.869333333333344,timeout:null},{keyi:59,wave:"triangle",time:16.189333333333337,timeout:null},{keyi:58,wave:"triangle",time:16.549333333333323,timeout:null},{keyi:51,wave:"triangle",time:16.840000000000003,timeout:null},{keyi:58,wave:"triangle",time:17.149333333333345,timeout:null},{keyi:51,wave:"triangle",time:17.46933333333334,timeout:null},{keyi:58,wave:"triangle",time:17.810666666666663,timeout:null},{keyi:51,wave:"triangle",time:18.141333333333336,timeout:null},{keyi:58,wave:"triangle",time:18.429333333333346,timeout:null},{keyi:59,wave:"triangle",time:18.781333333333322,timeout:null},{keyi:58,wave:"triangle",time:19.090666666666664,timeout:null},{keyi:51,wave:"triangle",time:19.410666666666657,timeout:null},{keyi:58,wave:"triangle",time:19.74133333333333,timeout:null},{keyi:51,wave:"triangle",time:20.101333333333343,timeout:null},{keyi:27,wave:"triangle",time:20.109333333333325,timeout:null},{keyi:58,wave:"triangle",time:20.439999999999998,timeout:null},{keyi:51,wave:"triangle",time:20.75999999999999,timeout:null},{keyi:58,wave:"triangle",time:21.069333333333333,timeout:null},{keyi:59,wave:"triangle",time:21.400000000000006,timeout:null},{keyi:58,wave:"triangle",time:21.661333333333346,timeout:null},{keyi:51,wave:"triangle",time:21.98133333333334,timeout:null},{keyi:58,wave:"triangle",time:22.26933333333332,timeout:null},{keyi:51,wave:"triangle",time:22.581333333333333,timeout:null},{keyi:30,wave:"triangle",time:22.610666666666674,timeout:null},{keyi:58,wave:"triangle",time:22.919999999999987,timeout:null},{keyi:51,wave:"triangle",time:23.330666666666644,timeout:null},{keyi:58,wave:"triangle",time:23.650666666666694,timeout:null},{keyi:59,wave:"triangle",time:23.98933333333335,timeout:null},{keyi:58,wave:"triangle",time:24.309333333333342,timeout:null},{keyi:51,wave:"triangle",time:24.610666666666674,timeout:null},{keyi:58,wave:"triangle",time:24.930666666666667,timeout:null},{keyi:51,wave:"triangle",time:25.25066666666666,timeout:null},{keyi:25,wave:"triangle",time:25.28,timeout:null},{keyi:58,wave:"triangle",time:25.610666666666674,timeout:null},{keyi:51,wave:"triangle",time:25.930666666666667,timeout:null},{keyi:58,wave:"triangle",time:26.26133333333334,timeout:null},{keyi:59,wave:"triangle",time:26.621333333333354,timeout:null},{keyi:58,wave:"triangle",time:26.960000000000008,timeout:null},{keyi:51,wave:"triangle",time:27.28,timeout:null},{keyi:58,wave:"triangle",time:27.54933333333335,timeout:null},{keyi:51,wave:"triangle",time:27.880000000000024,timeout:null},{keyi:32,wave:"triangle",time:27.890666666666647,timeout:null},{keyi:58,wave:"triangle",time:28.159999999999997,timeout:null},{keyi:51,wave:"triangle",time:28.50933333333333,timeout:null},{keyi:58,wave:"triangle",time:28.869333333333344,timeout:null},{keyi:59,wave:"triangle",time:29.22133333333332,timeout:null},{keyi:58,wave:"triangle",time:29.53066666666669,timeout:null},{keyi:51,wave:"triangle",time:29.840000000000003,timeout:null},{keyi:58,wave:"triangle",time:30.181333333333356,timeout:null},{keyi:27,wave:"triangle",time:30.50933333333333,timeout:null},{keyi:51,wave:"triangle",time:30.52000000000001,timeout:null},{keyi:27,wave:"triangle",time:30.78933333333336,timeout:null},{keyi:58,wave:"triangle",time:30.829333333333324,timeout:null},{keyi:27,wave:"triangle",time:31.141333333333336,timeout:null},{keyi:51,wave:"triangle",time:31.189333333333337,timeout:null},{keyi:27,wave:"triangle",time:31.46933333333331,timeout:null},{keyi:58,wave:"triangle",time:31.50933333333333,timeout:null},{keyi:27,wave:"triangle",time:31.821333333333342,timeout:null},{keyi:59,wave:"triangle",time:31.840000000000003,timeout:null},{keyi:27,wave:"triangle",time:32.14933333333332,timeout:null},{keyi:58,wave:"triangle",time:32.20000000000002,timeout:null},{keyi:51,wave:"triangle",time:32.50933333333333,timeout:null},{keyi:27,wave:"triangle",time:32.52000000000001,timeout:null},{keyi:58,wave:"triangle",time:32.82133333333334,timeout:null},{keyi:27,wave:"triangle",time:32.861333333333306,timeout:null},{keyi:51,wave:"triangle",time:33.170666666666676,timeout:null},{keyi:30,wave:"triangle",time:33.181333333333356,timeout:null},{keyi:58,wave:"triangle",time:33.47733333333335,timeout:null},{keyi:30,wave:"triangle",time:33.50133333333335,timeout:null},{keyi:51,wave:"triangle",time:33.82133333333334,timeout:null},{keyi:30,wave:"triangle",time:33.84,timeout:null},{keyi:58,wave:"triangle",time:34.10933333333335,timeout:null},{keyi:30,wave:"triangle",time:34.16,timeout:null},{keyi:59,wave:"triangle",time:34.42666666666665,timeout:null},{keyi:30,wave:"triangle",time:34.50133333333335,timeout:null},{keyi:58,wave:"triangle",time:34.73066666666668,timeout:null},{keyi:30,wave:"triangle",time:34.81066666666666,timeout:null},{keyi:51,wave:"triangle",time:35.08000000000001,timeout:null},{keyi:30,wave:"triangle",time:35.135999999999996,timeout:null},{keyi:58,wave:"triangle",time:35.400000000000006,timeout:null},{keyi:30,wave:"triangle",time:35.45066666666665,timeout:null},{keyi:51,wave:"triangle",time:35.74133333333336,timeout:null},{keyi:25,wave:"triangle",time:35.78133333333332,timeout:null},{keyi:58,wave:"triangle",time:36.05066666666667,timeout:null},{keyi:25,wave:"triangle",time:36.09066666666669,timeout:null},{keyi:51,wave:"triangle",time:36.42133333333331,timeout:null},{keyi:25,wave:"triangle",time:36.440000000000026,timeout:null},{keyi:58,wave:"triangle",time:36.72,timeout:null},{keyi:25,wave:"triangle",time:36.78133333333332,timeout:null},{keyi:59,wave:"triangle",time:37.101333333333315,timeout:null},{keyi:25,wave:"triangle",time:37.119999999999976,timeout:null},{keyi:58,wave:"triangle",time:37.46133333333333,timeout:null},{keyi:25,wave:"triangle",time:37.47200000000001,timeout:null},{keyi:51,wave:"triangle",time:37.79999999999998,timeout:null},{keyi:25,wave:"triangle",time:37.84,timeout:null},{keyi:58,wave:"triangle",time:38.141333333333336,timeout:null},{keyi:25,wave:"triangle",time:38.20000000000002,timeout:null},{keyi:51,wave:"triangle",time:38.429333333333346,timeout:null},{keyi:32,wave:"triangle",time:38.54933333333335,timeout:null},{keyi:58,wave:"triangle",time:38.76000000000002,timeout:null},{keyi:32,wave:"triangle",time:38.861333333333306,timeout:null},{keyi:51,wave:"triangle",time:39.06933333333333,timeout:null},{keyi:32,wave:"triangle",time:39.14933333333332,timeout:null},{keyi:58,wave:"triangle",time:39.400000000000006,timeout:null},{keyi:32,wave:"triangle",time:39.49066666666667,timeout:null},{keyi:59,wave:"triangle",time:39.67999999999998,timeout:null},{keyi:32,wave:"triangle",time:39.81066666666666,timeout:null},{keyi:58,wave:"triangle",time:39.96000000000001,timeout:null},{keyi:32,wave:"triangle",time:40.119999999999976,timeout:null},{keyi:51,wave:"triangle",time:40.30933333333334,timeout:null},{keyi:32,wave:"triangle",time:40.381333333333345,timeout:null},{keyi:58,wave:"triangle",time:40.69066666666666,timeout:null},{keyi:32,wave:"triangle",time:40.70933333333332,timeout:null},{keyi:51,wave:"triangle",time:41.141333333333336,timeout:null}],[{keyi:48,wave:"triangle",time:0,timeout:null},{keyi:48,wave:"triangle",time:.7546485260770979,timeout:null},{keyi:48,wave:"triangle",time:1.5092970521541957,timeout:null},{keyi:44,wave:"triangle",time:2.2871655328798184,timeout:null},{keyi:51,wave:"triangle",time:2.9721541950113384,timeout:null},{keyi:48,wave:"triangle",time:3.262403628117916,timeout:null},{keyi:44,wave:"triangle",time:4.028662131519276,timeout:null},{keyi:51,wave:"triangle",time:4.643990929705215,timeout:null},{keyi:48,wave:"triangle",time:4.934240362811789,timeout:null},{keyi:55,wave:"triangle",time:6.443537414965984,timeout:null},{keyi:55,wave:"triangle",time:7.209795918367345,timeout:null},{keyi:55,wave:"triangle",time:7.941224489795918,timeout:null},{keyi:56,wave:"triangle",time:8.661043083900228,timeout:null},{keyi:51,wave:"triangle",time:9.206712018140589,timeout:null},{keyi:47,wave:"triangle",time:9.508571428571425,timeout:null},{keyi:44,wave:"triangle",time:10.30965986394558,timeout:null},{keyi:51,wave:"triangle",time:10.948208616780047,timeout:null},{keyi:48,wave:"triangle",time:11.226848072562358,timeout:null}],[{keyi:39,wave:"triangle",time:0,timeout:null},{keyi:37,wave:"triangle",time:0,timeout:null},{keyi:39,wave:"triangle",time:.39200000000005275,timeout:null},{keyi:37,wave:"triangle",time:.39200000000005275,timeout:null},{keyi:39,wave:"triangle",time:.7706666666666706,timeout:null},{keyi:37,wave:"triangle",time:.7706666666666706,timeout:null},{keyi:37,wave:"triangle",time:1.1520000000000437,timeout:null},{keyi:39,wave:"triangle",time:1.1706666666667047,timeout:null},{keyi:39,wave:"triangle",time:1.570666666666682,timeout:null},{keyi:37,wave:"triangle",time:1.570666666666682,timeout:null},{keyi:39,wave:"triangle",time:1.970666666666716,timeout:null},{keyi:37,wave:"triangle",time:1.9733333333333576,timeout:null},{keyi:36,wave:"triangle",time:2.3520000000000323,timeout:null},{keyi:39,wave:"triangle",time:2.3706666666666933,timeout:null},{keyi:39,wave:"triangle",time:2.810666666666691,timeout:null},{keyi:36,wave:"triangle",time:2.810666666666691,timeout:null},{keyi:39,wave:"triangle",time:3.2106666666666683,timeout:null},{keyi:36,wave:"triangle",time:3.2106666666666683,timeout:null},{keyi:39,wave:"triangle",time:3.6106666666667024,timeout:null},{keyi:36,wave:"triangle",time:3.6106666666667024,timeout:null},{keyi:39,wave:"triangle",time:4.0400000000000205,timeout:null},{keyi:36,wave:"triangle",time:4.0400000000000205,timeout:null},{keyi:39,wave:"triangle",time:4.432000000000016,timeout:null},{keyi:36,wave:"triangle",time:4.432000000000016,timeout:null},{keyi:43,wave:"triangle",time:4.840000000000032,timeout:null},{keyi:34,wave:"triangle",time:4.840000000000032,timeout:null},{keyi:43,wave:"triangle",time:5.2613333333333685,timeout:null},{keyi:34,wave:"triangle",time:5.2613333333333685,timeout:null},{keyi:34,wave:"triangle",time:5.621333333333382,timeout:null},{keyi:43,wave:"triangle",time:5.661333333333346,timeout:null},{keyi:34,wave:"triangle",time:6.0400000000000205,timeout:null},{keyi:43,wave:"triangle",time:6.06133333333338,timeout:null},{keyi:43,wave:"triangle",time:6.450666666666677,timeout:null},{keyi:34,wave:"triangle",time:6.450666666666677,timeout:null},{keyi:34,wave:"triangle",time:6.810666666666691,timeout:null},{keyi:43,wave:"triangle",time:6.8320000000000505,timeout:null},{keyi:44,wave:"triangle",time:7.28000000000003,timeout:null},{keyi:32,wave:"triangle",time:7.28000000000003,timeout:null},{keyi:44,wave:"triangle",time:8.06133333333338,timeout:null},{keyi:32,wave:"triangle",time:8.06133333333338,timeout:null},{keyi:44,wave:"triangle",time:8.472000000000037,timeout:null},{keyi:32,wave:"triangle",time:8.472000000000037,timeout:null},{keyi:43,wave:"triangle",time:8.877333333333354,timeout:null},{keyi:34,wave:"triangle",time:8.880000000000052,timeout:null},{keyi:36,wave:"triangle",time:9.261333333333369,timeout:null},{keyi:41,wave:"triangle",time:9.28000000000003,timeout:null},{keyi:39,wave:"triangle",time:9.690666666666687,timeout:null},{keyi:37,wave:"triangle",time:9.690666666666687,timeout:null},{keyi:39,wave:"triangle",time:10.120000000000005,timeout:null},{keyi:37,wave:"triangle",time:10.120000000000005,timeout:null},{keyi:39,wave:"triangle",time:10.520000000000039,timeout:null},{keyi:37,wave:"triangle",time:10.520000000000039,timeout:null},{keyi:39,wave:"triangle",time:10.941333333333375,timeout:null},{keyi:37,wave:"triangle",time:10.941333333333375,timeout:null},{keyi:37,wave:"triangle",time:11.330666666666673,timeout:null},{keyi:39,wave:"triangle",time:11.352000000000032,timeout:null},{keyi:39,wave:"triangle",time:11.77066666666667,timeout:null},{keyi:37,wave:"triangle",time:11.77066666666667,timeout:null},{keyi:36,wave:"triangle",time:12.160000000000025,timeout:null},{keyi:39,wave:"triangle",time:12.181333333333384,timeout:null},{keyi:39,wave:"triangle",time:12.592000000000041,timeout:null},{keyi:36,wave:"triangle",time:12.592000000000041,timeout:null},{keyi:39,wave:"triangle",time:13.02133333333336,timeout:null},{keyi:36,wave:"triangle",time:13.02133333333336,timeout:null},{keyi:39,wave:"triangle",time:13.439999999999998,timeout:null},{keyi:36,wave:"triangle",time:13.439999999999998,timeout:null},{keyi:36,wave:"triangle",time:13.850666666666712,timeout:null},{keyi:39,wave:"triangle",time:13.861333333333334,timeout:null},{keyi:39,wave:"triangle",time:14.240000000000009,timeout:null},{keyi:36,wave:"triangle",time:14.240000000000009,timeout:null},{keyi:43,wave:"triangle",time:14.680000000000007,timeout:null},{keyi:34,wave:"triangle",time:14.682666666666705,timeout:null},{keyi:43,wave:"triangle",time:15.090666666666664,timeout:null},{keyi:34,wave:"triangle",time:15.093333333333362,timeout:null},{keyi:43,wave:"triangle",time:15.512,timeout:null},{keyi:34,wave:"triangle",time:15.512,timeout:null},{keyi:34,wave:"triangle",time:15.901333333333355,timeout:null},{keyi:43,wave:"triangle",time:15.912000000000035,timeout:null},{keyi:43,wave:"triangle",time:16.352000000000032,timeout:null},{keyi:34,wave:"triangle",time:16.352000000000032,timeout:null},{keyi:43,wave:"triangle",time:16.760000000000048,timeout:null},{keyi:34,wave:"triangle",time:16.760000000000048,timeout:null},{keyi:44,wave:"triangle",time:17.170666666666705,timeout:null},{keyi:32,wave:"triangle",time:17.170666666666705,timeout:null},{keyi:39,wave:"triangle",time:17.951999999999998,timeout:null},{keyi:37,wave:"triangle",time:17.951999999999998,timeout:null},{keyi:44,wave:"triangle",time:18.432000000000016,timeout:null},{keyi:32,wave:"triangle",time:18.432000000000016,timeout:null}],[{keyi:43,wave:"triangle",time:0,timeout:null},{keyi:43,wave:"triangle",time:.1999999999999993,timeout:null},{keyi:43,wave:"triangle",time:.879999999999999,timeout:null},{keyi:43,wave:"triangle",time:1.5386666666666642,timeout:null},{keyi:44,wave:"triangle",time:1.7680000000000007,timeout:null},{keyi:44,wave:"triangle",time:2.2586666666666666,timeout:null},{keyi:39,wave:"triangle",time:2.84,timeout:null},{keyi:41,wave:"triangle",time:3.3599999999999994,timeout:null},{keyi:41,wave:"triangle",time:4.069333333333333,timeout:null},{keyi:41,wave:"triangle",time:4.407999999999998,timeout:null},{keyi:43,wave:"triangle",time:4.959999999999997,timeout:null},{keyi:43,wave:"triangle",time:5.32,timeout:null},{keyi:43,wave:"triangle",time:6.007999999999999,timeout:null},{keyi:43,wave:"triangle",time:6.279999999999998,timeout:null},{keyi:43,wave:"triangle",time:7.338666666666665,timeout:null},{keyi:43,wave:"triangle",time:7.648,timeout:null},{keyi:43,wave:"triangle",time:8.058666666666667,timeout:null},{keyi:43,wave:"triangle",time:8.559999999999999,timeout:null},{keyi:41,wave:"triangle",time:9,timeout:null},{keyi:41,wave:"triangle",time:9.36,timeout:null},{keyi:39,wave:"triangle",time:9.719999999999999,timeout:null},{keyi:41,wave:"triangle",time:10.168,timeout:null},{keyi:41,wave:"triangle",time:10.527999999999999,timeout:null},{keyi:36,wave:"triangle",time:13.218666666666664,timeout:null},{keyi:41,wave:"triangle",time:13.648,timeout:null},{keyi:41,wave:"triangle",time:14.280000000000001,timeout:null},{keyi:41,wave:"triangle",time:14.629333333333335,timeout:null},{keyi:43,wave:"triangle",time:15.207999999999998,timeout:null},{keyi:43,wave:"triangle",time:15.469333333333331,timeout:null},{keyi:43,wave:"triangle",time:15.839999999999996,timeout:null},{keyi:44,wave:"triangle",time:16.029333333333334,timeout:null},{keyi:44,wave:"triangle",time:16.378666666666668,timeout:null},{keyi:46,wave:"triangle",time:16.858666666666664,timeout:null},{keyi:46,wave:"triangle",time:17.14933333333333,timeout:null},{keyi:46,wave:"triangle",time:17.759999999999998,timeout:null},{keyi:46,wave:"triangle",time:18.349333333333334,timeout:null},{keyi:46,wave:"triangle",time:18.567999999999998,timeout:null},{keyi:46,wave:"triangle",time:18.799999999999997,timeout:null},{keyi:48,wave:"triangle",time:19.08,timeout:null},{keyi:48,wave:"triangle",time:19.65866666666667,timeout:null},{keyi:48,wave:"triangle",time:19.967999999999996,timeout:null},{keyi:48,wave:"triangle",time:20.498666666666665,timeout:null},{keyi:48,wave:"triangle",time:20.858666666666664,timeout:null},{keyi:48,wave:"triangle",time:21.138666666666666,timeout:null},{keyi:48,wave:"triangle",time:21.408,timeout:null},{keyi:48,wave:"triangle",time:21.78933333333333,timeout:null},{keyi:48,wave:"triangle",time:22.119999999999997,timeout:null},{keyi:44,wave:"triangle",time:22.560000000000002,timeout:null},{keyi:43,wave:"triangle",time:23.538666666666664,timeout:null},{keyi:43,wave:"triangle",time:23.82933333333333,timeout:null},{keyi:41,wave:"triangle",time:24.528,timeout:null},{keyi:36,wave:"triangle",time:26.218666666666664,timeout:null},{keyi:37,wave:"triangle",time:26.54933333333333,timeout:null},{keyi:41,wave:"triangle",time:27.28,timeout:null},{keyi:41,wave:"triangle",time:28.069333333333333,timeout:null},{keyi:41,wave:"triangle",time:29.578666666666663,timeout:null},{keyi:37,wave:"triangle",time:30.309333333333335,timeout:null},{keyi:36,wave:"triangle",time:30.629333333333335,timeout:null},{keyi:36,wave:"triangle",time:31.439999999999998,timeout:null},{keyi:36,wave:"triangle",time:33.04,timeout:null},{keyi:41,wave:"triangle",time:33.57866666666666,timeout:null},{keyi:43,wave:"triangle",time:33.86933333333333,timeout:null},{keyi:43,wave:"triangle",time:34.6,timeout:null},{keyi:43,wave:"triangle",time:36.33866666666667,timeout:null},{keyi:41,wave:"triangle",time:37.007999999999996,timeout:null},{keyi:36,wave:"triangle",time:37.32,timeout:null},{keyi:41,wave:"triangle",time:38.33866666666667,timeout:null},{keyi:36,wave:"triangle",time:38.669333333333334,timeout:null},{keyi:34,wave:"triangle",time:39.007999999999996,timeout:null},{keyi:32,wave:"triangle",time:40.10933333333333,timeout:null},{keyi:32,wave:"triangle",time:40.93866666666666,timeout:null},{keyi:36,wave:"triangle",time:43.688,timeout:null},{keyi:41,wave:"triangle",time:44.138666666666666,timeout:null},{keyi:41,wave:"triangle",time:44.888,timeout:null},{keyi:41,wave:"triangle",time:45.14933333333333,timeout:null},{keyi:41,wave:"triangle",time:45.629333333333335,timeout:null},{keyi:43,wave:"triangle",time:45.808,timeout:null},{keyi:43,wave:"triangle",time:46.31999999999999,timeout:null},{keyi:43,wave:"triangle",time:46.58933333333333,timeout:null},{keyi:37,wave:"triangle",time:47.208,timeout:null},{keyi:37,wave:"triangle",time:47.528000000000006,timeout:null},{keyi:39,wave:"triangle",time:48.128,timeout:null},{keyi:39,wave:"triangle",time:48.498666666666665,timeout:null},{keyi:41,wave:"triangle",time:49.007999999999996,timeout:null},{keyi:41,wave:"triangle",time:49.37866666666666,timeout:null},{keyi:41,wave:"triangle",time:49.89866666666667,timeout:null},{keyi:41,wave:"triangle",time:50.239999999999995,timeout:null},{keyi:41,wave:"triangle",time:50.848,timeout:null},{keyi:41,wave:"triangle",time:51.16,timeout:null},{keyi:41,wave:"triangle",time:51.760000000000005,timeout:null},{keyi:41,wave:"triangle",time:52.048,timeout:null},{keyi:41,wave:"triangle",time:52.58933333333333,timeout:null},{keyi:39,wave:"triangle",time:52.848,timeout:null},{keyi:39,wave:"triangle",time:53.37866666666666,timeout:null},{keyi:37,wave:"triangle",time:53.72,timeout:null},{keyi:39,wave:"triangle",time:54.25866666666667,timeout:null},{keyi:39,wave:"triangle",time:54.46933333333334,timeout:null},{keyi:36,wave:"triangle",time:57.09866666666666,timeout:null},{keyi:36,wave:"triangle",time:57.33866666666667,timeout:null},{keyi:37,wave:"triangle",time:57.608000000000004,timeout:null},{keyi:37,wave:"triangle",time:58.208,timeout:null},{keyi:37,wave:"triangle",time:58.50933333333333,timeout:null},{keyi:37,wave:"triangle",time:59.087999999999994,timeout:null},{keyi:39,wave:"triangle",time:59.29866666666666,timeout:null},{keyi:39,wave:"triangle",time:59.61866666666667,timeout:null},{keyi:39,wave:"triangle",time:60.01866666666666,timeout:null},{keyi:41,wave:"triangle",time:60.120000000000005,timeout:null},{keyi:37,wave:"triangle",time:60.688,timeout:null},{keyi:41,wave:"triangle",time:61.10933333333334,timeout:null},{keyi:41,wave:"triangle",time:61.72,timeout:null},{keyi:41,wave:"triangle",time:62.05866666666667,timeout:null},{keyi:41,wave:"triangle",time:62.727999999999994,timeout:null},{keyi:43,wave:"triangle",time:63.03999999999999,timeout:null},{keyi:43,wave:"triangle",time:63.367999999999995,timeout:null},{keyi:43,wave:"triangle",time:63.778666666666666,timeout:null},{keyi:43,wave:"triangle",time:64.14933333333333,timeout:null},{keyi:43,wave:"triangle",time:64.928,timeout:null},{keyi:43,wave:"triangle",time:65.30933333333333,timeout:null},{keyi:43,wave:"triangle",time:65.94933333333333,timeout:null},{keyi:44,wave:"triangle",time:66.208,timeout:null},{keyi:44,wave:"triangle",time:66.81866666666667,timeout:null},{keyi:44,wave:"triangle",time:67.16,timeout:null},{keyi:43,wave:"triangle",time:67.54933333333334,timeout:null},{keyi:43,wave:"triangle",time:68.2,timeout:null},{keyi:39,wave:"triangle",time:68.44,timeout:null},{keyi:39,wave:"triangle",time:69.22933333333333,timeout:null},{keyi:32,wave:"triangle",time:69.98933333333333,timeout:null},{keyi:37,wave:"triangle",time:70.96,timeout:null},{keyi:39,wave:"triangle",time:71.30933333333333,timeout:null},{keyi:39,wave:"triangle",time:72.18933333333334,timeout:null},{keyi:39,wave:"triangle",time:73.888,timeout:null},{keyi:37,wave:"triangle",time:74.45866666666666,timeout:null},{keyi:36,wave:"triangle",time:74.62933333333334,timeout:null},{keyi:36,wave:"triangle",time:75.54933333333334,timeout:null},{keyi:36,wave:"triangle",time:77.14933333333333,timeout:null},{keyi:41,wave:"triangle",time:77.72,timeout:null},{keyi:43,wave:"triangle",time:78.09866666666666,timeout:null},{keyi:43,wave:"triangle",time:79.008,timeout:null},{keyi:43,wave:"triangle",time:80.58933333333333,timeout:null},{keyi:39,wave:"triangle",time:81.18933333333334,timeout:null},{keyi:37,wave:"triangle",time:81.42933333333333,timeout:null},{keyi:39,wave:"triangle",time:82.49866666666667,timeout:null},{keyi:37,wave:"triangle",time:82.78933333333333,timeout:null},{keyi:36,wave:"triangle",time:83.08,timeout:null},{keyi:34,wave:"triangle",time:84.328,timeout:null},{keyi:34,wave:"triangle",time:85.13866666666667,timeout:null}],[{keyi:56,wave:"triangle",time:0,timeout:null},{keyi:60,wave:"triangle",time:.21066666666672518,timeout:null},{keyi:63,wave:"triangle",time:.42933333333337487,timeout:null},{keyi:56,wave:"triangle",time:.6186666666667406,timeout:null},{keyi:60,wave:"triangle",time:.8506666666667115,timeout:null},{keyi:63,wave:"triangle",time:1.0293333333333976,timeout:null},{keyi:56,wave:"triangle",time:1.240000000000009,timeout:null},{keyi:60,wave:"triangle",time:1.4293333333333749,timeout:null},{keyi:56,wave:"triangle",time:1.650666666666666,timeout:null},{keyi:60,wave:"triangle",time:1.8586666666667497,timeout:null},{keyi:63,wave:"triangle",time:2.080000000000041,timeout:null},{keyi:68,wave:"triangle",time:2.2693333333334067,timeout:null},{keyi:63,wave:"triangle",time:2.458666666666659,timeout:null},{keyi:60,wave:"triangle",time:2.6586666666667043,timeout:null},{keyi:56,wave:"triangle",time:2.8693333333334294,timeout:null},{keyi:60,wave:"triangle",time:3.0400000000000773,timeout:null},{keyi:53,wave:"triangle",time:3.3093333333333703,timeout:null},{keyi:56,wave:"triangle",time:3.509333333333416,timeout:null},{keyi:60,wave:"triangle",time:3.6906666666667434,timeout:null},{keyi:56,wave:"triangle",time:3.8986666666667134,timeout:null},{keyi:53,wave:"triangle",time:4.082666666666682,timeout:null},{keyi:56,wave:"triangle",time:4.290666666666766,timeout:null},{keyi:53,wave:"triangle",time:4.490666666666698,timeout:null},{keyi:68,wave:"triangle",time:4.698666666666668,timeout:null},{keyi:56,wave:"triangle",time:4.978666666666754,timeout:null},{keyi:53,wave:"triangle",time:5.229333333333329,timeout:null},{keyi:56,wave:"triangle",time:5.4693333333333385,timeout:null},{keyi:53,wave:"triangle",time:5.680000000000064,timeout:null},{keyi:60,wave:"triangle",time:5.909333333333393,timeout:null},{keyi:56,wave:"triangle",time:6.130666666666684,timeout:null},{keyi:53,wave:"triangle",time:6.349333333333334,timeout:null},{keyi:56,wave:"triangle",time:6.509333333333416,timeout:null},{keyi:51,wave:"triangle",time:6.738666666666745,timeout:null},{keyi:55,wave:"triangle",time:6.949333333333357,timeout:null},{keyi:58,wave:"triangle",time:7.1200000000000045,timeout:null},{keyi:51,wave:"triangle",time:7.370666666666693,timeout:null},{keyi:55,wave:"triangle",time:7.560000000000059,timeout:null},{keyi:58,wave:"triangle",time:7.778666666666709,timeout:null},{keyi:51,wave:"triangle",time:8,timeout:null},{keyi:55,wave:"triangle",time:8.200000000000045,timeout:null},{keyi:68,wave:"triangle",time:8.469333333333338,timeout:null},{keyi:55,wave:"triangle",time:8.850666666666712,timeout:null},{keyi:51,wave:"triangle",time:9.069333333333361,timeout:null},{keyi:58,wave:"triangle",time:9.490666666666698,timeout:null},{keyi:55,wave:"triangle",time:9.690666666666743,timeout:null},{keyi:51,wave:"triangle",time:9.890666666666675,timeout:null},{keyi:49,wave:"triangle",time:10.160000000000082,timeout:null},{keyi:53,wave:"triangle",time:10.389333333333411,timeout:null},{keyi:56,wave:"triangle",time:10.589333333333343,timeout:null},{keyi:49,wave:"triangle",time:10.789333333333389,timeout:null},{keyi:53,wave:"triangle",time:10.960000000000036,timeout:null},{keyi:56,wave:"triangle",time:11.189333333333366,timeout:null},{keyi:49,wave:"triangle",time:11.410666666666657,timeout:null},{keyi:53,wave:"triangle",time:11.600000000000023,timeout:null},{keyi:56,wave:"triangle",time:11.778666666666709,timeout:null},{keyi:49,wave:"triangle",time:12.029333333333398,timeout:null},{keyi:53,wave:"triangle",time:12.200000000000045,timeout:null},{keyi:56,wave:"triangle",time:12.389333333333411,timeout:null},{keyi:49,wave:"triangle",time:12.62933333333342,timeout:null},{keyi:44,wave:"triangle",time:13.109333333333325,timeout:null},{keyi:56,wave:"triangle",time:13.738666666666745,timeout:null},{keyi:60,wave:"triangle",time:14.210666666666725,timeout:null},{keyi:56,wave:"triangle",time:14.450666666666734,timeout:null},{keyi:58,wave:"triangle",time:14.509333333333416,timeout:null},{keyi:56,wave:"triangle",time:14.909333333333393,timeout:null},{keyi:44,wave:"triangle",time:15.62933333333342,timeout:null},{keyi:60,wave:"triangle",time:16.160000000000082,timeout:null},{keyi:58,wave:"triangle",time:16.33066666666673,timeout:null},{keyi:56,wave:"triangle",time:16.568000000000097,timeout:null},{keyi:44,wave:"triangle",time:16.840000000000032,timeout:null},{keyi:60,wave:"triangle",time:17.418666666666695,timeout:null},{keyi:58,wave:"triangle",time:17.879999999999995,timeout:null},{keyi:56,wave:"triangle",time:18.109333333333325,timeout:null},{keyi:44,wave:"triangle",time:18.54933333333338,timeout:null},{keyi:60,wave:"triangle",time:19.200000000000045,timeout:null},{keyi:58,wave:"triangle",time:19.650666666666666,timeout:null},{keyi:56,wave:"triangle",time:19.879999999999995,timeout:null},{keyi:44,wave:"triangle",time:20.09866666666676,timeout:null},{keyi:53,wave:"triangle",time:20.32000000000005,timeout:null},{keyi:53,wave:"triangle",time:20.749333333333425,timeout:null},{keyi:56,wave:"triangle",time:21.029333333333398,timeout:null},{keyi:55,wave:"triangle",time:21.480000000000018,timeout:null},{keyi:53,wave:"triangle",time:21.669333333333384,timeout:null},{keyi:56,wave:"triangle",time:21.898666666666713,timeout:null},{keyi:60,wave:"triangle",time:22.130666666666684,timeout:null},{keyi:56,wave:"triangle",time:22.54933333333338,timeout:null},{keyi:53,wave:"triangle",time:22.78933333333339,timeout:null},{keyi:56,wave:"triangle",time:23.189333333333366,timeout:null},{keyi:53,wave:"triangle",time:23.410666666666657,timeout:null},{keyi:56,wave:"triangle",time:23.600000000000023,timeout:null},{keyi:51,wave:"triangle",time:23.829333333333352,timeout:null},{keyi:55,wave:"triangle",time:24.06933333333336,timeout:null},{keyi:58,wave:"triangle",time:24.25066666666669,timeout:null},{keyi:51,wave:"triangle",time:24.498666666666736,timeout:null},{keyi:53,wave:"triangle",time:25.130666666666684,timeout:null},{keyi:58,wave:"triangle",time:25.610666666666702,timeout:null},{keyi:53,wave:"triangle",time:25.898666666666713,timeout:null},{keyi:51,wave:"triangle",time:26.25066666666669,timeout:null},{keyi:53,wave:"triangle",time:26.639999999999986,timeout:null},{keyi:51,wave:"triangle",time:26.879999999999995,timeout:null},{keyi:58,wave:"triangle",time:27.109333333333325,timeout:null},{keyi:49,wave:"triangle",time:27.33066666666673,timeout:null},{keyi:53,wave:"triangle",time:27.77866666666671,timeout:null},{keyi:56,wave:"triangle",time:28.09066666666672,timeout:null},{keyi:49,wave:"triangle",time:28.520000000000095,timeout:null},{keyi:53,wave:"triangle",time:28.749333333333425,timeout:null},{keyi:56,wave:"triangle",time:28.909333333333393,timeout:null},{keyi:49,wave:"triangle",time:29.138666666666722,timeout:null},{keyi:53,wave:"triangle",time:29.33066666666673,timeout:null},{keyi:56,wave:"triangle",time:29.57066666666674,timeout:null},{keyi:49,wave:"triangle",time:29.78933333333339,timeout:null},{keyi:53,wave:"triangle",time:30.01066666666668,timeout:null},{keyi:56,wave:"triangle",time:30.200000000000045,timeout:null},{keyi:49,wave:"triangle",time:30.418666666666695,timeout:null},{keyi:44,wave:"triangle",time:30.810666666666748,timeout:null},{keyi:56,wave:"triangle",time:31.33066666666673,timeout:null},{keyi:60,wave:"triangle",time:31.800000000000068,timeout:null},{keyi:60,wave:"triangle",time:32.04000000000008,timeout:null},{keyi:68,wave:"triangle",time:32.33066666666673,timeout:null},{keyi:60,wave:"triangle",time:32.92000000000007,timeout:null},{keyi:56,wave:"triangle",time:33.53066666666666,timeout:null},{keyi:44,wave:"triangle",time:33.970666666666716,timeout:null},{keyi:56,wave:"triangle",time:34.57066666666674,timeout:null},{keyi:60,wave:"triangle",time:35.200000000000045,timeout:null},{keyi:68,wave:"triangle",time:35.61866666666674,timeout:null},{keyi:60,wave:"triangle",time:36,timeout:null},{keyi:56,wave:"triangle",time:36.25066666666669,timeout:null},{keyi:68,wave:"triangle",time:36.639999999999986,timeout:null},{keyi:60,wave:"triangle",time:36.85066666666671,timeout:null},{keyi:56,wave:"triangle",time:37.09066666666672,timeout:null},{keyi:68,wave:"triangle",time:37.32000000000005,timeout:null},{keyi:53,wave:"triangle",time:37.54933333333338,timeout:null},{keyi:58,wave:"triangle",time:37.77066666666667,timeout:null},{keyi:53,wave:"triangle",time:38,timeout:null},{keyi:58,wave:"triangle",time:38.109333333333325,timeout:null},{keyi:68,wave:"triangle",time:38.21866666666676,timeout:null},{keyi:56,wave:"triangle",time:38.45866666666666,timeout:null},{keyi:68,wave:"triangle",time:38.669333333333384,timeout:null},{keyi:53,wave:"triangle",time:38.90933333333339,timeout:null},{keyi:58,wave:"triangle",time:39.09866666666676,timeout:null},{keyi:53,wave:"triangle",time:39.32000000000005,timeout:null},{keyi:68,wave:"triangle",time:39.520000000000095,timeout:null},{keyi:56,wave:"triangle",time:39.680000000000064,timeout:null},{keyi:53,wave:"triangle",time:40.189333333333366,timeout:null},{keyi:58,wave:"triangle",time:40.41066666666666,timeout:null},{keyi:68,wave:"triangle",time:40.62933333333342,timeout:null},{keyi:51,wave:"triangle",time:40.85866666666675,timeout:null},{keyi:55,wave:"triangle",time:41.09066666666672,timeout:null},{keyi:58,wave:"triangle",time:41.25066666666669,timeout:null},{keyi:51,wave:"triangle",time:41.509333333333416,timeout:null},{keyi:53,wave:"triangle",time:41.69066666666674,timeout:null},{keyi:58,wave:"triangle",time:41.93066666666675,timeout:null},{keyi:53,wave:"triangle",time:42.16000000000008,timeout:null},{keyi:51,wave:"triangle",time:42.37866666666673,timeout:null},{keyi:51,wave:"triangle",time:42.749333333333425,timeout:null},{keyi:55,wave:"triangle",time:42.978666666666754,timeout:null},{keyi:58,wave:"triangle",time:43.38933333333341,timeout:null},{keyi:51,wave:"triangle",time:43.61866666666674,timeout:null},{keyi:55,wave:"triangle",time:43.81866666666667,timeout:null},{keyi:49,wave:"triangle",time:44.09066666666672,timeout:null},{keyi:53,wave:"triangle",time:44.29866666666669,timeout:null},{keyi:56,wave:"triangle",time:44.520000000000095,timeout:null},{keyi:49,wave:"triangle",time:44.69866666666667,timeout:null},{keyi:51,wave:"triangle",time:44.92000000000007,timeout:null},{keyi:56,wave:"triangle",time:45.1493333333334,timeout:null},{keyi:49,wave:"triangle",time:45.440000000000055,timeout:null},{keyi:51,wave:"triangle",time:45.650666666666666,timeout:null},{keyi:56,wave:"triangle",time:45.86933333333343,timeout:null},{keyi:49,wave:"triangle",time:46.09866666666676,timeout:null},{keyi:51,wave:"triangle",time:46.29866666666669,timeout:null},{keyi:56,wave:"triangle",time:46.54933333333338,timeout:null},{keyi:49,wave:"triangle",time:46.81066666666675,timeout:null},{keyi:51,wave:"triangle",time:47.01866666666672,timeout:null},{keyi:56,wave:"triangle",time:47.25066666666669,timeout:null},{keyi:49,wave:"triangle",time:47.5680000000001,timeout:null},{keyi:51,wave:"triangle",time:47.94933333333336,timeout:null},{keyi:56,wave:"triangle",time:48.429333333333375,timeout:null},{keyi:44,wave:"triangle",time:49.09866666666676,timeout:null},{keyi:56,wave:"triangle",time:49.62933333333342,timeout:null},{keyi:60,wave:"triangle",time:50.26933333333341,timeout:null},{keyi:63,wave:"triangle",time:50.978666666666754,timeout:null},{keyi:68,wave:"triangle",time:51.89866666666671,timeout:null},{keyi:44,wave:"triangle",time:53.73066666666671,timeout:null}],[{keyi:43,wave:"triangle",time:0,timeout:null},{keyi:43,wave:"triangle",time:.1999999999999993,timeout:null},{keyi:43,wave:"triangle",time:.879999999999999,timeout:null},{keyi:43,wave:"triangle",time:1.5386666666666642,timeout:null},{keyi:44,wave:"triangle",time:1.7680000000000007,timeout:null},{keyi:44,wave:"triangle",time:2.2586666666666666,timeout:null},{keyi:39,wave:"triangle",time:2.84,timeout:null},{keyi:41,wave:"triangle",time:3.3599999999999994,timeout:null},{keyi:41,wave:"triangle",time:4.069333333333333,timeout:null},{keyi:41,wave:"triangle",time:4.407999999999998,timeout:null},{keyi:43,wave:"triangle",time:4.959999999999997,timeout:null},{keyi:43,wave:"triangle",time:5.32,timeout:null},{keyi:43,wave:"triangle",time:6.007999999999999,timeout:null},{keyi:43,wave:"triangle",time:6.279999999999998,timeout:null},{keyi:43,wave:"triangle",time:7.338666666666665,timeout:null},{keyi:43,wave:"triangle",time:7.648,timeout:null},{keyi:43,wave:"triangle",time:8.058666666666667,timeout:null},{keyi:43,wave:"triangle",time:8.559999999999999,timeout:null},{keyi:41,wave:"triangle",time:9,timeout:null},{keyi:41,wave:"triangle",time:9.36,timeout:null},{keyi:39,wave:"triangle",time:9.719999999999999,timeout:null},{keyi:41,wave:"triangle",time:10.168,timeout:null},{keyi:41,wave:"triangle",time:10.527999999999999,timeout:null},{keyi:36,wave:"triangle",time:13.218666666666664,timeout:null},{keyi:41,wave:"triangle",time:13.648,timeout:null},{keyi:41,wave:"triangle",time:14.280000000000001,timeout:null},{keyi:41,wave:"triangle",time:14.629333333333335,timeout:null},{keyi:43,wave:"triangle",time:15.207999999999998,timeout:null},{keyi:43,wave:"triangle",time:15.469333333333331,timeout:null},{keyi:43,wave:"triangle",time:15.839999999999996,timeout:null},{keyi:44,wave:"triangle",time:16.029333333333334,timeout:null},{keyi:44,wave:"triangle",time:16.378666666666668,timeout:null},{keyi:46,wave:"triangle",time:16.858666666666664,timeout:null},{keyi:46,wave:"triangle",time:17.14933333333333,timeout:null},{keyi:46,wave:"triangle",time:17.759999999999998,timeout:null},{keyi:46,wave:"triangle",time:18.349333333333334,timeout:null},{keyi:46,wave:"triangle",time:18.567999999999998,timeout:null},{keyi:46,wave:"triangle",time:18.799999999999997,timeout:null},{keyi:48,wave:"triangle",time:19.08,timeout:null},{keyi:48,wave:"triangle",time:19.65866666666667,timeout:null},{keyi:48,wave:"triangle",time:19.967999999999996,timeout:null},{keyi:48,wave:"triangle",time:20.498666666666665,timeout:null},{keyi:48,wave:"triangle",time:20.858666666666664,timeout:null},{keyi:48,wave:"triangle",time:21.138666666666666,timeout:null},{keyi:48,wave:"triangle",time:21.408,timeout:null},{keyi:48,wave:"triangle",time:21.78933333333333,timeout:null},{keyi:48,wave:"triangle",time:22.119999999999997,timeout:null},{keyi:44,wave:"triangle",time:22.560000000000002,timeout:null},{keyi:43,wave:"triangle",time:23.538666666666664,timeout:null},{keyi:43,wave:"triangle",time:23.82933333333333,timeout:null},{keyi:41,wave:"triangle",time:24.528,timeout:null},{keyi:36,wave:"triangle",time:26.218666666666664,timeout:null},{keyi:37,wave:"triangle",time:26.54933333333333,timeout:null},{keyi:41,wave:"triangle",time:27.28,timeout:null},{keyi:41,wave:"triangle",time:28.069333333333333,timeout:null},{keyi:41,wave:"triangle",time:29.578666666666663,timeout:null},{keyi:37,wave:"triangle",time:30.309333333333335,timeout:null},{keyi:36,wave:"triangle",time:30.629333333333335,timeout:null},{keyi:36,wave:"triangle",time:31.439999999999998,timeout:null},{keyi:36,wave:"triangle",time:33.04,timeout:null},{keyi:41,wave:"triangle",time:33.57866666666666,timeout:null},{keyi:43,wave:"triangle",time:33.86933333333333,timeout:null},{keyi:43,wave:"triangle",time:34.6,timeout:null},{keyi:43,wave:"triangle",time:36.33866666666667,timeout:null},{keyi:41,wave:"triangle",time:37.007999999999996,timeout:null},{keyi:36,wave:"triangle",time:37.32,timeout:null},{keyi:41,wave:"triangle",time:38.33866666666667,timeout:null},{keyi:36,wave:"triangle",time:38.669333333333334,timeout:null},{keyi:34,wave:"triangle",time:39.007999999999996,timeout:null},{keyi:32,wave:"triangle",time:40.10933333333333,timeout:null},{keyi:32,wave:"triangle",time:40.93866666666666,timeout:null},{keyi:36,wave:"triangle",time:43.688,timeout:null},{keyi:41,wave:"triangle",time:44.138666666666666,timeout:null},{keyi:41,wave:"triangle",time:44.888,timeout:null},{keyi:41,wave:"triangle",time:45.14933333333333,timeout:null},{keyi:41,wave:"triangle",time:45.629333333333335,timeout:null},{keyi:43,wave:"triangle",time:45.808,timeout:null},{keyi:43,wave:"triangle",time:46.31999999999999,timeout:null},{keyi:43,wave:"triangle",time:46.58933333333333,timeout:null},{keyi:37,wave:"triangle",time:47.208,timeout:null},{keyi:37,wave:"triangle",time:47.528000000000006,timeout:null},{keyi:39,wave:"triangle",time:48.128,timeout:null},{keyi:39,wave:"triangle",time:48.498666666666665,timeout:null},{keyi:41,wave:"triangle",time:49.007999999999996,timeout:null},{keyi:41,wave:"triangle",time:49.37866666666666,timeout:null},{keyi:41,wave:"triangle",time:49.89866666666667,timeout:null},{keyi:41,wave:"triangle",time:50.239999999999995,timeout:null},{keyi:41,wave:"triangle",time:50.848,timeout:null},{keyi:41,wave:"triangle",time:51.16,timeout:null},{keyi:41,wave:"triangle",time:51.760000000000005,timeout:null},{keyi:41,wave:"triangle",time:52.048,timeout:null},{keyi:41,wave:"triangle",time:52.58933333333333,timeout:null},{keyi:39,wave:"triangle",time:52.848,timeout:null},{keyi:39,wave:"triangle",time:53.37866666666666,timeout:null},{keyi:37,wave:"triangle",time:53.72,timeout:null},{keyi:39,wave:"triangle",time:54.25866666666667,timeout:null},{keyi:39,wave:"triangle",time:54.46933333333334,timeout:null},{keyi:36,wave:"triangle",time:57.09866666666666,timeout:null},{keyi:36,wave:"triangle",time:57.33866666666667,timeout:null},{keyi:37,wave:"triangle",time:57.608000000000004,timeout:null},{keyi:37,wave:"triangle",time:58.208,timeout:null},{keyi:37,wave:"triangle",time:58.50933333333333,timeout:null},{keyi:37,wave:"triangle",time:59.087999999999994,timeout:null},{keyi:39,wave:"triangle",time:59.29866666666666,timeout:null},{keyi:39,wave:"triangle",time:59.61866666666667,timeout:null},{keyi:39,wave:"triangle",time:60.01866666666666,timeout:null},{keyi:41,wave:"triangle",time:60.120000000000005,timeout:null},{keyi:37,wave:"triangle",time:60.688,timeout:null},{keyi:41,wave:"triangle",time:61.10933333333334,timeout:null},{keyi:41,wave:"triangle",time:61.72,timeout:null},{keyi:41,wave:"triangle",time:62.05866666666667,timeout:null},{keyi:41,wave:"triangle",time:62.727999999999994,timeout:null},{keyi:43,wave:"triangle",time:63.03999999999999,timeout:null},{keyi:43,wave:"triangle",time:63.367999999999995,timeout:null},{keyi:43,wave:"triangle",time:63.778666666666666,timeout:null},{keyi:43,wave:"triangle",time:64.14933333333333,timeout:null},{keyi:43,wave:"triangle",time:64.928,timeout:null},{keyi:43,wave:"triangle",time:65.30933333333333,timeout:null},{keyi:43,wave:"triangle",time:65.94933333333333,timeout:null},{keyi:44,wave:"triangle",time:66.208,timeout:null},{keyi:44,wave:"triangle",time:66.81866666666667,timeout:null},{keyi:44,wave:"triangle",time:67.16,timeout:null},{keyi:43,wave:"triangle",time:67.54933333333334,timeout:null},{keyi:43,wave:"triangle",time:68.2,timeout:null},{keyi:39,wave:"triangle",time:68.44,timeout:null},{keyi:39,wave:"triangle",time:69.22933333333333,timeout:null},{keyi:32,wave:"triangle",time:69.98933333333333,timeout:null},{keyi:37,wave:"triangle",time:70.96,timeout:null},{keyi:39,wave:"triangle",time:71.30933333333333,timeout:null},{keyi:39,wave:"triangle",time:72.18933333333334,timeout:null},{keyi:39,wave:"triangle",time:73.888,timeout:null},{keyi:37,wave:"triangle",time:74.45866666666666,timeout:null},{keyi:36,wave:"triangle",time:74.62933333333334,timeout:null},{keyi:36,wave:"triangle",time:75.54933333333334,timeout:null},{keyi:36,wave:"triangle",time:77.14933333333333,timeout:null},{keyi:41,wave:"triangle",time:77.72,timeout:null},{keyi:43,wave:"triangle",time:78.09866666666666,timeout:null},{keyi:43,wave:"triangle",time:79.008,timeout:null},{keyi:43,wave:"triangle",time:80.58933333333333,timeout:null},{keyi:39,wave:"triangle",time:81.18933333333334,timeout:null},{keyi:37,wave:"triangle",time:81.42933333333333,timeout:null},{keyi:39,wave:"triangle",time:82.49866666666667,timeout:null},{keyi:37,wave:"triangle",time:82.78933333333333,timeout:null},{keyi:36,wave:"triangle",time:83.08,timeout:null},{keyi:34,wave:"triangle",time:84.328,timeout:null},{keyi:34,wave:"triangle",time:85.13866666666667,timeout:null}],[{keyi:36,wave:"triangle",time:0,timeout:null},{keyi:36,wave:"triangle",time:.3813333333333446,timeout:null},{keyi:37,wave:"triangle",time:.7706666666666706,timeout:null},{keyi:39,wave:"triangle",time:1.1706666666666763,timeout:null},{keyi:39,wave:"triangle",time:1.5413333333333412,timeout:null},{keyi:37,wave:"triangle",time:1.941333333333347,timeout:null},{keyi:36,wave:"triangle",time:2.301333333333332,timeout:null},{keyi:34,wave:"triangle",time:2.650666666666666,timeout:null},{keyi:32,wave:"triangle",time:3.069333333333333,timeout:null},{keyi:32,wave:"triangle",time:3.4693333333333385,timeout:null},{keyi:34,wave:"triangle",time:3.9013333333333264,timeout:null},{keyi:36,wave:"triangle",time:4.25066666666666,timeout:null},{keyi:36,wave:"triangle",time:4.650666666666666,timeout:null},{keyi:34,wave:"triangle",time:5.319999999999993,timeout:null},{keyi:34,wave:"triangle",time:5.52000000000001,timeout:null},{keyi:36,wave:"triangle",time:6.290666666666681,timeout:null},{keyi:36,wave:"triangle",time:6.650666666666666,timeout:null},{keyi:37,wave:"triangle",time:7.039999999999992,timeout:null},{keyi:39,wave:"triangle",time:7.410666666666657,timeout:null},{keyi:39,wave:"triangle",time:7.800000000000011,timeout:null},{keyi:37,wave:"triangle",time:8.181333333333328,timeout:null},{keyi:36,wave:"triangle",time:8.560000000000002,timeout:null},{keyi:34,wave:"triangle",time:8.909333333333336,timeout:null},{keyi:32,wave:"triangle",time:9.309333333333342,timeout:null},{keyi:32,wave:"triangle",time:9.680000000000007,timeout:null},{keyi:34,wave:"triangle",time:10.050666666666672,timeout:null},{keyi:36,wave:"triangle",time:10.421333333333337,timeout:null},{keyi:34,wave:"triangle",time:10.850666666666655,timeout:null},{keyi:32,wave:"triangle",time:11.389333333333326,timeout:null},{keyi:32,wave:"triangle",time:11.581333333333333,timeout:null},{keyi:34,wave:"triangle",time:12.319999999999993,timeout:null},{keyi:34,wave:"triangle",time:12.701333333333338,timeout:null},{keyi:36,wave:"triangle",time:13.109333333333325,timeout:null},{keyi:32,wave:"triangle",time:13.469333333333338,timeout:null},{keyi:34,wave:"triangle",time:13.840000000000003,timeout:null},{keyi:36,wave:"triangle",time:14.199999999999989,timeout:null},{keyi:37,wave:"triangle",time:14.389333333333326,timeout:null},{keyi:36,wave:"triangle",time:14.570666666666654,timeout:null},{keyi:32,wave:"triangle",time:15,timeout:null},{keyi:34,wave:"triangle",time:15.389333333333326,timeout:null},{keyi:36,wave:"triangle",time:15.759999999999991,timeout:null},{keyi:37,wave:"triangle",time:15.981333333333339,timeout:null},{keyi:36,wave:"triangle",time:16.141333333333336,timeout:null},{keyi:34,wave:"triangle",time:16.50933333333333,timeout:null},{keyi:32,wave:"triangle",time:16.869333333333344,timeout:null},{keyi:34,wave:"triangle",time:17.25066666666666,timeout:null},{keyi:27,wave:"triangle",time:17.640000000000015,timeout:null},{keyi:36,wave:"triangle",time:18.439999999999998,timeout:null},{keyi:36,wave:"triangle",time:18.829333333333324,timeout:null},{keyi:37,wave:"triangle",time:19.21066666666667,timeout:null},{keyi:39,wave:"triangle",time:19.629333333333335,timeout:null},{keyi:39,wave:"triangle",time:20,timeout:null},{keyi:37,wave:"triangle",time:20.370666666666665,timeout:null},{keyi:36,wave:"triangle",time:20.72,timeout:null},{keyi:34,wave:"triangle",time:21.090666666666664,timeout:null},{keyi:32,wave:"triangle",time:21.48533333333333,timeout:null},{keyi:32,wave:"triangle",time:21.861333333333334,timeout:null},{keyi:34,wave:"triangle",time:22.221333333333348,timeout:null},{keyi:36,wave:"triangle",time:22.610666666666674,timeout:null},{keyi:34,wave:"triangle",time:23.02133333333333,timeout:null},{keyi:32,wave:"triangle",time:23.581333333333333,timeout:null},{keyi:32,wave:"triangle",time:23.80000000000001,timeout:null}]],initialTime:0,newcss:function(){a.css.innerHTML= #piano-ui { background: linear-gradient(transparent, rgba(64, 64, 64, 0.5)); color: black; font-family: Avenir, Klee, Helvetica, Arial, sans-serif; font-size: 14px; position: fixed; height: 75px; width: 100%25; left: 0; bottom: 0; perspective: 1024px; z-index: 9999; } #piano-quit { background: rgba(255, 255, 255, 0.5); position: absolute; width: 30px; top: 0; right: 0; transform: translateY(-100%25); border-top: 1px solid rgba(64, 64, 64, 0.5); border-radius: 10px 10px 0 0; text-align: center; cursor: pointer; } .piano-menu { height: 100%25; width: 15%25; vertical-align: top; display: inline-block; } .piano-menu > label, .piano-menu > input, .piano-menu > select { font-size: 14px; max-width: 50%25; float: none; } #piano-left { background: linear-gradient(to right, rgba(255, 255, 255, 0.5), transparent); text-align: left; } #piano-right { background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5)); text-align: right; } #piano-middle { height: 100%25; width: 70%25; bottom: 0; transform: translateZ(${a.tilt.value}px) rotateX(${a.tilt.value}deg); transform-style: preserve-3d; display: inline-block; } .piano-key { text-align: center; position: relative; bottom: 0; transform-style: preserve-3d; border-radius: 0 0 5px 5px; display: inline-block; } .piano-key:before { content: ""; background: #808080; position: absolute; height: 100%25; width: 100%25; top: 0; left: 0; transform: translateZ(-6px); border-radius: 0 0 5px 5px; } .piano-white { background: white; color: black; height: 100%25; width: 3.5%25; transform: translateZ(7px); margin-left: 0.2%25; } .piano-white.piano-hit { background: #c0c0c0; transform: translateZ(1px); } .piano-black { background: black; color: white; vertical-align: top; height: 70%25; width: 2%25; transform: translateX(-55%25) translateZ(14px); margin-right: -2%25; } .piano-black.piano-hit { background: #404040; transform: translateX(-55%25) translateZ(8px); } .piano-keyval { position: absolute; bottom: 0; transform: translateX(-50%25); } },newselect:function(e,t,i,l,n,a){l.forEach(function(e){t.appendChild(document.createElement("option")).innerHTML=e}),t.value=l[n],null!=a&&t.addEventListener("input",a),e.appendChild(document.createElement("label")).innerHTML=i,e.appendChild(t)},newrange:function(e,t,i,l,n,a,m,u){t.type="range",t.min=l,t.step=n,t.max=a,t.value=m,t.min=l,t.addEventListener("input",u),e.appendChild(document.createElement("label")).innerHTML=i,e.appendChild(t)},newbutton:function(e,t,i){var l=document.createElement("input");return l.type="button",l.addEventListener("click",i),l.value=t,e.appendChild(l),l},newbr:function(e){e.appendChild(document.createElement("br"))},keyindex:function(e){var t=1==e.key.length?e.key:e.code;return a.keymap.findIndex(e=>e.key==t||e.caps_key==t)},note:function(e,t){var i=a.audio.createGain(),l=(i.connect(a.audio.destination),a.audio.createOscillator());l.frequency.value=440*Math.pow(2,(e-53)/12),l.type=t,l.connect(i),l.start();i.gain.exponentialRampToValueAtTime(1/Number.MAX_SAFE_INTEGER,a.audio.currentTime+10),setTimeout(e=>l.disconnect(),1e4),setTimeout(e=>i.disconnect(),1e4)},playDisc:function(e){a.disc[e].forEach(function(e,t){e.timeout=setTimeout(function(){a.note(e.keyi,e.wave);var t=e.keyi-a.pitch.value;0<=t&&t<46&&(a.keymap[t].dom.classList.add("piano-hit"),setTimeout(e=>a.keymap[t].dom.classList.remove("piano-hit"),100)),e.timeout=null},1e3*e.time)})},stopDisc:function(e){a.disc[e].forEach(function(e){clearTimeout(e.timeout),e.timeout=null})},stopDiscs:function(e){a.disc.forEach(e=>e.forEach(function(e){clearTimeout(e.timeout),e.timeout=null}))},saveDisc:function(){a.disc.push(a.disc[0]),a.deleteDisc(0)},deleteDisc:function(e){0==e?a.disc[e]=[]:a.disc=a.disc.slice(0,e).concat(a.disc.slice(e+1)),a.playbackmode()},exportDiscs:function(){a.disc.forEach(function(e,t){e=JSON.stringify(e);console.log("Disc "+t+"\n"+e)}),alert("Check the console.")},keyup:function(e){e=a.keyindex(e);0<=e&&(a.keymap[e].pressed=0,a.keymap[e].dom.classList.remove("piano-hit"))},keydown:function(e){e.preventDefault();var t,i=a.keyindex(e);0<=i&&0==a.keymap[i].pressed?(a.keymap[i].pressed=1,t=i+Number(a.pitch.value),a.note(t,a.wave.value),a.keymap[i].dom.classList.add("piano-hit"),0==a.disc[0].length&&(a.initialTime=a.audio.currentTime),a.disc[0].push({keyi:t,wave:a.wave.value,time:a.audio.currentTime-a.initialTime,timeout:null}),1==a.disc[0].length&&Array.from(a.menuright.getElementsByTagName("input")).slice(0,3).forEach(e=>e.removeAttribute("disabled"))):" "==e.key?(a.stopDiscs(),a.deleteDisc(0)):"ArrowLeft"==e.key?a.pitch.value=Number(a.pitch.value)-12:"ArrowRight"==e.key?a.pitch.value=Number(a.pitch.value)+12:"ArrowDown"==e.key?(a.tilt.value=Number(a.tilt.value)-5,a.newcss()):"ArrowUp"==e.key&&(a.tilt.value=Number(a.tilt.value)+5,a.newcss())},playstop:function(t,e){var i,l;0<a.disc[e].length&&(t.target.value==(i=0==e?"↻":e)+" ▶"?(a.playDisc(e),t.target.value=i+" ◼",l=a.disc[e].length-1,setTimeout(e=>t.target.value=i+" ▶",1e3*a.disc[e][l].time)):(a.stopDisc(e),t.target.value=i+" ▶"))},playbackmode:function(){a.menuright.innerHTML="";var e=a.newbutton(a.menuright,"↻ ▶",e=>a.playstop(e,0)),t=a.newbutton(a.menuright,"⬇",a.saveDisc),e=(0==a.disc[0].length&&(e.setAttribute("disabled",1),t.setAttribute("disabled",1)),a.newbutton(a.menuright,"✖",a.deletionmode)),t=(1==a.disc.length&&0==a.disc[0].length&&e.setAttribute("disabled",1),a.newbutton(a.menuright,"︎⬆︎",a.exportDiscs));1==a.disc.length&&t.setAttribute("disabled",1),a.newbr(a.menuright),a.disc.forEach(function(e,t){0!==t&&(a.disc[t].every(e=>null==e.timeout)?a.newbutton(a.menuright,t+" ▶",e=>a.playstop(e,t)):a.newbutton(a.menuright,t+" ◼",e=>a.playstop(e,t)))})},deletionmode:function(){a.stopDiscs(),a.menuright.innerHTML="";var e=a.newbutton(a.menuright,"↻ ✖",e=>a.deleteDisc(0));0==a.disc[0].length&&e.setAttribute("disabled",1),a.newbutton(a.menuright,"⬇",a.saveDisc).setAttribute("disabled",1),a.newbutton(a.menuright,"✖",a.playbackmode),a.newbutton(a.menuright,"︎⬆︎",a.exportDiscs).setAttribute("disabled",1),a.newbr(a.menuright),a.disc.forEach(function(e,t){0!==t&&a.newbutton(a.menuright,t+" ✖",e=>a.deleteDisc(t))})},quit:function(){a.ui.remove(),a.css.remove(),a.stopDiscs(),a.audio.close(),document.removeEventListener("keydown",a.keydown),document.removeEventListener("keyup",a.keyup)},init:function(){document.body.appendChild(a.css),document.body.appendChild(a.ui),a.ui.id="piano-ui";var e=document.createElement("div");e.id="piano-quit",e.innerHTML="✕",e.addEventListener("click",a.quit),a.ui.appendChild(e),a.ui.appendChild(a.menuleft),a.menuleft.className="piano-menu",a.menuleft.id="piano-left",a.newselect(a.menuleft,a.wave,"Wave: ",["sine","triangle","square","sawtooth"],1),a.newbr(a.menuleft),a.newrange(a.menuleft,a.pitch,"Pitch: ",0,12,48,24,null),a.newbr(a.menuleft),a.newrange(a.menuleft,a.tilt,"Tilt: ",0,5,90,45,a.newcss),a.newcss(),a.ui.appendChild(a.keyboard),a.keyboard.id="piano-middle";for(var t=0;t<a.keymap.length;t++){var i=a.keymap[t].key,l=a.keymap[t].dom,n=([0,2,4,5,7,9,11].some(e=>(t-e-8)%2512==0)?l.className="piano-key piano-white":l.className="piano-key piano-black",document.createElement("span"));n.className="piano-keyval",1==i.length?n.innerHTML=i:n.innerHTML={Tab:"⇥",Backspace:"⌫",ShiftLeft:"⇧L",ShiftRight:"⇧R",Enter:"↵"}[i],l.appendChild(n),a.keyboard.appendChild(l)}a.ui.appendChild(a.menuright),a.menuright.className="piano-menu",a.menuright.id="piano-right",a.playbackmode(),document.addEventListener("keydown",a.keydown),document.addEventListener("keyup",a.keyup)}};a.init()}(); | pop.min.js javascript:krazete:var v,pop,videos=Array.from(document.getElementsByTagName("video")),video=videos[0];for(v of videos)if(!v.paused){video=v;break}function popout(){video.removeAttribute("disablePictureInPicture"),video.requestPictureInPicture()}function popin(){document.exitPictureInPicture()}video.addEventListener("enterpictureinpicture",e=>pop=popin),video.addEventListener("leavepictureinpicture",e=>pop=popout),(pop=pop||popout)(); | tic.min.js javascript:krazete:var turn=Math.random()<.5?0:1,unit=100/11,menu=document.createElement("div"),board=(menu.style.position="fixed",menu.style.top="50%25",menu.style.left="50%25",menu.style.height=9*unit+"vmin",menu.style.width=9*unit+"vmin",menu.style.transform="translate(-50%25,-50%25)",menu.style.zIndex=9999,menu.innerHTML="<a style='background:white;position:absolute;left:100%25;cursor:pointer' onClick='menu.remove()'>exit</a>",document.body.appendChild(menu),document.createElement("div"));board.style.background="rgba(255,255,255,0.9)",board.style.position="absolute",board.style.top=0,board.style.left=0,board.style.height=9*unit+"vmin",board.style.width=9*unit+"vmin",board.mark=null,menu.appendChild(board),BOXES=[],boxes=[[],[],[],[],[],[],[],[],[]];for(var i=0;i<3;i++)for(var j=0;j<3;j++){var BOX=document.createElement("div");BOX.style.position="absolute",BOX.style.top=100*i/3+"%25",BOX.style.left=100*j/3+"%25",BOX.style.height=100/3+"%25",BOX.style.width=100/3+"%25",BOX.mark=null;for(var k=0;k<3;k++)for(var l=0;l<3;l++){var box=document.createElement("div");box.setAttribute("onMouseOver","this.style.background='rgba(0,0,0,0.25)'"),box.setAttribute("onMouseOut","this.style.background='transparent'"),box.setAttribute("onClick","pick(this)"),box.style.position="absolute",box.style.top=100*k/3+"%25",box.style.left=100*l/3+"%25",box.style.height=100/3+"%25",box.style.width=100/3+"%25",box.macro=3*i+j,box.micro=3*k+l,box.mark=null,boxes[3*i+j].push(box),box.macro%252==0?box.style.boxShadow="0 0 1vmin black inset":box.style.boxShadow="0 0 1vmin gray inset",BOX.appendChild(box)}BOXES.push(BOX),board.appendChild(BOX)}function check(e){var t=0;null!=e[0].mark&&(e[0].mark==e[1].mark&&e[1].mark==e[2].mark||e[0].mark==e[3].mark&&e[3].mark==e[6].mark)&&(t=1),null!=e[4].mark&&(e[3].mark==e[4].mark&&e[4].mark==e[5].mark||e[1].mark==e[4].mark&&e[4].mark==e[7].mark||e[0].mark==e[4].mark&&e[4].mark==e[8].mark||e[2].mark==e[4].mark&&e[4].mark==e[6].mark)&&(t=1),(t=null!=e[8].mark&&(e[6].mark==e[7].mark&&e[7].mark==e[8].mark||e[2].mark==e[5].mark&&e[5].mark==e[8].mark)?1:t)?marker(e[0].parentNode):null!=e[0].mark&&null!=e[1].mark&&null!=e[2].mark&&null!=e[3].mark&&null!=e[4].mark&&null!=e[5].mark&&null!=e[6].mark&&null!=e[7].mark&&null!=e[8].mark&&draw(e[0].parentNode)}function draw(e){e.mark=2,disable(e),e.style.pointerEvents="none"}function marker(e){if(0==turn){for(var t=document.createElement("div"),r=(t.style.boxSizing="border-box",t.style.position="absolute",t.style.top="10%25",t.style.left="10%25",t.style.height="80%25",t.style.width="80%25",0),a=0;a<9;a++)if(e==BOXES[a]){r=1;break}t.style.border=unit*(e==board?9:r?3:1)/5+"vmin solid black",t.style.borderRadius="50%25",e.appendChild(t)}else{t=document.createElement("div"),t=(t.style.boxSizing="border-box",t.style.background="black",t.style.position="absolute",t.style.top="10%25",t.style.left="40%25",t.style.height="80%25",t.style.width="20%25",t.style.transform="rotate(45deg)",e.appendChild(t),t.cloneNode());t.style.transform="rotate(-45deg)",e.appendChild(t)}e.mark=turn,disable(e),e.style.pointerEvents="none"}function pick(e){if(marker(e),check(boxes[e.macro]),check(BOXES),turn=0<turn?0:1,null==BOXES[e.micro].mark){for(i=0;i<9;i++)for(var t=0;t<9;t++)disable(boxes[i][t]);for(i=0;i<9;i++)null==board.mark&&enable(boxes[e.micro][i])}else for(i=0;i<9;i++)for(t=0;t<9;t++)null==board.mark&&enable(boxes[i][t]);disable(e)}function disable(e){e.style.background="rgba(0,0,0,0.25)",e.setAttribute("onMouseOver",""),e.setAttribute("onMouseOut",""),e.setAttribute("onClick","")}function enable(e){null==e.mark&&(e.style.background="transparent"),e.setAttribute("onMouseOver","this.style.background='rgba(0,0,0,0.25)'"),e.setAttribute("onMouseOut","this.style.background='transparent'"),e.setAttribute("onClick","pick(this)")} | ticmobile.min.js javascript:krazete:var turn=Math.random()<.5?0:1,unit=(innerWidth<innerHeight?innerWidth:innerHeight)/11;function newUnit(){unit=(innerWidth<innerHeight?innerWidth:innerHeight)/11}var menu=document.createElement("div"),board=(window.addEventListener("resize",function(){newUnit(),menu.style.height=9*unit+"px",menu.style.width=9*unit+"px"}),menu.style.position="fixed",menu.style.top="50%25",menu.style.left="50%25",menu.style.height=9*unit+"px",menu.style.width=9*unit+"px",menu.style.transform="translate(-50%25,-50%25)",menu.style.webkitTransform="translate(-50%25,-50%25)",menu.style.zIndex=9999,menu.innerHTML="<a style='background:white;position:absolute;left:100%25;cursor:pointer' onClick='menu.remove()'>exit</a>",document.body.appendChild(menu),document.createElement("div"));board.style.background="rgba(255,255,255,0.9)",board.style.position="absolute",board.style.top=0,board.style.left=0,board.style.height="100%25",board.style.width="100%25",board.mark=null,menu.appendChild(board),BOXES=[],boxes=[[],[],[],[],[],[],[],[],[]];for(var i=0;i<3;i++)for(var j=0;j<3;j++){var BOX=document.createElement("div");BOX.style.position="absolute",BOX.style.top=100*i/3+"%25",BOX.style.left=100*j/3+"%25",BOX.style.height=100/3+"%25",BOX.style.width=100/3+"%25",BOX.mark=null;for(var k=0;k<3;k++)for(var l=0;l<3;l++){var box=document.createElement("div");box.setAttribute("onMouseOver","this.style.background='rgba(0,0,0,0.25)'"),box.setAttribute("onMouseOut","this.style.background='transparent'"),box.setAttribute("onClick","pick(this)"),box.style.position="absolute",box.style.top=100*k/3+"%25",box.style.left=100*l/3+"%25",box.style.height=100/3+"%25",box.style.width=100/3+"%25",box.macro=3*i+j,box.micro=3*k+l,box.mark=null,boxes[3*i+j].push(box),box.macro%252==0?box.style.boxShadow="0 0 5px black inset":box.style.boxShadow="0 0 5px gray inset",BOX.appendChild(box)}BOXES.push(BOX),board.appendChild(BOX)}function check(e){var t=0;null!=e[0].mark&&(e[0].mark==e[1].mark&&e[1].mark==e[2].mark||e[0].mark==e[3].mark&&e[3].mark==e[6].mark)&&(t=1),null!=e[4].mark&&(e[3].mark==e[4].mark&&e[4].mark==e[5].mark||e[1].mark==e[4].mark&&e[4].mark==e[7].mark||e[0].mark==e[4].mark&&e[4].mark==e[8].mark||e[2].mark==e[4].mark&&e[4].mark==e[6].mark)&&(t=1),(t=null!=e[8].mark&&(e[6].mark==e[7].mark&&e[7].mark==e[8].mark||e[2].mark==e[5].mark&&e[5].mark==e[8].mark)?1:t)?marker(e[0].parentNode):null!=e[0].mark&&null!=e[1].mark&&null!=e[2].mark&&null!=e[3].mark&&null!=e[4].mark&&null!=e[5].mark&&null!=e[6].mark&&null!=e[7].mark&&null!=e[8].mark&&draw(e[0].parentNode)}function draw(e){e.mark=2,disable(e),e.style.pointerEvents="none"}function marker(e){if(0==turn){for(var t=document.createElement("div"),r=(t.style.boxSizing="border-box",t.style.position="absolute",t.style.top="10%25",t.style.left="10%25",t.style.height="80%25",t.style.width="80%25",0),n=0;n<9;n++)if(e==BOXES[n]){r=1;break}t.style.border=unit*(e==board?9:r?3:1)/5+"px solid black",window.addEventListener("resize",function(){newUnit(),t.style.border=unit*(e==board?9:r?3:1)/5+"px solid black"}),t.style.borderRadius="50%25",e.appendChild(t)}else{var a=document.createElement("div"),a=(a.style.boxSizing="border-box",a.style.background="black",a.style.position="absolute",a.style.top="10%25",a.style.left="40%25",a.style.height="80%25",a.style.width="20%25",a.style.transform="rotate(45deg)",a.style.webkitTransform="rotate(45deg)",e.appendChild(a),a.cloneNode());a.style.transform="rotate(-45deg)",a.style.webkitTransform="rotate(-45deg)",e.appendChild(a)}e.mark=turn,disable(e),e.style.pointerEvents="none"}function pick(e){if(marker(e),check(boxes[e.macro]),check(BOXES),turn=0<turn?0:1,null==BOXES[e.micro].mark){for(i=0;i<9;i++)for(var t=0;t<9;t++)disable(boxes[i][t]);for(i=0;i<9;i++)null==board.mark&&enable(boxes[e.micro][i])}else for(i=0;i<9;i++)for(t=0;t<9;t++)null==board.mark&&enable(boxes[i][t]);disable(e)}function disable(e){e.style.background="rgba(0,0,0,0.25)",e.setAttribute("onMouseOver",""),e.setAttribute("onMouseOut",""),e.setAttribute("onClick","")}function enable(e){null==e.mark&&(e.style.background="transparent"),e.setAttribute("onMouseOver","this.style.background='rgba(0,0,0,0.25)'"),e.setAttribute("onMouseOut","this.style.background='transparent'"),e.setAttribute("onClick","pick(this)")} | tri.min.js javascript:krazete:!function(){var d={menu:document.createElement("div"),limit:document.createElement("input"),gap:document.createElement("input"),sag:document.createElement("input"),fov:document.createElement("input"),flo:document.createElement("input"),off:document.createElement("input"),non:document.createElement("input"),end:document.createElement("input"),tgl:document.createElement("input"),cssStatic:document.createElement("style"),cssDynamic:document.createElement("style"),orientation:{yaw:0,pitch:0,roll:0},mouseMove:function(e){d.orientation.yaw=180*-Math.cos(Math.PI*e.clientX/innerWidth)*d.limit.value,d.orientation.pitch=180*Math.cos(Math.PI*e.clientY/innerHeight)*d.limit.value,d.updateBody()},gyroMove:function(e){innerWidth>innerHeight?(d.orientation.yaw=-(e.alpha+e.beta),d.orientation.pitch=e.gamma-90*Math.sign(90-Math.abs(e.beta))):(d.orientation.yaw=-(e.alpha+e.gamma),d.orientation.pitch=e.beta-90),d.updateBody()},updateOrigin:function(e){document.body.style.transformOrigin=innerWidth/2+pageXOffset+"px "+(innerHeight/2+pageYOffset)+"px"},updateBody:function(){document.body.style.transform="perspective("+Math.pow(2,d.fov.value)+"px) translateZ(-"+d.gap.value+"px) rotateX("+d.orientation.pitch+"deg) rotateY("+d.orientation.yaw+"deg)"},updateCSS:function(){if(d.non.checked)d.cssDynamic.innerHTML="";else if(d.off.checked)d.cssDynamic.innerHTML="* { transform-style: preserve-3d; }";else{for(var e=0;document.querySelector("body"+" > *".repeat(e));e++);var t=d.gap.value/e,n=-Math.PI*d.sag.value/e;d.cssDynamic.innerHTML= * { transform: translateZ(${t}px) rotateX(${n}rad); transform-style: preserve-3d; transition: transform 1s; outline: 1px solid rgba(0, 0, 0, 0.0625); ${d.flo.checked?"overflow: visible !important;":""} } :hover { transform: translateZ(${2t}px) rotateX(${2n}rad); ${d.flo.checked?"":"overflow: visible;"} } }},toggle:function(){"active"==d.menu.className?d.menu.removeAttribute("class"):d.menu.className="active"},quit:function(){window.removeEventListener("deviceorientation",d.gyroMove),window.removeEventListener("mousemove",d.mouseMove),window.removeEventListener("scroll",d.updateOrigin),window.addEventListener("resize",d.updateOrigin),d.menu.remove(),d.cssStatic.remove(),d.cssDynamic.remove(),document.body.removeAttribute("style")},newRange:function(e,t,n,o,i,a,r){d.menu.appendChild(e),e.type="range",e.min=n,e.max=i,e.step=o,e.value=a,e.addEventListener("input",r),d.menu.appendChild(document.createElement("span")).innerHTML=t,d.menu.appendChild(document.createElement("br"))},newCheckbox:function(e,t,n){d.menu.appendChild(e),e.type="checkbox",e.addEventListener("click",n),d.menu.appendChild(document.createElement("span")).innerHTML=t,d.menu.appendChild(document.createElement("br"))},newButton:function(e,t,n){d.menu.appendChild(e),e.type="button",e.value=t,e.addEventListener("click",n)},init:function(){document.body.parentNode.appendChild(d.menu).id="tri-menu",d.newRange(d.limit,"limit",0,.03125,1,.125,d.updateBody),d.newRange(d.gap,"gap / distance",0,32,512,128,function(){d.updateCSS(),d.updateBody()}),d.newRange(d.sag,"sag",-.25,.03125,.25,0,d.updateCSS),d.newRange(d.fov,"field of view",7,1,13,10,d.updateBody),d.newCheckbox(d.flo,"force overflow",d.updateCSS),d.flo.setAttribute("checked",""),d.newCheckbox(d.off,"flatten layers",d.updateCSS),d.newCheckbox(d.non,"flatten everything",d.updateCSS),d.newButton(d.end,"Quit",d.quit),d.newButton(d.tgl,"≡",d.toggle),d.tgl.id="tri-toggle",d.menu.appendChild(d.cssStatic).innerHTML= html, body { transition-property: none; height: 100%25; width: 100%25; } html, html:hover, #tri-menu, #tri-menu > , #tri-menu > :hover { transform: none; outline: none; overflow: auto !important; float: none; } #tri-menu { position: fixed; top: 0; left: 0; background: rgba(0, 0, 0, 0.5); color: white; border: 1px solid rgba(255, 255, 255, 0.5);; border-radius: 0 0 16px 0; padding: 8px; transform: translate(-100%25, -100%25) translate(32px, 32px); } #tri-menu.active { transform: none; } #tri-toggle { position: absolute; bottom: 0; right: 0; height: 32px; width: 32px; background: transparent; color: white; border: none; cursor: pointer; } #tri-menu.active > #tri-toggle { background: white; color: black; border-radius: 8px 0 0 0; } ,d.menu.appendChild(d.cssDynamic),d.updateCSS(),window.addEventListener("deviceorientation",d.gyroMove),window.addEventListener("mousemove",d.mouseMove),window.addEventListener("scroll",d.updateOrigin),window.addEventListener("resize",d.updateOrigin),window.scrollBy(0,1)}};d.init()}(); | ytengagement.min.js javascript:krazete:function engage(){setTimeout(engage,1e3),Array.from(document.getElementsByTagName("ytd-thumbnail")).forEach(function(r){var e=r.getAttribute("value"),t=r.children[0].href;e!=t&&(r.setAttribute("value",t),r.style.borderBottom="",r.style.borderImage="",r.style.borderImageSlice="",r.style.paddingBottom="",r.style.marginTop="",(e=new XMLHttpRequest).open("GET",t,!0),e.onload=function(){var t=JSON.parse(this.responseText.match(/var ytInitialData = ({.+?});/)[1]);if(!t.contents.twoColumnWatchNextResults.results.results.contents[0].videoPrimaryInfoRenderer.viewCount.videoViewCountRenderer.isLive)try{var e=parseInt(t.contents.twoColumnWatchNextResults.results.results.contents[0].videoPrimaryInfoRenderer.videoActions.menuRenderer.topLevelButtons[0].toggleButtonRenderer.defaultText.accessibility.accessibilityData.label.replace(/\D/g,"")),o=parseInt(t.contents.twoColumnWatchNextResults.results.results.contents[0].videoPrimaryInfoRenderer.viewCount.videoViewCountRenderer.viewCount.simpleText.replace(/\D/g,"")),n=o?100*Math.log(e+1)/Math.log(o+1):0;r.style.borderBottom="3px solid",r.style.borderImage="linear-gradient(to right, #008000 "+n+"%25, #404040"+n+"%25)",r.style.borderImageSlice="1",r.style.paddingBottom="2px",r.style.marginTop="-1px"}catch(e){console.log(t.contents.twoColumnWatchNextResults.results.results.contents[0].videoPrimaryInfoRenderer.title.runs[0].text)}},e.send())})}engage(); | ytglow.min.js javascript:krazete:var fograf;!function(){var i,n=document.getElementById("videofog");function o(){var e=document.querySelector("ytd-watch-flexy video")||document.querySelector("video"),t=e.getBoundingClientRect();n.width=t.width/8,n.height=t.height/8,n.style.width=t.width+"px",n.style.height=t.height+"px",i.drawImage(e,0,0,n.width,n.height),fograf=requestAnimationFrame(o)}n?(n.remove(),cancelAnimationFrame(fograf)):((n=document.createElement("canvas")).id="videofog",n.style.position="absolute",n.style.left="50%25",n.style.transform="translate(-50%25)",n.style.filter="blur(100px) contrast(1.5)",n.style.mixBlendMode="lighten",i=n.getContext("2d"),function t(){try{var e=document.querySelector("ytd-watch-flexy ytd-player #container");e.insertBefore(n,e.firstChild),o()}catch(e){requestAnimationFrame(t)}}())}(); | ytlivestamper.min.js javascript:krazete:!function(){function o(e,t){var n,a,i;e.innerHTML=(n=t,a=Math.floor(n/3600),i=Math.floor(n/60)%2560,n=Math.floor(n)%2560,(a?a+":"+String(i).padStart(2,0):i)+":"+String(n).padStart(2,0)),e.dataset.time=t,e.href="https://youtu.be/"+location.search.split(/.+v=|&/)[1]+"?t="+t}function e(e){var t;e.target.dataset.time?(e.preventDefault(),document.querySelector("video").currentTime=e.target.dataset.time):e.target.dataset.increment&&(e.preventDefault(),o(t=e.target.parentElement.children[2],parseInt(t.dataset.time)+parseInt(e.target.dataset.increment)))}function r(e){var t=document.createElement("li"),n=document.createElement("span"),a=document.createElement("span"),i=document.createElement("a"),r=document.createElement("input");return n.innerHTML="➖",n.dataset.increment=-1,a.innerHTML="➕",a.dataset.increment=1,o(i,e),t.appendChild(n),t.appendChild(a),t.appendChild(i),t.appendChild(r),d.appendChild(t),r}function a(){v=!0,y.innerHTML="Copy List"}function t(e){return e.preventDefault(),e.returnValue="Close timestamp tool?",e.returnValue}var n,i,d,l,c,p,u,s,m,h,f,v,y,E;document.querySelector("#ytls-pane")||(n=document.createElement("div"),i=document.createElement("span"),d=document.createElement("ul"),l=document.createElement("li"),c=document.createElement("a"),u=document.createElement("input"),s=document.createElement("textarea"),m=document.createElement("div"),h=document.createElement("button"),f=document.createElement("button"),v=!0,y=document.createElement("button"),E=document.createElement("style"),n.id="ytls-pane",i.innerHTML="&times;",function e(){try{var t=Math.floor(document.querySelector("video").duration);o(c,t)}catch(e){}p=requestAnimationFrame(e)}(),u.disabled=!0,u.value="End of Video",s.id="ytls-box",m.id="ytls-buttons",h.innerHTML="Import List",f.innerHTML="Add Timestamp",y.innerHTML="Copy List",E.innerHTML= #ytls-pane { background: rgba(0,0,0,.5); text-align: right; position: fixed; bottom: 0; padding: 0 5px; opacity: .5; z-index: 5000; } #ytls-pane:hover { opacity: 1; } #ytls-pane span { cursor: pointer; } #ytls-pane ul { list-style: none; } #ytls-pane span, #ytls-pane a, #ytls-pane input { background: none; color: white; font-family: inherit; font-size: initial; text-decoration: none; border: none; outline: none; } #ytls-box { font-family: monospace; width: 100%25; display: block; padding: 0; border: none; outline: none; resize: none; } #ytls-buttons { display: flex; } #ytls-buttons button { background: transparent; color: white; font-size: 12px; flex: auto; padding: 2px; border: 1px solid white; } `,i.addEventListener("click",function(){confirm("Close timestamp tool?")&&(n.remove(),cancelAnimationFrame(p),window.removeEventListener("beforeunload",t))}),d.addEventListener("click",e),d.addEventListener("touchstart",e),h.addEventListener("click",function(){var e=s.value.split("\n");d.innerHTML="";for(var t=0;t<e.length;t++){var n=e[t].trim(),a=n.split(/\s+/,1)[0],i=(i=(i=a).split(":").map(e=>parseInt(e))).length<3?60i[0]+i[1]:3600i[0]+60*i[1]+i[2],n=n.slice(a.length+1);r(i).value=n}d.appendChild(l)}),f.addEventListener("click",function(){var e=r(Math.max(0,Math.floor(document.querySelector("video").currentTime-5)));d.appendChild(l),e.focus()}),y.addEventListener("click",function(){var e="";if(v){v=!1,y.innerHTML="Copy Links",setTimeout(a,500);for(var t=0;t<d.children.length-1;t++)e+=(0<t?"\n":"")+((n=d.children[t].children[2].innerHTML)+" "+d.children[t].children[3].value).trim()}else{a();for(t=0;t<d.children.length-1;t++){var n=d.children[t].children[2].href;e+=(0<t?"\n":"")+(d.children[t].children[3].value+" "+n).trim()}}s.value=e,s.select(),document.execCommand("copy")}),window.addEventListener("beforeunload",t),n.appendChild(i),l.appendChild(c),l.appendChild(u),d.appendChild(l),n.appendChild(d),n.appendChild(s),m.appendChild(h),m.appendChild(f),m.appendChild(y),n.appendChild(m),n.appendChild(E),document.body.appendChild(n),s.focus())}(); | ytscroller.min.js javascript:krazete:function videoAnchor(){var e,t,n,i,o,l,d,s,r;document.getElementsByClassName("miniplayer")[0].parentElement.active||(e=document.getElementById("movie_player"),t=document.getElementsByTagName("video")[0],n=document.getElementsByClassName("ytp-chrome-bottom")[0],i=document.getElementById("masthead-container").getBoundingClientRect(),s=document.querySelector("#player-container.ytd-watch-flexy").getBoundingClientRect(),e.removeAttribute("style"),o=e.getBoundingClientRect(),l=t.getBoundingClientRect(),s.bottom<i.height?(s=(document.getElementById("primary-inner")||document.getElementById("primary")).getBoundingClientRect(),d=320/l.width,s=(window.innerWidth-s.right)/l.width,r=(window.innerHeight-i.height)/l.height,e.style.position="fixed",e.style.right="0",e.style.top=i.height+"px",e.style.width=l.width+"px",e.style.height=l.height+"px",e.style.transformOrigin="right top",e.style.transform="scale("+Math.max(d,Math.min(s,r))+")",e.style.zIndex="1500",n.style.left="12px",n.style.width=l.width-24+"px",t.style.left=0):(n.style.left="12px",n.style.width=o.width-24+"px",t.style.left=(o.width-l.width)/2+"px"))}window.addEventListener("scroll",videoAnchor),window.addEventListener("resize",videoAnchor),function(){var i,o,t=document.createElement("div");t.innerHTML="▼",t.style.background="red",t.style.color="white",t.style.fontSize="24px",t.style.position="absolute",t.style.left="50%25",t.style.top="0",t.style.transform="translateX(-50%25)",t.style.display="none",t.style.borderRadius="0 0 8px 8px",t.style.zIndex="8000",t.style.cursor="pointer",document.body.appendChild(t),window.addEventListener("mouseup",function(e){var n;e.target.classList.contains("yt-simple-endpoint")&&0==e.button&&(i=window.scrollX,o=window.scrollY,t.style.display="block",requestAnimationFrame(function e(t){window.scrollTo(i,o),t-(n=void 0===n?t:n)<1&&requestAnimationFrame(e)}))}),t.addEventListener("click",function(){t.style.display="none",window.scrollTo(i,o)})}(); | ytspeed.min.js javascript:krazete:function initDash(){var e,t=document.createElement("div"),n=(t.style.position="fixed",t.style.right="0",t.style.bottom="0",t.style.zIndex="4999",document.createElement("div")),n=(n.innerHTML="❌",n.addEventListener("click",function(){t.remove()}),t.appendChild(n),document.createElement("input")),i=(n.type="range",n.min=0,n.max=1,n.step=.1,n.value=.7,n.addEventListener("input",function(){document.getElementsByTagName("video")[0].style.filter="brightness("+this.value+")"}),t.appendChild(n),document.createElement("div"));for(e of[1,2,3,5,10]){var a=document.createElement("button");a.value=e,a.innerHTML="x"+e,i.appendChild(a)}i.addEventListener("click",function(e){document.getElementsByTagName("video")[0].playbackRate=parseInt(e.target.value)}),t.appendChild(i),document.body.appendChild(t)}initDash(); | ytthumb.min.js javascript:krazete:open("https://i.ytimg.com/vi/"+location.search.match(/v=([^&]+)/)[1]+"/maxresdefault.jpg"); |