App
Purpose: |
Centers the App on the screen horizontally and vertically. |
Category: |
App |
Syntax: |
CenterApp |
Example: |
CenterApp |
Purpose: |
Scale the app to cover the screen area. |
Category: |
App |
Syntax: |
FitAppToScreen cover "vpos" "hpos" true/false to cover complete screen area. vpos Vertical position (possible values: top / middle / bottom) hpos Horizontal position (possible values: left / right / center) |
Example: |
FitAppToScreen false "middle" "center" |
Purpose: |
Centers the App horizontally at the top of the screen. |
Category: |
App |
Syntax: |
TopCenterApp |
Example: |
TopCenterApp |
Purpose: |
Inject CSS code into your App. |
Category: |
App |
Syntax: |
AddCSS "CSS content" CSS content Any CSS code. Clasess etc. |
Example: |
AddCSS ".myclass{color:red}" |
Purpose: |
Include a .ttf, .woff or .woff2 text font into the project and install it. |
Category: |
App |
Syntax: |
AddFont "font name" "font path" font name Name to identify the font. Use it on font-family property. font path Absolute path to the font file (will become relative automaticaly once compiled) |
Example: |
AddFont "myfont" "D:\Fonts\Amarillo.ttf" |
Purpose: |
Set the App horizontal and vertical position relative to the Web Browser Window or device screen. |
Category: |
App |
Syntax: |
AppPostion "vertical position" "horizontal position" |
Example: |
AppPosition "top" left" |
Purpose: |
Changes the Background Color surrounding the App limits. |
Category: |
App |
Syntax: |
AppBackgroundColor "color name" A color on any valid HTML5 format: #ff5432 |
Example: |
AppBackgroundColor "rgb(12,132,64)" |
Purpose: |
Sets a full screen App background image. |
Category: |
App |
Syntax: |
AppBackgroundImage "image object" An image object previously added to the Work Sapace you want to become your App background image. |
Example: |
AppBackgroundImage "myBackgroundImage" |
Purpose: |
Scroll the document to the given horizontal and vertical position. |
Category: |
App |
Syntax: |
AppScrollTo topDistance leftDistance topDistance The distance from the top of the app to scroll to in pixels. leftDistance The distance from the left side of the app to scroll to in pixels. |
Example: |
AppScrollTo 400 0 |
Purpose: |
Set de entry page for each device screen size. |
Category: |
App |
Syntax: |
SetResponsivePages "Page1" "Page2" "Page3" "Page4" Page1 Page name for large screen sizes > 1024px (Desktop). Page2 Page name for medium screen sizes 768px - 1024px (Tablet). Page3 Page name for small screen sizes 461 - 767px (Tablet). Page4 Page name for medium screen sizes 320px - 480px (Mobile). |
Example: |
SetResponsivePages "Page1" "Page2" "Page3" "Page4" |
Notes: |
You can define different sizes for each page adding a custom CSS in #Page1{ width:320px; height:200px; } #Page2{ width:480px; height:250px; } #Page3{ width:768px; height:400px; } #Page4{ width:1024px; height:650px; } |
Purpose: |
Disable text selction by user on entire App |
Category: |
App |
Syntax: |
DisableTextSelection |
Example: |
DisableTextSelection |
Purpose: |
Get the user selected text into a variable |
Category: |
App |
Syntax: |
GetSelectedText "variable" variable Variable to store result. |
Example: |
GetSelectedText [myVar] |
Purpose: |
Replaces the current App loading a new one |
Category: |
App |
Syntax: |
LoadApp "new app url" The internet URL where the app to load is published. |
Example: |
LoadApp "https://mydomain.com/myapp" |
Purpose: |
Reloads the current App in the WebBrowser. |
Category: |
App |
Syntax: |
ReloadApp |
Example: |
ReloadApp |
Purpose: |
Scale the whole app by a scale factor. |
Category: |
App |
Syntax: |
ScaleApp |
Example: |
ScaleApp 2 |
Purpose: |
Open a URL in a new tab or window. |
Category: |
App |
Syntax: |
OpenURL "url" url The internet URL adress to open. |
Example: |
OpenURL "https://sinlios.com" |
Purpose: |
Returns full App URL (https://example.com/path/index.html) |
Category: |
App |
Syntax: |
GetAppURL [result var] |
Example: |
GetAppURL [myvar] |
Purpose: |
Returns current URL path (/path/index.html) |
Category: |
App |
Syntax: |
GetAppPath [result var] |
Example: |
GetAppPath [myvar] |
Purpose: |
Returns App base URL (https://example.com) |
Category: |
App |
Syntax: |
GetAppBaseURL [result var] |
Example: |
GetAppBaseURL [myvar] |
|
|
Purpose: |
Gets the value from a URL parameter (mydomain.com?parameter1=value1¶meter2=value2) |
Category: |
App |
Syntax: |
GetURLParameter "parameter name" [result var] |
Example: |
GetURLParameter "parameter1" [myvar] |
|
|
Purpose: |
Determine if this device is connected to the Internet by checking a URL |
Category: |
App |
Syntax: |
CheckInternetConnection "URL" milliseconds "succesSubroutine" "errorSubroutine" URL to check milliseconds Milliseconds to wait for response Subroutine to execute on success Subroutine to execute on error |
Example: |
CheckInternetConnection "https://google.com" 10000 "succesSubroutine" "errorSubroutine" |
Purpose: |
Enters full screen mode (same effect than pressing F11 in the WebBrowser). |
Category: |
App |
Syntax: |
EnterFullScreen |
Example: |
EnterFullScreen |
Purpose: |
Exists full screen mode (previously opened with EnterFullScreen). |
Category: |
App |
Syntax: |
ExitFullScreen |
Example: |
ExitFullScreen |
Purpose: |
Check if a CSS media query string matches current viewport. |
Category: |
App |
Syntax: |
MatchMedia "CSS Media Query" [return var] CSS Media Query A valid CSS media query return var Variable to store result (true or false) |
Example: |
MatchMedia "(min-width: 600px) and (max-width: 1200px)" [myvar] |
Purpose: |
Set the App title. |
Category: |
App |
Syntax: |
SetAppTitle "title" title App/page title text (50 - 60 characters is recommended for better SEO) |
Example: |
SetAppTitle "Welcome page" |
Purpose: |
Set the App description. |
Category: |
App |
Syntax: |
SetAppDescription "description" description App/page description text (50 - 160 characters is recommended for better SEO)
|
Example: |
SetAppDescription "This is the application/page description text. It allows to show a descriptive text on Google search and other search engines results" |
Purpose: |
Allow acces to NeoScript subroutines from JavaScript (neosubroutine.subroutineName(param);). |
Category: |
App |
Syntax: |
NeoScriptToJS |
Example: |
NeoScriptToJS |
Purpose: |
Returns true if the device is online or false if it's not. This command ask to the web browser navigator object to get the information. |
Category: |
App |
Syntax: |
IsOnline [result var] |
Example: |
IsOnline [myvar] |
|
|