Rapier script playground
How do I make an rapier script playground?
Tokenizer example this what compilers and parsers do with your code before compiling/executing it the token representations can vary. What is a rapier script playground? How do you make a rapier script playground? This script and codes were developed by Matheus Silva on 20 October 2022, Thursday.
Rapier script playground - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>rapier script playground</title> <link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .input{ color:blue; width: 20%; height: 40%;
}
body{ background-color: #2C3E50; background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/90399/subtle_carbon.png'); background-repeat: repeat;
}
.code{ position: absolute; padding: 5px; width: 50%; height: 50%; color: black; background-color: #ECF0F1; margin: -5% 0 0 30%; font-family: 'Source Sans Pro', 'sans-serif'; font-size: 20px; overflow: scroll
}
span{ font-family: 'Source Sans Pro', 'sans-serif'; color: #ECF0F1;
}
.reset{ border-radius: 20px; border: none; background-color: #67809F; color: #A2DED0; padding: 9px; outline: none; transition: all .5s; position: absolute; top 55%;
}
.reset:hover{ border: 8px solid #22313F;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <span>write down your code: </span><br>
<textarea class="input"></textarea><br>
<button class="reset">Tokenize</button><br><br><br>
<div><pre class="code"></pre></div> <script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/90399/tokeniser.js'></script> <script src="js/index.js"></script>
</body>
</html>
Rapier script playground - Script Codes CSS Codes
.input{ color:blue; width: 20%; height: 40%;
}
body{ background-color: #2C3E50; background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/90399/subtle_carbon.png'); background-repeat: repeat;
}
.code{ position: absolute; padding: 5px; width: 50%; height: 50%; color: black; background-color: #ECF0F1; margin: -5% 0 0 30%; font-family: 'Source Sans Pro', 'sans-serif'; font-size: 20px; overflow: scroll
}
span{ font-family: 'Source Sans Pro', 'sans-serif'; color: #ECF0F1;
}
.reset{ border-radius: 20px; border: none; background-color: #67809F; color: #A2DED0; padding: 9px; outline: none; transition: all .5s; position: absolute; top 55%;
}
.reset:hover{ border: 8px solid #22313F;
}
Rapier script playground - Script Codes JS Codes
var input = document.body.querySelector('.input');
var rst = document.body.querySelector('.reset');
var psr = document.body.querySelector('.parse');
var codeRender = document.body.querySelector('.code');
window.addEventListener ("load", function () { rst.addEventListener ("click", function (e) { var c = input.value; var tokenized = tokenize(c); codeRender.innerHTML = tokenized; }, false); psr.addEventListener ("click", function (e) { var c = input.value; codeRender.innerHTML = parse(tokenized); }, false); input.addEventListener ("keydown", function (e) { var keycode = e.keyCode || e.which; if (keycode == 9){ e.preventDefault(); var prec = input.value; input.value = prec + ' '; } }, false);
}, false);
Developer | Matheus Silva |
Username | matheusxaviersi |
Uploaded | October 20, 2022 |
Rating | 3 |
Size | 2,937 Kb |
Views | 16,192 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Server satus indicator | 2,289 Kb |
Menu concept | 3,451 Kb |
A Pen by Matheus Silva | 1,675 Kb |
Simple syntax higlighter | 3,865 Kb |
Off canvas menu | 7,017 Kb |
Just some fun with 3d transforms | 2,140 Kb |
Sample page | 4,168 Kb |
Color switching button | 2,764 Kb |
Mug foundation-pre loader | 3,330 Kb |
Css3 loaders 4rd revision | 3,307 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Menubar compass mixin | Michaelparenteau | 4,925 Kb |
Blog | Rottingroom | 1,430 Kb |
Caputre Cam with JS | KimmoCommit | 2,795 Kb |
A bit of elegance | Hackthevoid | 9,095 Kb |
Header | Er40 | 1,542 Kb |
Bootstrap example | Ssaakkaa | 2,716 Kb |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
See Through | Larrygeams | 77,410 Kb |
A Pen by Tosh | Panev | 2,586 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!