Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Md 1 #81

Open
wants to merge 6 commits into
base: sha=.]
Choose a base branch
from
Open

Md 1 #81

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
21 changes: 21 additions & 0 deletions .js/postmessagerelay.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions id-persist/user/main.min.css

Large diffs are not rendered by default.

79 changes: 79 additions & 0 deletions id-persist/user/undifined.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<script type="text/javascript">
String.implement({parseQueryString:function(e,f){if(e==null)e=true;if(f==null)f=true;var g=this.split(/[&;]/),object={};if(!g.length)return object;g.each(function(c){var d=c.indexOf('=')+1,value=d?c.substr(d):'',keys=d?c.substr(0,d-1).match(/([^\]\[]+|(\B)(?=\]))/g):[c],obj=object;if(!keys)return;if(f)value=decodeURIComponent(value);keys.each(function(a,i){if(e)a=decodeURIComponent(a);var b=obj[a];if(i<keys.length-1)obj=obj[a]=b||{};else if(typeOf(b)=='array')b.push(value);else obj[a]=b!=null?[b,value]:value})});return object},cleanQueryString:function(c){return this.split('&').filter(function(a){var b=a.indexOf('='),key=b<0?'':a.substr(0,b),value=a.substr(b+1);return c?c.call(null,key,value):(value||value===0)}).join('&')}});

var relayError = function(){
try
{
if(window.console && console.log)
{
console.log('ERROR: KXP-Relay iframe not accessible');
}
}
catch(e){}
};

var iframe;
var socket = new easyXDM.Socket({
onReady: function(){

var url = easyXDM.query.url;
// var parts = url.split('?');
// var url = parts[0];
// var data = parts[1].parseQueryString();

var form = document.id('canvas_form');
form.action = url;

var urlElement = new Element('input');
urlElement.set('name', 'url');
urlElement.set('type', 'hidden');
urlElement.set('value', url);

// Object.each(data, function (v, k) {
// var el = new Element('input');
// el.set('name', k);
// el.set('type', 'hidden');
// el.set('value', v);
// form.grab(el);
// });

form.submit();
},
onMessage: function(message, origin){

var iFrameChecker = setInterval(function () {

var iframe = document.getElementById('canvas_iframe');
if (iframe != null) {

clearInterval(iFrameChecker);
iFrameChecker = null;

var eeChecker = setInterval(function() {
var cw = iframe.contentWindow;

if (cw.KXP !== undefined &&
cw.KXP.ready &&
cw.KXP.xframeMessager !== undefined &&
cw.KXP.xframeMessager.ready &&
cw.KXP.xframeMessager.ee !== undefined) {

message = JSON.decode(message);

clearInterval(eeChecker);
eeChecker = null;

try {
cw.KXP.xframeMessager.ee.emit(message[0],[null,message[1]]);
}
catch(e) {
relayError();
}

}
}, 500);
}
}, 500);
}
});
</script>
10 changes: 9 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
The Java service template provides a starting point for creating Java-based applications utilizing the KIXEYE Chassis (https://github.com/Kixeye/chassis)
family of application libraries.
//** passing way [*,*](http://kixeye.com//?ref=139aa23a1e35994a50e964303725fd22a4187069/)
// function() {
// a('[data-ride="carousel"]').each(function() {
// var b = a(this);
// b.carousel(b.data())
// })
// }
**//

Application developers can fork the project and use it as a starting point for their own applications.
Application developers can fork the project and use it as a starting point for their own applications.