-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
86 lines (80 loc) · 3.72 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!doctype html>
<html>
<head>
<title>12345 -> 345</title>
<script src="12345-345.js"></script>
<!-- the scripts that make parsons work -->
<link href="./utils/parsons.css" rel="stylesheet" />
<link href="./utils/lib/prettify.css" rel="stylesheet" />
<script src="./utils/lib/prettify.js"></script>
<script src="./utils/include.js"></script>
<script src="./utils/lib/jquery.min.js"></script>
<script src="./utils/lib/jquery-ui.min.js"></script>
<script src="./utils/lib/jquery.ui.touch-punch.min.js"></script>
<script src="./utils/lib/underscore-min.js"></script>
<script src="./utils/lib/lis.js"></script>
<script src="./utils/parsons.js"></script>
<script src='./utils/index.js'></script>
</head>
<body>
<div>
<!-- your problem description goes here -->
<h1><a href="https://github.com/elewa-academy/12345-345">12345 -> 345</a></h1>
{number, 12345} -> {number, 345} <br>
// using only primitives, their methods, and explicit type casting
<br>
<br>
</div>
<hr>
<div id="parsons">
<div name="parsons-boxes">
<!-- modify this line's id -->
<div id="shuffled-let-vs-var" name="shuffled" class="sortable-code"></div>
<!-- modify this line's id -->
<div id="sorted-let-vs-var" name="sorted" class="sortable-code"></div>
<div style="clear:both;"></div>
</div>
<div name="parsons-buttons">
<!-- modify this line's id -->
<a href="#" id="reshuffle-let-vs-var" name="reshuffle">Re-Shuffle</a>
<!-- modify this line's id -->
<a href="#" id="feedback-let-vs-var" name="feedback">Get feedback</a>
</div>
<script>
// define your challenge here
config = {};
config.shuffled_id = "shuffled-let-vs-var";
config.sorted_id = "sorted-let-vs-var";
config.reshuffle_id = "reshuffle-let-vs-var";
config.feedback_id = "feedback-let-vs-var";
config.challenge =
"// {number, 12345} -> {number, 345} \n" +
"Number(String(12345).replace(\"12\", \"\")); \n" +
" // {number, 12345} \n" +
" String(12345); \n" +
" // {string, \"12345\"} \n" +
" \"12345\".replace(\"12\", \"\"); \n" +
" // {string, \"345\"} \n" +
" Number(\"345\"); \n" +
" // {number, 345}";
init_section(config);
</script>
<br>
</div>
<hr>
<div id="replit-demo">
<h2>Play with it</h2><br>
<p>
Mess around with the snippet, and practice solving the commented challenges.
</p>
<iframe height="800px" width="100%" src="https://repl.it/@colevandersWands/12345-345?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
</div>
<hr>
<a href="https://github.com/elewa-academy/1235-345">back to the repo</a>
<hr>
<hr>
<a href="http://elewa.education/blog" target="_blank"><img src="https://user-images.githubusercontent.com/18554853/34921062-506450ae-f97d-11e7-875f-6feeb26ad72d.png" width="150" height="60"/></a>
<br>
<br>
</body>
</html>