From: hackbard Date: Sun, 19 Jun 2016 21:16:22 +0000 (+0200) Subject: initial checkin (start dialog basically finished) X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=642f1381cc9653384f8e8ece595bf8201d1f431b;p=outofuni%2Fstafforg.git initial checkin (start dialog basically finished) --- 642f1381cc9653384f8e8ece595bf8201d1f431b diff --git a/app/config.xml b/app/config.xml new file mode 100644 index 0000000..a9ded24 --- /dev/null +++ b/app/config.xml @@ -0,0 +1,26 @@ + + + StaffOrg + + Crew organization app. + + + hackbard + + + + + + + + + + + + + + + + + + diff --git a/app/www/css/index.css b/app/www/css/index.css new file mode 100644 index 0000000..c48c225 --- /dev/null +++ b/app/www/css/index.css @@ -0,0 +1,62 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +html { + height: 100%; +} + +body { + height: 100%; + margin: 0; + background-color: black; +} + +#start { + width: 100%; + display: none; +} + +.startbtn { + width: 16%; + height: 20%; + margin-left: 3%; + margin-top: 20%; + float: left; +} + +#clock { + display: none; +} + +#roster { + display: none; +} + +#ideas { + display: none; +} + +#todo { + display: none; +} + +#admin { + display: none; +} + diff --git a/app/www/index.html b/app/www/index.html new file mode 100644 index 0000000..b0777cc --- /dev/null +++ b/app/www/index.html @@ -0,0 +1,62 @@ + + + + + + + + + StaffOrg + + + + + + + + + + + + + + +
+ + + + + +
+
+
+
+
+ + + diff --git a/app/www/js/index.js b/app/www/js/index.js new file mode 100644 index 0000000..98eaa9f --- /dev/null +++ b/app/www/js/index.js @@ -0,0 +1,75 @@ +/* + * stafforg: crew organizaion app + * author: hackbard@hackdaworld.org + * + */ + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +var stafforg = { + init: function() { + document.addEventListener('deviceready',this.startup,false); + window.addEventListener('orientationchange',function() { + setTimeout(function() { + cl("orientation change ..."); + },200); + }); + }, + startup: function() { + cl("starting stafforg app ..."); + // ui + stafforg.activate_subapp('start'); + $('.startbtn').click(function(event) { + cl("clicked "+event.target.id); + stafforg.event_action(event,'start'); + }); + // db + }, + dbcb: function() { + }, + activate_subapp: function(sapp) { + $('.startbtn').each(function() { + var sappname=this.id.replace(/^sel/,''); + var sappid='#'+sappname; + $(sappid).css('height','100%'); + if(sappname==sapp) + $(sappid).css('display','block'); + else + $(sappid).css('display','none'); + }); + if(sapp=='start') { + var sappid='#'+sapp; + $(sappid).css('height','100%'); + $(sappid).css('display','block'); + } + }, + event_action: function() { + } +}; + +$(document).ready(function() { + if('cordova' in window) { + stafforg.init(); + } + else { + stafforg.startup(); + } +}); +