teaching:progappchim:testjs

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
teaching:progappchim:testjs [2017/03/06 00:11] villersdteaching:progappchim:testjs [2017/05/04 16:13] (Version actuelle) villersd
Ligne 1: Ligne 1:
-====== Test Javascript + dokuwiki + DataCamp-ligh ======+====== Test Javascript + dokuwiki + DataCamp-light ====== 
 <PRELOAD> <PRELOAD>
 https://cdn.datacamp.com/datacamp-light-latest.min.js https://cdn.datacamp.com/datacamp-light-latest.min.js
 </PRELOAD> </PRELOAD>
  
-test 
 <html> <html>
   <div class="exercise">   <div class="exercise">
     <div class="title">     <div class="title">
-      <h2>This is a python exercise</h2>+      <h2>This is a python exercise !!</h2>
     </div>     </div>
  
Ligne 18: Ligne 18:
         y = np.sin(x)         y = np.sin(x)
         print(x)         print(x)
-        print(y+        print(y)
       </code>       </code>
       <code data-type="solution"></code>       <code data-type="solution"></code>
Ligne 25: Ligne 25:
     </div>     </div>
   </div>   </div>
 +
 +<h3>2nd Test</h3>
 +
 +<div data-datacamp-exercise data-lang="r">
 +    <code data-type="pre-exercise-code">
 +        # This will get executed each time the exercise gets initialized
 +        b = 6
 +    </code>
 +    <code data-type="sample-code">
 +        # Create a variable a, equal to 5
 +
 +
 +        # Print out a
 +
 +
 +    </code>
 +    <code data-type="solution">
 +        # Create a variable a, equal to 5
 +        a <- 5
 +
 +        # Print out a
 +        print(a)
 +    </code>
 +    <code data-type="sct">
 +        test_object("a")
 +        test_function("print")
 +        success_msg("Great job!")
 +    </code>
 +    <div data-type="hint">Use the assignment operator (<code><-</code>) to create the variable <code>a</code>.</div>
 +</div>
 </html> </html>
  • teaching/progappchim/testjs.1488755499.txt.gz
  • Dernière modification : 2017/03/06 00:11
  • de villersd