Skip to content

Commit b6e10a0

Browse files
committed
commit
1 parent 312a0ba commit b6e10a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

assets/js/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $(document).ready(function(){
3030

3131
/* ACE EDITOR CONFIG */
3232
try {
33-
var codeText = "echo 'Hello World!';";
33+
var codeText = "$table = 5;\nfor($i = 1; $i <= 10; $i++) {\n\techo $table.' x '.$i.' = '.($table*$i).'<br>';\n}";
3434
var editor = ace.edit("editor");
3535
editor.setTheme("ace/theme/monokai");
3636
editor.setValue(codeText);

code/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
$table = 13;
3-
for($i = 1; $i<= 10; $i++){
4-
echo $table.' x '.$i.' = '.($table*$i).'<br>';
2+
$table = 5;
3+
for($i = 1; $i <= 10; $i++) {
4+
echo $table.' x '.$i.' = '.($table*$i).'<br>';
55
}

0 commit comments

Comments
 (0)