Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions dist/easycoder-min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/easycoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5349,8 +5349,8 @@ const EasyCoder_Browser = {
target = document.getElementById(targetId);
}
const styleValue = program.getValue(command.styleValue);
if (!symbol.value[symbol.index]) {
program.runtimeError(command.lino, `Variable '${symbol.name}' has not been assigned.`);
if (!symbol.element[symbol.index]) {
program.runtimeError(command.lino, `Variable '${symbol.name}' has no DOM element.`);
return 0;
}
switch (command.type) {
Expand Down Expand Up @@ -8367,7 +8367,7 @@ const EasyCoder = {
}
},
};
EasyCoder.version = `2.7.0`;
EasyCoder.version = `2.7.1`;
EasyCoder.timestamp = Date.now();
console.log(`EasyCoder loaded; waiting for page`);

Expand Down
6 changes: 3 additions & 3 deletions dist/easycoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: EasyCoder
* Plugin URI: https://easycoder.software
* Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript.
* Version: 2.7.0
* Version: 2.7.1
* Author: EasyCoder Software
* Author URI: https://easycoder.software
*/
Expand All @@ -16,9 +16,9 @@
add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2);
function easycoder_enqueue_script() {
wp_enqueue_script('easycoder_script',
'https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js', array(), '2.7.0');
'https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js', array(), '2.7.1');
// wp_enqueue_script('easycoder_script', 'https://rembrandt.easycoder.software/dist/easycoder.js',
array(), '2.7.0');
array(), '2.7.1');
}

// Set up default plugin and REST scripts
Expand Down
3 changes: 3 additions & 0 deletions dist/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ For tutorials and a programmers' reference see our [EasyCoder Software Codex](ht

== Changelog ==

= 2.7.1 04-may 2020 =
* Fix bug in 'set styles'

= 2.7.0 04-may 2020 =
* Added 'click left' and 'click top'

Expand Down
4 changes: 2 additions & 2 deletions js/easycoder/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2284,8 +2284,8 @@ const EasyCoder_Browser = {
target = document.getElementById(targetId);
}
const styleValue = program.getValue(command.styleValue);
if (!symbol.value[symbol.index]) {
program.runtimeError(command.lino, `Variable '${symbol.name}' has not been assigned.`);
if (!symbol.element[symbol.index]) {
program.runtimeError(command.lino, `Variable '${symbol.name}' has no DOM element.`);
return 0;
}
switch (command.type) {
Expand Down
2 changes: 1 addition & 1 deletion js/easycoder/EasyCoder.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
EasyCoder.version = `2.7.0`;
EasyCoder.version = `2.7.1`;
EasyCoder.timestamp = Date.now();
console.log(`EasyCoder loaded; waiting for page`);

Expand Down
20 changes: 20 additions & 0 deletions mostrami/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body>

<div id="jp-container" style="text-align:center;width:100%">
<b>JSON::Presenter</b><br>
Click/Tap or key Space/RightArrow to start in manual mode<br>
Click/Tap or key Space/RightArrow to advance<br>
Key Enter to start in auto mode<br>
Click/Tap to exit auto mode
</div>
<pre id="jp-script" style="display:none">resources/json/test.json</pre>
<script src="jsonPresenter.js"></script>

</body>
</html>
Empty file added mostrami/favicon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mostrami/favicon.ico
Binary file not shown.
22 changes: 22 additions & 0 deletions mostrami/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js?v=200521'></script>
</head>

<body>

<pre id="easycoder-rest" style="display:none">rest.php</pre>
<pre id="easycoder-script" style="display:none">
! EasyCoder Presenter

script Launcher

variable Script
require js `https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/plugins/codemirror.js?v=` cat now
rest get Script from `/resources/ecs/presenter.txt`
run Script

</body>
</html>
Loading