-
Notifications
You must be signed in to change notification settings - Fork 0
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 #18 from webability-go/late-night
Late night
- Loading branch information
Showing
66 changed files
with
3,668 additions
and
3,207 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,11 @@ | ||
package wajaf | ||
|
||
type CodeNode NodeDef | ||
|
||
func NewCodeNode(id string, tp string, code string) CodeElement { | ||
|
||
c := NewNode("code", tp) | ||
c.SetID(id) | ||
c.SetData(code) | ||
return c | ||
} |
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,13 @@ | ||
package wajaf | ||
|
||
type ColorFieldElement NodeDef | ||
|
||
func NewColorFieldElement(id string) ColorFieldElement { | ||
|
||
e := NewNode("element", "colorfieldElement") | ||
e.SetID(id) | ||
|
||
e.RegisterKnownAttributes([]string{"display", "style", "classname", "left", "width", "right", "top", "height", "bottom"}) | ||
|
||
return e | ||
} |
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,31 @@ | ||
# The main example site configuration file | ||
|
||
# Where the pages of our CMS is | ||
# pagesdir can be relative to the xamboo run directory, or absolute | ||
pagesdir=./wajaf/examples/pages/ | ||
|
||
# The main page to use for / (must exists in the pages) | ||
mainpage=home | ||
errorpage=errors/page | ||
errorblock=errors/block | ||
|
||
# The default version of the pages for this site. It is highly recommended to never change 'base' unless you perfectly know what you are doing (advanced configuration) | ||
version=base | ||
# The default language of the pages for this site. You may change with your local language | ||
language=en | ||
|
||
# If the pages of the site accept parameters as URL by default (like this: /the-page/param1/param2/param3 ) | ||
# boolean: yes/no, true/false, 0/1 | ||
acceptpathparameters=yes | ||
|
||
# Master LIBRARY | ||
# plugin.app.library=./applications/webability.info/xmodules/app/app.so | ||
|
||
# Default app to use (must exist in plugin libraries) | ||
# app=app | ||
|
||
# The context we will use and the app name by default | ||
# userdatasource=xmodules | ||
# datasource=xmodules | ||
|
||
jspath=./wajaf/js/ |
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 @@ | ||
../../../xdommask/examples/pages/ex-simpledommask/ |
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
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
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 |
---|---|---|
@@ -1,54 +1,54 @@ | ||
<script language="javascript" type="text/javascript" src="/wajaf/system/core.js"></script> | ||
<script language="javascript" type="text/javascript" src="/wajaf/managers/eventManager.js"></script> | ||
<script language="javascript" type="text/javascript" src="/wajaf/managers/ajaxManager.js"></script> | ||
|
||
Click to <span onclick="docall();" style="cursor: pointer; text-decoration: underline; background-color: red;">create a request</span>.<br /> | ||
Click to <span onclick="doabort();" style="cursor: pointer; text-decoration: underline; background-color: red;">abort the request</span> (be faster than the network).<br /> | ||
<br /> | ||
|
||
<div id="div1" style="position: relative; min-height: 100px; width: 95%; margin-left: auto; margin-right: auto; border: 2px solid blue;"> | ||
Waiting...<br /> | ||
</div> | ||
|
||
Received code from server:<br /> | ||
<div id="div2" style="position: relative; min-height: 10px; width: 95%; margin-left: auto; margin-right: auto; border: 2px solid blue;"> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
|
||
var r = null; | ||
|
||
function loaded(rq) | ||
{ | ||
$('div2').innerHTML = rq.responseText; | ||
// unlink the request | ||
r = null; | ||
} | ||
|
||
function statefeedback(type, err, msg) | ||
{ | ||
if (type == 'wait') | ||
$('div1').innerHTML += 'A wait state has happened: type=' + type + ' readyState=' + err + ' message=' + msg + '<br />'; | ||
else | ||
$('div1').innerHTML += 'An error has happened: type=' + type + ' error=' + err + ' message=' + msg + '<br />'; | ||
} | ||
|
||
function docall() | ||
{ | ||
if (r == null) | ||
{ | ||
r = ajax('/?P=dataset1', 'get', null, loaded, true); | ||
r.addStateFeedback(statefeedback); | ||
} | ||
} | ||
|
||
function doabort() | ||
{ | ||
if (r != null) | ||
{ | ||
r.abort(); | ||
r = null; | ||
} | ||
} | ||
|
||
</script> | ||
<script language="javascript" type="text/javascript" src="/wajaf/system/core.js"></script> | ||
<script language="javascript" type="text/javascript" src="/wajaf/managers/eventManager.js"></script> | ||
<script language="javascript" type="text/javascript" src="/wajaf/managers/ajaxManager.js"></script> | ||
|
||
Click to <span onclick="docall();" style="cursor: pointer; text-decoration: underline; background-color: red;">create a request</span>.<br /> | ||
Click to <span onclick="doabort();" style="cursor: pointer; text-decoration: underline; background-color: red;">abort the request</span> (be faster than the network).<br /> | ||
<br /> | ||
|
||
<div id="div1" style="position: relative; min-height: 100px; width: 95%; margin-left: auto; margin-right: auto; border: 2px solid blue;"> | ||
Waiting...<br /> | ||
</div> | ||
|
||
Received code from server:<br /> | ||
<div id="div2" style="position: relative; min-height: 10px; width: 95%; margin-left: auto; margin-right: auto; border: 2px solid blue;"> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
|
||
var r = null; | ||
|
||
function loaded(rq) | ||
{ | ||
$('div2').innerHTML = rq.responseText; | ||
// unlink the request | ||
r = null; | ||
} | ||
|
||
function statefeedback(type, err, msg) | ||
{ | ||
if (type == 'wait') | ||
$('div1').innerHTML += 'A wait state has happened: type=' + type + ' readyState=' + err + ' message=' + msg + '<br />'; | ||
else | ||
$('div1').innerHTML += 'An error has happened: type=' + type + ' error=' + err + ' message=' + msg + '<br />'; | ||
} | ||
|
||
function docall() | ||
{ | ||
if (r == null) | ||
{ | ||
r = ajax('/?P=dataset1', 'get', null, loaded, true); | ||
r.addStateFeedback(statefeedback); | ||
} | ||
} | ||
|
||
function doabort() | ||
{ | ||
if (r != null) | ||
{ | ||
r.abort(); | ||
r = null; | ||
} | ||
} | ||
|
||
</script> |
Oops, something went wrong.