Skip to content

Commit

Permalink
output
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitskvmdam committed Nov 6, 2023
1 parent 14e3e3f commit 0cd43bf
Show file tree
Hide file tree
Showing 36 changed files with 84 additions and 56 deletions.
2 changes: 1 addition & 1 deletion output/v4/AgentArray.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Alive.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Alive.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Apple.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Apple.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Database.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/Energy.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Energy.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/Environment.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Environment.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/HideConstructor.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Modules.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/NamespaceWithAlias.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Statement.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/StatementIterator.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/Test.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Tree.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/Tree.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/World.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/World.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/agentscript.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/api.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/global.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions output/v4/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-SqlJs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-bookshelf.Book.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-bookshelf.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-color_mixer-Colour.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/module-color_mixer.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/obj.map.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/pieOptions.html

Large diffs are not rendered by default.

34 changes: 31 additions & 3 deletions output/v4/run-only-for-agentscript.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,41 @@
function runSomeScript() {
if(!window.location.pathname.toLocaleLowerCase().includes("agent")) {
if (!window.location.pathname.toLocaleLowerCase().includes("agent")) {
/**
* If pathname doesn't include agent then we are not running this script.
* We can add any custom logic
*/
return
}

console.log('%c AgentScript', 'font-weight: bold; font-size: 50px;color: red; text-shadow: 3px 3px 0 rgb(217,31,38) , 6px 6px 0 rgb(226,91,14) , 9px 9px 0 rgb(245,221,8) , 12px 12px 0 rgb(5,148,68) , 15px 15px 0 rgb(2,135,206) , 18px 18px 0 rgb(4,77,145) , 21px 21px 0 rgb(42,21,113)');
console.log('%c AgentScript', 'font-weight: bold; font-size: 50px;color: red; text-shadow: 3px 3px 0 rgb(217,31,38) , 6px 6px 0 rgb(226,91,14) , 9px 9px 0 rgb(245,221,8) , 12px 12px 0 rgb(5,148,68) , 15px 15px 0 rgb(2,135,206) , 18px 18px 0 rgb(4,77,145) , 21px 21px 0 rgb(42,21,113)');
}

runSomeScript()
runSomeScript()


function addLiveCodeExampleForAgentArrayPage() {
if (!window.location.pathname.toLocaleLowerCase().includes("agentarray.html")) {
/**
*
*/
return
}

const containerElement = document.querySelector('body article div')
const liveCodeContainer = document.createElement('div')

/**
* Adding some clean-jsdoc-theme class names
*/
liveCodeContainer.classList.add('method-member-container', 'flex', 'flex-col', 'w-100', 'overflow-auto', 'mt-20')


liveCodeContainer.innerHTML += `
<strong>Coding Playground</strong>
<iframe src="https://agentscript.org/editor/?example=slimemold" style="height:700px; width: 100%; background: white;" class="mt-20"></iframe>
`

containerElement.append(liveCodeContainer)
}

window.addEventListener('DOMContentLoaded', addLiveCodeExampleForAgentArrayPage);
2 changes: 1 addition & 1 deletion output/v4/tutorial-Alive_.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Apple_.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Environment_.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion output/v4/tutorial-Other.html

Large diffs are not rendered by default.

0 comments on commit 0cd43bf

Please sign in to comment.