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 |
Simple yet functional | 2,025 Kb |
Server satus indicator | 2,289 Kb |
Rapier script playground | 2,937 Kb |
Color switching button | 2,764 Kb |
Login page | 3,547 Kb |
Simple syntax higlighter | 3,865 Kb |
A Pen by Matheus Silva | 1,675 Kb |
Mug foundation-pre loader | 3,330 Kb |
Off canvas menu | 7,017 Kb |
Just some fun with 3d transforms | 2,140 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 |
Pure CSS Read More Arrow | Zephyr | 1,747 Kb |
LDE old privacy page | Jasonangle | 2,339 Kb |
Clock Face Idea | Chrisburnell | 3,196 Kb |
Simple Flat Menu | Jeplaa | 2,467 Kb |
Christ the Redeemer | Prashantsani | 2,208 Kb |
Mandelbrot Fractal | _Billy_Brown | 2,706 Kb |
Tab Menus | Zephyr | 3,180 Kb |
Starfield old school style | Bolloxim | 5,214 Kb |
We Simplify animation | Meodai | 48,169 Kb |
Beveled corners using CSS border attribute | DawsonMediaD | 2,136 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!