From ce922983b7cb42c694a927b200817c2a605554cc Mon Sep 17 00:00:00 2001 From: Dave Page Date: Fri, 22 Aug 2008 15:46:32 +0100 Subject: [PATCH] Update iui --- iui/iui-logo-touch-icon.png | Bin 0 -> 2887 bytes iui/iui.css | 20 ++++++++-- iui/iui.js | 77 +++++++++++++++++++++++++++++++----- iui/iuix.css | 1 - iui/iuix.js | 1 - 5 files changed, 84 insertions(+), 15 deletions(-) create mode 100644 iui/iui-logo-touch-icon.png delete mode 100644 iui/iuix.css delete mode 100644 iui/iuix.js diff --git a/iui/iui-logo-touch-icon.png b/iui/iui-logo-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..8817b30228ef726acc996ced6d0219b9bfe9182a GIT binary patch literal 2887 zcmV-N3%K-&P)=)u(7#8LI?y1ff2edbfEi0NaDtTZSaxAPSQ>%GfC>4O_Ms8 zbKgl@r^z^(@a=nx^jNLl3Q4$~COh+;ckI6J`+oMVRtT+*9Fc6l`t@&)JlHsRq<13J zNc1ex=S28F*5~=04Kz2+Uv_)wL?3|*J0{$@-9T;|sg1{x+kOg*SDqHMutUn7eErH^ zeIdV(tDQ3S9scnPl77|}^^51E`BIyYgXX2VX@1JV-8yxl-;%TOnK`s74E(u@=BFH# zhqHpA&-A`UWG+34?B$=YXnx8;dDx25YnU#vF}Q;C#haL~RhLA%c%yWm+?d18$>~pT z-2~;KT*7OVzF5aynccaqCs2!0n@hBqFj_uxQn{y zwut%TRV%)J9igSma3z*--WkHU)d!P51#fx{k(Db|`S^32u!S>4KC~~kcCDstRFsSI zQOIY5i&w}*kL~M1UZQqlou1+1{y_F34BiCBO)mWHjoY|;_giF_*P)uU!XC*Xx^h(* zS2#YAm$<#>vjwen7DlJ9$Y-4N`R3O5e8hRy_wyvyC0RwHT$GPOei2>0h8Q`U@w}w< z7^k1El+l;KY%GnhzWxT{?ajB|fyEnvFS8-61kY3IbM=X*Al+!6*5WPlsYHd$l#9NP zQb?gut$gzva0Qbk!3x_;ufB$9Ph5aFjL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{AUu;By=e!S0sx*oj%!bIA%pMuqs6C;c%@^zH>Hge~e z&qP&tj^|n0pn-mA%0miIWHmOcT{x+<{^CTrdUc@&;VH>;qrTna3JWSyf0gaS9#>1I zyeOCOl;qy?t|3S3up4!K=3k5`59MOdq!*rCKBMvASdU30W0|&eUnTvOjF(g8b5o9@ zCzqwqpwsL4;cf%dQBl39uWP?9Jw|qnSY74EN$W?u%8V85Yf-!S&!9`5MR&Amyt^lr zHatSk3N?7BYnqhPtQ1SUPkNlRPg}&u4002ovPDHLkV1goEzRdst literal 0 HcmV?d00001 diff --git a/iui/iui.css b/iui/iui.css index 13ac521..9255846 100644 --- a/iui/iui.css +++ b/iui/iui.css @@ -1,4 +1,4 @@ -/* iui.css (c) 2007 by iUI Project Members, see LICENSE.txt for license */ +/* iui.css (c) 2007-8 by iUI Project Members, see LICENSE.txt for license */ body { margin: 0; font-family: Helvetica; @@ -230,7 +230,7 @@ body > .dialog { color: #999999; } -input { +input:not(input[type|=radio]):not(input[type|=checkbox]) { box-sizing: border-box; -webkit-box-sizing: border-box; width: 100%; @@ -244,6 +244,7 @@ input { body > .panel { box-sizing: border-box; + -moz-box-sizing: border-box; -webkit-box-sizing: border-box; padding: 10px; background: #c8c8c8 url(pinstripes.png); @@ -255,6 +256,7 @@ body > .panel { padding: 0; background: #FFFFFF; -webkit-border-radius: 10px; + -moz-border-radius: 10px; border: 1px solid #999999; text-align: right; font-size: 16px; @@ -272,8 +274,9 @@ fieldset > .row:last-child { border-bottom: none !important; } -.row > input { +.row > input:not(input[type|=radio]):not(input[type|=checkbox]) { box-sizing: border-box; + -moz-box-sizing: border-box; -webkit-box-sizing: border-box; margin: 0; border: none; @@ -281,6 +284,11 @@ fieldset > .row:last-child { height: 42px; background: none; } +.row > input[type|=radio], .row > input[type|=checkbox] { + margin: 7px 7px 0 0; + height: 25px; + width: 25px; +} .row > label { position: absolute; @@ -289,6 +297,12 @@ fieldset > .row:last-child { font-weight: bold; } +.row > span { + position: absolute; + padding: 12px 10px 0 110px; + margin: 0; +} + .row > .toggle { position: absolute; top: 6px; diff --git a/iui/iui.js b/iui/iui.js index 27de428..0402f5d 100644 --- a/iui/iui.js +++ b/iui/iui.js @@ -1,6 +1,6 @@ /* - Copyright (c) 2007, iUI Project Members - See LICENSE.txt for licensing terms + Copyright (c) 2007-8, iUI Project Members + See LICENSE.txt for licensing terms */ @@ -17,6 +17,7 @@ var hashPrefix = "#_"; var pageHistory = []; var newPageCount = 0; var checkTimer; +var hasOrientationEvent = false; // ************************************************************************************************* @@ -136,7 +137,22 @@ window.iui = if (child.nodeType == 1 && child.getAttribute("selected") == "true") return child; } - } + }, + isNativeUrl: function(href) + { + for(var i = 0; i < iui.nativeUrlPatterns.length; i++) + { + if(href.match(iui.nativeUrlPatterns[i])) return true; + } + return false; + }, + nativeUrlPatterns: [ + new RegExp("^http:\/\/maps.google.com\/maps\?"), + new RegExp("^mailto:"), + new RegExp("^tel:"), + new RegExp("^http:\/\/www.youtube.com\/watch\\?v="), + new RegExp("^http:\/\/www.youtube.com\/v\/") + ] }; // ************************************************************************************************* @@ -151,6 +167,11 @@ addEventListener("load", function(event) setTimeout(checkOrientAndLocation, 0); checkTimer = setInterval(checkOrientAndLocation, 300); }, false); + +addEventListener("unload", function(event) +{ + return; +}, false); addEventListener("click", function(event) { @@ -176,6 +197,10 @@ addEventListener("click", function(event) link.setAttribute("selected", "progress"); iui.showPageByHref(link.href, null, null, link, unselect); } + else if (iui.isNativeUrl(link.href)) + { + return; + } else if (!link.target) { link.setAttribute("selected", "progress"); @@ -198,23 +223,54 @@ addEventListener("click", function(event) } }, true); +function orientChangeHandler() +{ + var orientation=window.orientation; + switch(orientation) + { + case 0: + setOrientation("portrait"); + break; + + case 90: + case -90: + setOrientation("landscape"); + break; + } +} + +if (typeof window.onorientationchange == "object") +{ + window.onorientationchange=orientChangeHandler; + hasOrientationEvent = true; + setTimeout(orientChangeHandler, 0); +} + function checkOrientAndLocation() { - if (window.innerWidth != currentWidth) - { - currentWidth = window.innerWidth; - var orient = currentWidth == 320 ? "profile" : "landscape"; - document.body.setAttribute("orient", orient); - setTimeout(scrollTo, 100, 0, 1); + if (!hasOrientationEvent) + { + if (window.innerWidth != currentWidth) + { + currentWidth = window.innerWidth; + var orient = currentWidth == 320 ? "portrait" : "landscape"; + setOrientation(orient); + } } if (location.hash != currentHash) { - var pageId = location.hash.substr(hashPrefix.length) + var pageId = location.hash.substr(hashPrefix.length); iui.showPageById(pageId); } } +function setOrientation(orient) +{ + document.body.setAttribute("orient", orient); + setTimeout(scrollTo, 100, 0, 1); +} + function showDialog(page) { currentDialog = page; @@ -341,6 +397,7 @@ function encodeForm(form) var args = []; encode(form.getElementsByTagName("input")); + encode(form.getElementsByTagName("textarea")); encode(form.getElementsByTagName("select")); return args; } diff --git a/iui/iuix.css b/iui/iuix.css deleted file mode 100644 index 1a19690..0000000 --- a/iui/iuix.css +++ /dev/null @@ -1 +0,0 @@ -body{margin:0;font-family:Helvetica;background:#FFF;color:#000;overflow-x:hidden;-webkit-user-select:none;-webkit-text-size-adjust:none;}body>*:not(.toolbar){display:none;position:absolute;margin:0;padding:0;left:0;top:45px;width:100%;min-height:372px;}body[orient="landscape"]>*:not(.toolbar){min-height:268px;}body>*[selected="true"]{display:block;}a[selected],a:active{background-color:#194fdb!important;background-image:url(listArrowSel.png),url(selection.png)!important;background-repeat:no-repeat,repeat-x;background-position:right center,left top;color:#FFF!important;}a[selected="progress"]{background-image:url(loading.gif),url(selection.png)!important;}body>.toolbar{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border-bottom:1px solid #2d3642;border-top:1px solid #6d84a2;padding:10px;height:45px;background:url(toolbar.png) #6d84a2 repeat-x;}.toolbar>h1{position:absolute;overflow:hidden;left:50%;margin:1px 0 0 -75px;height:45px;font-size:20px;width:150px;font-weight:bold;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;text-align:center;text-overflow:ellipsis;white-space:nowrap;color:#FFF;}body[orient="landscape"]>.toolbar>h1{margin-left:-125px;width:250px;}.button{position:absolute;overflow:hidden;top:8px;right:6px;margin:0;border-width:0 5px;padding:0 3px;width:auto;height:30px;line-height:30px;font-family:inherit;font-size:12px;font-weight:bold;color:#FFF;text-shadow:rgba(0,0,0,0.6) 0 -1px 0;text-overflow:ellipsis;text-decoration:none;white-space:nowrap;background:none;-webkit-border-image:url(toolButton.png) 0 5 0 5;}.blueButton{-webkit-border-image:url(blueButton.png) 0 5 0 5;border-width:0 5px;}.leftButton{left:6px;right:auto;}#backButton{display:none;left:6px;right:auto;padding:0;max-width:55px;border-width:0 8px 0 14px;-webkit-border-image:url(backButton.png) 0 8 0 14;}.whiteButton,.grayButton{display:block;border-width:0 12px;padding:10px;text-align:center;font-size:20px;font-weight:bold;text-decoration:inherit;color:inherit;}.whiteButton{-webkit-border-image:url(whiteButton.png) 0 12 0 12;text-shadow:rgba(255,255,255,0.7) 0 1px 0;}.grayButton{-webkit-border-image:url(grayButton.png) 0 12 0 12;color:#FFF;}body>ul>li{position:relative;margin:0;border-bottom:1px solid #E0E0E0;padding:8px 0 8px 10px;font-size:20px;font-weight:bold;list-style:none;}body>ul>li.group{position:relative;top:-1px;margin-bottom:-2px;border-top:1px solid #7d7d7d;border-bottom:1px solid #999;padding:1px 10px;background:url(listGroup.png) repeat-x;font-size:17px;font-weight:bold;text-shadow:rgba(0,0,0,0.4) 0 1px 0;color:#FFF;}body>ul>li.group:first-child{top:0;border-top:none;}body>ul>li>a{display:block;margin:-8px 0 -8px -10px;padding:8px 32px 8px 10px;text-decoration:none;color:inherit;background:url(listArrow.png) no-repeat right center;}a[target="_replace"]{box-sizing:border-box;-webkit-box-sizing:border-box;padding-top:25px;padding-bottom:25px;font-size:18px;color:cornflowerblue;background-color:#FFF;background-image:none;}body>.dialog{top:0;width:100%;min-height:417px;z-index:2;background:rgba(0,0,0,0.8);padding:0;text-align:right;}.dialog>fieldset{box-sizing:border-box;-webkit-box-sizing:border-box;width:100%;margin:0;border:none;border-top:1px solid #6d84a2;padding:10px 6px;background:url(toolbar.png) #7388a5 repeat-x;}.dialog>fieldset>h1{margin:0 10px 0 10px;padding:0;font-size:20px;font-weight:bold;color:#FFF;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;text-align:center;}.dialog>fieldset>label{position:absolute;margin:16px 0 0 6px;font-size:14px;color:#999;}input{box-sizing:border-box;-webkit-box-sizing:border-box;width:100%;margin:8px 0 0 0;padding:6px 6px 6px 44px;font-size:16px;font-weight:normal;}body>.panel{box-sizing:border-box;-webkit-box-sizing:border-box;padding:10px;background:#c8c8c8 url(pinstripes.png);}.panel>fieldset{position:relative;margin:0 0 20px 0;padding:0;background:#FFF;-webkit-border-radius:10px;border:1px solid #999;text-align:right;font-size:16px;}.row{position:relative;min-height:42px;border-bottom:1px solid #999;-webkit-border-radius:0;text-align:right;}fieldset>.row:last-child{border-bottom:none!important;}.row>input{box-sizing:border-box;-webkit-box-sizing:border-box;margin:0;border:none;padding:12px 10px 0 110px;height:42px;background:none;}.row>label{position:absolute;margin:0 0 0 14px;line-height:42px;font-weight:bold;}.row>.toggle{position:absolute;top:6px;right:6px;width:100px;height:28px;}.toggle{border:1px solid #888;-webkit-border-radius:6px;background:#FFF url(toggle.png) repeat-x;font-size:19px;font-weight:bold;line-height:30px;}.toggle[toggled="true"]{border:1px solid #143fae;background:#194fdb url(toggleOn.png) repeat-x;}.toggleOn{display:none;position:absolute;width:60px;text-align:center;left:0;top:0;color:#FFF;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;}.toggleOff{position:absolute;width:60px;text-align:center;right:0;top:0;color:#666;}.toggle[toggled="true"]>.toggleOn{display:block;}.toggle[toggled="true"]>.toggleOff{display:none;}.thumb{position:absolute;top:-1px;left:-1px;width:40px;height:28px;border:1px solid #888;-webkit-border-radius:6px;background:#fff url(thumb.png) repeat-x;}.toggle[toggled="true"]>.thumb{left:auto;right:-1px;}.panel>h2{margin:0 0 8px 14px;font-size:inherit;font-weight:bold;color:#4d4d70;text-shadow:rgba(255,255,255,0.75) 2px 2px 0;}#preloader{display:none;background-image:url(loading.gif),url(selection.png),url(blueButton.png),url(listArrowSel.png),url(listGroup.png);} \ No newline at end of file diff --git a/iui/iuix.js b/iui/iuix.js deleted file mode 100644 index 3b2b37f..0000000 --- a/iui/iuix.js +++ /dev/null @@ -1 +0,0 @@ -(function(){var _1=20;var _2=0;var _3=null;var _4=null;var _5=0;var _6=location.hash;var _7="#_";var _8=[];var _9=0;var _a;window.iui={showPage:function(_b,_c){if(_b){if(_4){_4.removeAttribute("selected");_4=null;}if(hasClass(_b,"dialog")){showDialog(_b);}else{var _d=_3;_3=_b;if(_d){setTimeout(slidePages,0,_d,_b,_c);}else{updatePage(_b,_d);}}}},showPageById:function(_e){var _f=$(_e);if(_f){var _10=_8.indexOf(_e);var _11=_10!=-1;if(_11){_8.splice(_10,_8.length);}iui.showPage(_f,_11);}},showPageByHref:function(_12,_13,_14,_15,cb){var req=new XMLHttpRequest();req.onerror=function(){if(cb){cb(false);}};req.onreadystatechange=function(){if(req.readyState==4){if(_15){replaceElementWithSource(_15,req.responseText);}else{var _18=document.createElement("div");_18.innerHTML=req.responseText;iui.insertPages(_18.childNodes);}if(cb){setTimeout(cb,1000,true);}}};if(_13){req.open(_14||"GET",_12,true);req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");req.setRequestHeader("Content-Length",_13.length);req.send(_13.join("&"));}else{req.open(_14||"GET",_12,true);req.send(null);}},insertPages:function(_19){var _1a;for(var i=0;i<_19.length;++i){var _1c=_19[i];if(_1c.nodeType==1){if(!_1c.id){_1c.id="__"+(++_9)+"__";}var _1d=$(_1c.id);if(_1d){_1d.parentNode.replaceChild(_1c,_1d);}else{document.body.appendChild(_1c);}if(_1c.getAttribute("selected")=="true"||!_1a){_1a=_1c;}--i;}}if(_1a){iui.showPage(_1a);}},getSelectedPage:function(){for(var _1e=document.body.firstChild;_1e;_1e=_1e.nextSibling){if(_1e.nodeType==1&&_1e.getAttribute("selected")=="true"){return _1e;}}}};addEventListener("load",function(_1f){var _20=iui.getSelectedPage();if(_20){iui.showPage(_20);}setTimeout(preloadImages,0);setTimeout(checkOrientAndLocation,0);_a=setInterval(checkOrientAndLocation,300);},false);addEventListener("click",function(_21){var _22=findParent(_21.target,"a");if(_22){function unselect(){_22.removeAttribute("selected");}if(_22.href&&_22.hash&&_22.hash!="#"){_22.setAttribute("selected","true");iui.showPage($(_22.hash.substr(1)));setTimeout(unselect,500);}else{if(_22==$("backButton")){history.back();}else{if(_22.getAttribute("type")=="submit"){submitForm(findParent(_22,"form"));}else{if(_22.getAttribute("type")=="cancel"){cancelDialog(findParent(_22,"form"));}else{if(_22.target=="_replace"){_22.setAttribute("selected","progress");iui.showPageByHref(_22.href,null,null,_22,unselect);}else{if(!_22.target){_22.setAttribute("selected","progress");iui.showPageByHref(_22.href,null,null,null,unselect);}else{return;}}}}}}_21.preventDefault();}},true);addEventListener("click",function(_23){var div=findParent(_23.target,"div");if(div&&hasClass(div,"toggle")){div.setAttribute("toggled",div.getAttribute("toggled")!="true");_23.preventDefault();}},true);function checkOrientAndLocation(){if(window.innerWidth!=_5){_5=window.innerWidth;var _25=_5==320?"profile":"landscape";document.body.setAttribute("orient",_25);setTimeout(scrollTo,100,0,1);}if(location.hash!=_6){var _26=location.hash.substr(_7.length);iui.showPageById(_26);}}function showDialog(_27){_4=_27;_27.setAttribute("selected","true");if(hasClass(_27,"dialog")&&!_27.target){showForm(_27);}}function showForm(_28){_28.onsubmit=function(_29){_29.preventDefault();submitForm(_28);};_28.onclick=function(_2a){if(_2a.target==_28&&hasClass(_28,"dialog")){cancelDialog(_28);}};}function cancelDialog(_2b){_2b.removeAttribute("selected");}function updatePage(_2c,_2d){if(!_2c.id){_2c.id="__"+(++_9)+"__";}location.href=_6=_7+_2c.id;_8.push(_2c.id);var _2e=$("pageTitle");if(_2c.title){_2e.innerHTML=_2c.title;}if(_2c.localName.toLowerCase()=="form"&&!_2c.target){showForm(_2c);}var _2f=$("backButton");if(_2f){var _30=$(_8[_8.length-2]);if(_30&&!_2c.getAttribute("hideBackButton")){_2f.style.display="inline";_2f.innerHTML=_30.title?_30.title:"Back";}else{_2f.style.display="none";}}}function slidePages(_31,_32,_33){var _34=(_33?_31:_32).getAttribute("axis");if(_34=="y"){(_33?_31:_32).style.top="100%";}else{_32.style.left="100%";}_32.setAttribute("selected","true");scrollTo(0,1);clearInterval(_a);var _35=100;slide();var _36=setInterval(slide,_2);function slide(){_35-=_1;if(_35<=0){_35=0;if(!hasClass(_32,"dialog")){_31.removeAttribute("selected");}clearInterval(_36);_a=setInterval(checkOrientAndLocation,300);setTimeout(updatePage,0,_32,_31);}if(_34=="y"){_33?_31.style.top=(100-_35)+"%":_32.style.top=_35+"%";}else{_31.style.left=(_33?(100-_35):(_35-100))+"%";_32.style.left=(_33?-_35:_35)+"%";}}}function preloadImages(){var _37=document.createElement("div");_37.id="preloader";document.body.appendChild(_37);}function submitForm(_38){iui.showPageByHref(_38.action||"POST",encodeForm(_38),_38.method);}function encodeForm(_39){function encode(_3a){for(var i=0;i<_3a.length;++i){if(_3a[i].name){args.push(_3a[i].name+"="+escape(_3a[i].value));}}}var _3c=[];encode(_39.getElementsByTagName("input"));encode(_39.getElementsByTagName("select"));return _3c;}function findParent(_3d,_3e){while(_3d&&(_3d.nodeType!=1||_3d.localName.toLowerCase()!=_3e)){_3d=_3d.parentNode;}return _3d;}function hasClass(_3f,_40){var re=new RegExp("(^|\\s)"+_40+"($|\\s)");return re.exec(_3f.getAttribute("class"))!=null;}function replaceElementWithSource(_42,_43){var _44=_42.parentNode;var _45=_42;while(_44.parentNode!=document.body){_44=_44.parentNode;_45=_45.parentNode;}var _46=document.createElement(_45.localName);_46.innerHTML=_43;_44.removeChild(_45);while(_46.firstChild){_44.appendChild(_46.firstChild);}}function $(id){return document.getElementById(id);}function ddd(){console.log.apply(console,arguments);}})(); \ No newline at end of file -- 2.39.5