Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Commit

Permalink
Added the touch folder, required for sencha cmd apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Kosmaczewski committed Nov 29, 2012
1 parent 7998466 commit cf95eaf
Show file tree
Hide file tree
Showing 1,105 changed files with 425,680 additions and 0 deletions.
13 changes: 13 additions & 0 deletions touch/cmd/sencha.cfg
@@ -0,0 +1,13 @@
# This is the SDK version. By defining this property, we are declaring this
# folder to be an SDK distribution.
framework.name=touch
framework.version=2.1.0.447
framework.classpath=${framework.dir}/src

#------------------------------------------------------

# This is the minimum required Sencha Cmd version:
framework.cmd.minver=3.0.0.141

# This is the current version of the Sencha Cmd at the time of this SDK release:
framework.cmd.version=3.0.0.250
47 changes: 47 additions & 0 deletions touch/microloader/development.js
@@ -0,0 +1,47 @@
/**
* Sencha Blink - Development
* @author Jacky Nguyen <jacky@sencha.com>
*/
(function() {
function write(content) {
document.write(content);
}

function meta(name, content) {
write('<meta name="' + name + '" content="' + content + '">');
}

var xhr = new XMLHttpRequest();
xhr.open('GET', 'app.json', false);
xhr.send(null);

var options = eval("(" + xhr.responseText + ")"),
scripts = options.js || [],
styleSheets = options.css || [],
i, ln, path;

meta('viewport', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no');
meta('apple-mobile-web-app-capable', 'yes');
meta('apple-touch-fullscreen', 'yes');

for (i = 0,ln = styleSheets.length; i < ln; i++) {
path = styleSheets[i];

if (typeof path != 'string') {
path = path.path;
}

write('<link rel="stylesheet" href="'+path+'">');
}

for (i = 0,ln = scripts.length; i < ln; i++) {
path = scripts[i];

if (typeof path != 'string') {
path = path.path;
}

write('<script src="'+path+'"></'+'script>');
}

})();

0 comments on commit cf95eaf

Please sign in to comment.