Maison enigme

ServeurDeTest
Pierre BALLANDRAS 3 years ago
parent 40ae06f2ad
commit e1369ac405

@ -1,7 +1,7 @@
html{ html{
scroll-behavior: smooth; scroll-behavior: smooth;
background-image: url(../../assets/img/BackgroundPresentation.jpg); background-image: url(../../assets/img/Background.jpg);
height: 100vh; height: 100vh;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;

@ -83,6 +83,14 @@ body{
margin-right: 20px; margin-right: 20px;
} }
.titre_pre{
display: flex;
}
.sign{
margin-left:3%;
}

@ -41,7 +41,6 @@
<a class="btn"> <a class="btn">
<span class="noAnimation">Run</span> <span class="noAnimation">Run</span>
</a> </a>
</div> </div>
</div> </div>
<br> <br>

@ -5,12 +5,17 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Palindrome</title> <title>Palindrome</title>
<link rel="stylesheet" href="../../CSS/Enigme.css" /> <link rel="stylesheet" href="../../CSS/Enigme.css"/>
<link rel="stylesheet" href="../../CSS/Home.css"> <link rel="stylesheet" href="../../CSS/Home.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head> </head>
<body> <body>
<div class="enigme"> <div class="enigme">
<div class="titre_pre">
<div class="retour">
<a class="material-icons" id="home" href="../Home.html" style="font-size:36px;color:white;">home</a>
</div>
<div class="sign"> <div class="sign">
<h1> <h1>
<span class="fast-flicker">p</span> <span class="fast-flicker">p</span>
@ -19,6 +24,7 @@
<span>rome</span> <span>rome</span>
</h1> </h1>
</div><br> </div><br>
</div>
<h2>Consigne</h2><br> <h2>Consigne</h2><br>
<p class="enonce"> <p class="enonce">
Écrire une fonction estPalindrome qui prend en argument un entier et qui renvoie True si cest un palindrome et False sinon. Écrire une fonction estPalindrome qui prend en argument un entier et qui renvoie True si cest un palindrome et False sinon.
@ -32,12 +38,6 @@
<h2>Aide</h2><br> <h2>Aide</h2><br>
<p>En python linstruction [::-1] permet dinverse une chaine de caractère. Par exemple print("ae"[::-1]) affiche : ea.</p> <p>En python linstruction [::-1] permet dinverse une chaine de caractère. Par exemple print("ae"[::-1]) affiche : ea.</p>
</div> </div>
<!-- <button onclick="aide()" id="buttonAide">Aide</button>
<button onclick="rappel()" id="buttonRappel">Rappel</button>
<p id="textAide">Hello</p>
<p id="textRappel"></p> -->
<div class='ace' id='editor'>def estPalindrome(var): <div class='ace' id='editor'>def estPalindrome(var):
if(var == var[::-1]): if(var == var[::-1]):
return True return True

Loading…
Cancel
Save