Skip to content

Commit 3cd9828

Browse files
authored
Merge pull request #67 from easycoder/dev
Add Mostrami
2 parents 8c32ba2 + 67a6a8a commit 3cd9828

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+3363
-24
lines changed

dist/easycoder-min.js

Lines changed: 11 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/easycoder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5349,8 +5349,8 @@ const EasyCoder_Browser = {
53495349
target = document.getElementById(targetId);
53505350
}
53515351
const styleValue = program.getValue(command.styleValue);
5352-
if (!symbol.value[symbol.index]) {
5353-
program.runtimeError(command.lino, `Variable '${symbol.name}' has not been assigned.`);
5352+
if (!symbol.element[symbol.index]) {
5353+
program.runtimeError(command.lino, `Variable '${symbol.name}' has no DOM element.`);
53545354
return 0;
53555355
}
53565356
switch (command.type) {
@@ -8367,7 +8367,7 @@ const EasyCoder = {
83678367
}
83688368
},
83698369
};
8370-
EasyCoder.version = `2.7.0`;
8370+
EasyCoder.version = `2.7.1`;
83718371
EasyCoder.timestamp = Date.now();
83728372
console.log(`EasyCoder loaded; waiting for page`);
83738373

dist/easycoder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: EasyCoder
44
* Plugin URI: https://easycoder.software
55
* Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript.
6-
* Version: 2.7.0
6+
* Version: 2.7.1
77
* Author: EasyCoder Software
88
* Author URI: https://easycoder.software
99
*/
@@ -16,9 +16,9 @@
1616
add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2);
1717
function easycoder_enqueue_script() {
1818
wp_enqueue_script('easycoder_script',
19-
'https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js', array(), '2.7.0');
19+
'https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js', array(), '2.7.1');
2020
// wp_enqueue_script('easycoder_script', 'https://rembrandt.easycoder.software/dist/easycoder.js',
21-
array(), '2.7.0');
21+
array(), '2.7.1');
2222
}
2323

2424
// Set up default plugin and REST scripts

dist/readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ For tutorials and a programmers' reference see our [EasyCoder Software Codex](ht
5454

5555
== Changelog ==
5656

57+
= 2.7.1 04-may 2020 =
58+
* Fix bug in 'set styles'
59+
5760
= 2.7.0 04-may 2020 =
5861
* Added 'click left' and 'click top'
5962

js/easycoder/Browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,8 +2284,8 @@ const EasyCoder_Browser = {
22842284
target = document.getElementById(targetId);
22852285
}
22862286
const styleValue = program.getValue(command.styleValue);
2287-
if (!symbol.value[symbol.index]) {
2288-
program.runtimeError(command.lino, `Variable '${symbol.name}' has not been assigned.`);
2287+
if (!symbol.element[symbol.index]) {
2288+
program.runtimeError(command.lino, `Variable '${symbol.name}' has no DOM element.`);
22892289
return 0;
22902290
}
22912291
switch (command.type) {

js/easycoder/EasyCoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
EasyCoder.version = `2.7.0`;
1+
EasyCoder.version = `2.7.1`;
22
EasyCoder.timestamp = Date.now();
33
console.log(`EasyCoder loaded; waiting for page`);
44

mostrami/demo.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<html>
2+
<head>
3+
<meta charset="UTF-8">
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
</head>
6+
7+
<body>
8+
9+
<div id="jp-container" style="text-align:center;width:100%">
10+
<b>JSON::Presenter</b><br>
11+
Click/Tap or key Space/RightArrow to start in manual mode<br>
12+
Click/Tap or key Space/RightArrow to advance<br>
13+
Key Enter to start in auto mode<br>
14+
Click/Tap to exit auto mode
15+
</div>
16+
<pre id="jp-script" style="display:none">resources/json/test.json</pre>
17+
<script src="jsonPresenter.js"></script>
18+
19+
</body>
20+
</html>

mostrami/favicon.gif

Loading

mostrami/favicon.ico

2.19 KB
Binary file not shown.

mostrami/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<html>
2+
<head>
3+
<meta charset="UTF-8">
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js?v=200521'></script>
6+
</head>
7+
8+
<body>
9+
10+
<pre id="easycoder-rest" style="display:none">rest.php</pre>
11+
<pre id="easycoder-script" style="display:none">
12+
! EasyCoder Presenter
13+
14+
script Launcher
15+
16+
variable Script
17+
require js `https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/plugins/codemirror.js?v=` cat now
18+
rest get Script from `/resources/ecs/presenter.txt`
19+
run Script
20+
21+
</body>
22+
</html>

0 commit comments

Comments
 (0)