@ -72,9 +72,8 @@ body{
.enigme{
width: 25%;
height: 100%;
height: fit-content;
color: aliceblue;
margin-left: 20px;
background: rgba(0,0,0,0.6);
box-sizing: border-box;
border-radius: 10px;
@ -85,6 +84,10 @@ body{
.titre_pre{
display: flex;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 20px;
padding-left: 10px;
}
.sign{
@ -230,14 +233,13 @@ body{
.enigme .sign{
display: contents;
.enigme h2{
font-size: 1.5rem;
font-weight: 600;
.enigme p{
@ -303,6 +305,7 @@ body{
/* Modal Container Buttons */
.modal .buttons{
@ -58,6 +58,7 @@ editor.setOptions({
function exec(code, id) {
const terminal = document.getElementById("console");
terminal.innerHTML = '';
const runner = new BrythonRunner({
stdout: {
write(content) {
@ -23,12 +23,13 @@
<div class="sign">
<h1>
<span class="fast-flicker">c</span>
<span>huckn</span>
<span>h</span>
<span class="flicker">o</span>
<span class="flicker">u</span>
<span>rris</span>
<span>ck</span>
</h1>
</div><br>
</div>
<div>
<h2>Consigne</h2><br>
<p class="enonce">
Coder un fonction binaire2unaire qui prend en argument un nombre binaire et le code via le codage Chucknorris.
@ -44,6 +45,7 @@
<h2>Aide</h2><br>
<p>?</p>
<div class='ace' id='editor'>def binaire2unitaire(x):
rep=0
pre=x[0]