-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from MercuryWorkshop/docs
Docs
- Loading branch information
Showing
7 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Template Anure app for an easy HTML iFrame | ||
|
||
## Instructions for use: | ||
|
||
1. Start by copying and renaming the template.app folder to your desired app. | ||
2. Add your desired html, js, and css files to their respective folders. The html file you want to be visible in the app should be named index.html. | ||
3. Go to the manifest.json file and modify it to the correct values. You should modify the following fields: | ||
|
||
```json | ||
"name": "Your Desired app name" | ||
|
||
"package": "anura.APPNAME", | ||
|
||
"icon": "appicon.svg", | ||
|
||
"title":"Your App Window Name", | ||
``` | ||
|
||
4. Go to launchapp.js and modify the following line, replacing "template" with "yourappsname" | ||
|
||
```js | ||
let glxgears = AliceWM.create("template"); | ||
``` | ||
|
||
## Congrats | ||
|
||
You have successfully completed building your basic iFrame app, you can either zip it and add it to a repository for the WorkStore or add it directly into your Anura instance under the apps folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!doctype html> | ||
<html> | ||
Anura App Template | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
function loadingScript(currentpath) { | ||
let glxgears = AliceWM.create("template"); | ||
|
||
let iframe = document.createElement("iframe"); | ||
iframe.style = | ||
"top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0;"; | ||
iframe.setAttribute("src", currentpath + "/index.html"); | ||
|
||
glxgears.content.appendChild(iframe); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "Template", | ||
"type": "auto", | ||
"package": "anura.TEMPLATE", | ||
"index": "index.html", | ||
"icon": "terminal.svg", | ||
"wininfo": { | ||
"title": "TEMPLATE", | ||
"width": "700px", | ||
"height": "500px" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.