diff --git a/README_CJ.md b/README_CJ.md index a5303e7..74b6914 100644 --- a/README_CJ.md +++ b/README_CJ.md @@ -4,12 +4,11 @@ Mainly added examples to demonstrate how to use **Html blocks** and **Variables* ### New files ### - `examples.html` - - Copy of index.html, with exercises replaced by examples. - - class="exercise" is replaced by class="example" + - Copy of `index.html`, with exercises replaced by examples. - Introduced an attribute `start_code` to ``. The value of the attribute represents the initial HTML code and Code Blocks. The value can be obtained from the URL generated by clicking the SHARE button; - it is the string that appears after `https://blocks.codeyourfuture.io/share.html?v=`. + it is the string that appears after `https://DOMAIN/share.html?v=`. - `examples/` - Contains descriptions of example as .md files. diff --git a/examples.html b/examples.html index 48eb7d1..9963bb3 100644 --- a/examples.html +++ b/examples.html @@ -225,7 +225,8 @@

Example: Using variables

+ "('j!('blocks!('languageVersion!0~blocks!%5B('type!'element_clicked'~id!'Orij%25O%7C%7D%252vU%3FD%7DVx2%5EZ'~x!32~y!45~fields!('TEXT1!'when%20the%20element%20with%20id'~ID!'sumButton'~TEXT2!'is%20clicked')%C2%87HANDLER!('%C2%84set'~id!'%2C%7BR8%3B%5EW%60mZ%5DC-%7D%5EeBx)-%22%C2%81th_id'~id!'JOk4lL%3F*o%3F1VNw%3AdIY6*%C2%851'))))~next!('%C2%84set'~id!'KK2H5Fq(%40Nak0%3FQEmDwa%C2%80VAR!('%7F)%C2%81th_id'~id!'cf%3F%7CFKowVh%5EWxtrk%5E.cH%C2%852'))))~next!('%26math_change'~id!'R%2F%7C%23%40.DyG%2C'%3FKY5K%3A2'%3Aqm%22%C2%87DELTA!('shadow!('type!'math_number'~id!'%7Bo(%7B%23'%3A%7C.xyI-IMD%3DstC7%C2%80NUM!1))~%C2%84get'~id!'%2FMUFMhCoV%3F4_.7V1E%7D4K%C2%80VAR!('%7F))))~next!('%26with_element_by_id'~id!'U%24HscTvl9xN%25FBsq7g%5B.%C2%80ID!'sum')%C2%87STACK!('%26set_content'~id!'%3BR3%40%5Bk'%3AjzRo%2BpOqAXkgh'%C2%87VALUE!('shadow!('type!'text'~id!'o6OWnZEAPg15UuLGZkl%2B%C2%80TEXT!'Hello%2C%20'))~%C2%84get'~id!'%23rnd42foTOq(577Jw%5DR6%22))))))))))))))))%5D)~variables!%5B('name!'num1'~%C2%82%2C('name!'num2'~%7F%5D)~h!'%3Cinput%C2%86num1%C2%83%2B%5Cn%3Cinput%C2%86num2%C2%83%3D%5Cn%3Cspan%C2%86sum%5C'%3E%3C%2Fspan%3E%5Cn%5Cn%3Chr%3E%5Cn%3Cbutton%C2%86sumButton%5C'%3ESum%3C%2Fbutton%3E%5Cn%5Cn%5Cn%5Cn')%22%C2%80VAR!('%C2%82)%26block!('type!'%7Fid!'%3B0oB%7C%7BnA%2C)7h(%5DQ25N%7Bp')%C2%80'~fields!('%C2%81%C2%87VALUE!('%26get_input_data_wi%C2%82id!'DJ3%2B0hsEH%7DrCb%25AF%3DKM%7B')%C2%83%5C'%20type%3D%5C'number%5C'%3E%20%C2%84%26variables_%C2%85%C2%80TYPE!'number'~ID!'num%C2%86%20id%3D%5C'%C2%87~inputs!('%01%C2%87%C2%86%C2%85%C2%84%C2%83%C2%82%C2%81%C2%80%7F%26%22_" + >