Commit 61e220e3 authored by Kjetil Thuen's avatar Kjetil Thuen

Use bower to handle external dependencies

parent 419dda02

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
target
components
.idea
.settings
.classpath
......
To get up and running:
$ npm install -g bower
$ cd src/main/webapp/
$ bower install
{
"name": "TabulationMobile",
"version": "0.0.1",
"ignore": [
"**/.*",
"node_modules",
"components"
],
"dependencies": {
"dojo": "1.8.3",
"dojox": "1.8.3",
"dijit": "1.8.3",
}
}
......@@ -6,14 +6,9 @@
<meta charset="utf-8">
<title>Nesstar Mobile</title>
<link href="http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojox/mobile/themes/iphone/iphone.css" rel="stylesheet"></link>
<link rel="stylesheet" type="text/css" href="css/overlay.css"></link>
<!-- <link rel="stylesheet" type="text/css" href="css/sidebar.css"/> -->
<!-- <link rel="stylesheet" type="text/css" href="css/style.css"> -->
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon-precomposed" href="images/apple-touch-icon.png">
<script src="js/dojo/dojo.js" data-dojo-config="async:true"></script>
</head>
......@@ -30,12 +25,14 @@
packages: [
{
name: 'nesstarmobile',
location: base + '/js/nesstarmobile'
location: base + '/js/'
}
]
};
})();
</script>
<script src="components/dojo/dojo.js" data-dojo-config="async: true"></script>
<script>
var splash;
......@@ -43,7 +40,7 @@
function(declare, dom, domStyle, fx) {
var SplashScreen = declare(null, {
overlayNode: 'splash',
endLoading: function() {
this.doFadeAndHiding();
},
......@@ -80,7 +77,7 @@
function(parser) {
parser.parse();
});
})
</script>
<!-- select study view -->
......
//>>built
define("dijit/BackgroundIframe",["require","./main","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/sniff","dojo/_base/window"],function(_1,_2,_3,_4,_5,_6,on,_7,_8){
var _9=new function(){
var _a=[];
this.pop=function(){
var _b;
if(_a.length){
_b=_a.pop();
_b.style.display="";
}else{
if(_7("ie")<9){
var _c=_3["dojoBlankHtmlUrl"]||_1.toUrl("dojo/resources/blank.html")||"javascript:\"\"";
var _d="<iframe src='"+_c+"' role='presentation'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";
_b=_8.doc.createElement(_d);
}else{
_b=_4.create("iframe");
_b.src="javascript:\"\"";
_b.className="dijitBackgroundIframe";
_b.setAttribute("role","presentation");
_5.set(_b,"opacity",0.1);
}
_b.tabIndex=-1;
}
return _b;
};
this.push=function(_e){
_e.style.display="none";
_a.push(_e);
};
}();
_2.BackgroundIframe=function(_f){
if(!_f.id){
throw new Error("no id");
}
if(_7("ie")||_7("mozilla")){
var _10=(this.iframe=_9.pop());
_f.appendChild(_10);
if(_7("ie")<7||_7("quirks")){
this.resize(_f);
this._conn=on(_f,"resize",_6.hitch(this,function(){
this.resize(_f);
}));
}else{
_5.set(_10,{width:"100%",height:"100%"});
}
}
};
_6.extend(_2.BackgroundIframe,{resize:function(_11){
if(this.iframe){
_5.set(this.iframe,{width:_11.offsetWidth+"px",height:_11.offsetHeight+"px"});
}
},destroy:function(){
if(this._conn){
this._conn.remove();
this._conn=null;
}
if(this.iframe){
_9.push(this.iframe);