From 83e010deaec711272583e18f7481d04e80d5e7e3 Mon Sep 17 00:00:00 2001 From: Tim Brust Date: Wed, 1 Jul 2020 18:16:48 +0200 Subject: [PATCH] chore: removes old demo project. closes #52 --- .gitignore | 15 +----- .npmignore | 1 - demo/config.xml | 44 --------------- demo/www/css/index.css | 119 ---------------------------------------- demo/www/img/logo.png | Bin 21813 -> 0 bytes demo/www/index.html | 68 ----------------------- demo/www/js/index.js | 120 ----------------------------------------- package.json | 2 +- 8 files changed, 2 insertions(+), 367 deletions(-) delete mode 100644 demo/config.xml delete mode 100644 demo/www/css/index.css delete mode 100644 demo/www/img/logo.png delete mode 100644 demo/www/index.html delete mode 100644 demo/www/js/index.js diff --git a/.gitignore b/.gitignore index b847a2b..5e2b428 100644 --- a/.gitignore +++ b/.gitignore @@ -12,18 +12,5 @@ Thumbs.db *.swp *.user -demo/hooks/ -demo/platforms/ -demo/plugins/ -/node_modules/ +node_modules .vscode/ - - - - - - - - - - diff --git a/.npmignore b/.npmignore index e02b299..45e3c38 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,3 @@ .* appveyor.yml -demo tests diff --git a/demo/config.xml b/demo/config.xml deleted file mode 100644 index 2b9c1ab..0000000 --- a/demo/config.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - ScreenOrientationDemo - - A sample Apache Cordova application that showcases the ScreenOrientation plugin. - - - Apache Cordova Team - - - - - - - - - - - - - - - - - diff --git a/demo/www/css/index.css b/demo/www/css/index.css deleted file mode 100644 index bb118ff..0000000 --- a/demo/www/css/index.css +++ /dev/null @@ -1,119 +0,0 @@ -/* - * 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. - */ -* { - -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ -} - -body { - -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ - -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ - -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ - background-color:#E4E4E4; - background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); - background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); - background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); - background-image:-webkit-gradient( - linear, - left top, - left bottom, - color-stop(0, #A7A7A7), - color-stop(0.51, #E4E4E4) - ); - background-attachment:fixed; - font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif; - font-size:12px; - height:100%; - margin:0px; - padding:0px; - padding-top:20px; - width:100%; -} - -/* Portrait layout (default) */ -.app { - text-align:center; -} - -/* Landscape layout (with min-width) */ -@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) { - .app { - background-position:left center; - padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */ - margin:-90px 0px 0px -198px; /* offset vertical: half of image height */ - /* offset horizontal: half of image width and text area width */ - } -} - -button { - border:solid 1px #946A4b; - background:#666; - color:#fff; - border-radius:4px; - -webkit-border-radius:4px; - font-size:12px; - - margin:8px; - padding:6px; - width:128px; -} - -h1 { - font-size:24px; - font-weight:normal; - margin:0px; - overflow:visible; - padding:0px; - text-align:center; -} - -.event { - border-radius:4px; - -webkit-border-radius:4px; - color:#FFFFFF; - font-size:12px; - margin:0px 30px; - padding:2px 0px; -} - -.event.listening { - background-color:#333333; - display:block; -} - -.event.received { - background-color:#4B946A; - display:none; -} - -@keyframes fade { - from { opacity: 1.0; } - 50% { opacity: 0.4; } - to { opacity: 1.0; } -} - -@-webkit-keyframes fade { - from { opacity: 1.0; } - 50% { opacity: 0.4; } - to { opacity: 1.0; } -} - -.blink { - animation:fade 3000ms infinite; - -webkit-animation:fade 3000ms infinite; -} diff --git a/demo/www/img/logo.png b/demo/www/img/logo.png deleted file mode 100644 index 1266df72e71b1a6e3b8e99409db2b9792b55a89d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 21813 zcmV*iKuy1iP)Oz@Z0f2-7z;ux~ zO9+4z06=<WDR*FRcSTFz-W=q650N5=6FiBTtNC2?60Km==3$g$R3;-}uh=nNt z1bYBr$Ri_o0EC$U6h`t_Jn<{85a%iY0C<_QJh>z}MS)ugEpZ1|S1ukX&Pf+56gFW3 zVVXcL!g-k)GJ!M?;PcD?0HBc-5#WRK{dmp}uFlRjj{U%*%WZ25jX{P*?XzTzZ-GF^d31o+^>%=Ap99M6&ogks$0k4OBs z3;+Bb(;~!4V!2o<6ys46agIcqjPo+3B8fthDa9qy|77CdEc*jK-!%ZRYCZvbku9iQ zV*~a}ClFY4z~c7+0P?$U!PF=S1Au6Q;m>#f??3%Vpd|o+W=WE9003S@Bra6Svp>fO z002awfhw>;8}z{#EWidF!3EsG3;bXU&9EIRU@z1_ z9W=mEXoiz;4lcq~xDGvV5BgyUp1~-*fe8db$Osc*A=-!mVv1NJjtCc-h4>-CNCXm# zBp}I%6j35eku^v$Qi@a{RY)E3J#qp$hg?Rwkvqr$GJ^buyhkyVfwECO)C{#lxu`c9 zghrwZ&}4KmnvWKso6vH!8a<3Qq36)6Xb;+tK10Vaz~~qUGsJ8#F2=(`u{bOVlVi)V zBCHIn#u~6ztOL7=^<&SmcLWlFMZgI*1b0FpVIDz9SWH+>*hr`#93(Um+6gxa1B6k+ zCnA%mOSC4s5&6UzVlpv@SV$}*))J2sFA#f(L&P^E5{W}HC%KRUNwK6<(h|}}(r!{C z=`5+6G)NjFlgZj-YqAG9lq?`C$c5yc>d>VnA`E_*3F2Qp##d8RZb= z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*NUFyIEQ@3 zB`jA^kz68ORmQ)nz$Q&g*DCy{DsZ&8#Lli{KA1Hh8c$&ti3|rvW~h5kaea(rGPJ;C z20LX0D$0!ZB3p^i2v~W_{j>g61w5-v`3777)I9Sb?Ozm;_eInj&kCrSnb%WDQ5~#V zPLi(j)6Np*NK+s?5tq)Wq&x{wbBVOdqOOXV0969kENRL)+%75rxA6YV8bmW!kg{2{ zQjs&m8TP13k;z#g)qyDrfLSMy@oILcsz}y4)KwNEAS(cvO8`7G)t^>I24PD?{n|T zEKv7c;1%l5tfP7|P1k$6W%$y&w^#s^psT6OSR{!bQAut)G;tXKck)l<-dU_p$vnnHy7jn%a?u%%qqB<>9 zm>i`Xu~~yVP1}B)0;|g4K{-PjOJp~*sH5sp@S0ICSN63ARL*!FRc%(3fVD`{suFOQ zNmG=0{b@i_f!#wXiKyRLnTn>2-=Pe1ATM^0ob#kVuOdz9H7Gf&NL504wLq3;EUFwR zVhvE>XqTk~a+Why)kse}Q(2qJp_Qr>-xWDab=Ca2>MvLSsGyFk6)z*^?yl!3F# z1Szvc&w)BUP^;RmRgzm!0mNmJ6J^d-mAZQ>`L3++k7|Owt_OckN4;_qwhEY!4bn28 zqJp)noH@0Cx_^(*-Zr0B!oSqJ*W&4K3;r<8|xg ztAH@;9BKNij&$YMA+WjTgswtiagK?>74|Q4)XM0xV*|C0gq;S^Cn-H&uRxu(vz2Gx zR*f|Al-JGE6u;3FprZ=M&%)U`Hwk73;-Us^RVCuo5;VQ - - - - - - - - - - Hello World - - -
-

Apache Cordova

- -

Set screen.orientation.lock();

-
- - -
-
- - -
-
- -
- -

Listen for events

-
- - -
-
- - - - diff --git a/demo/www/js/index.js b/demo/www/js/index.js deleted file mode 100644 index 1210f48..0000000 --- a/demo/www/js/index.js +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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 app = { - // Application Constructor - initialize: function() { - this.bindEvents(); - }, - // Bind Event Listeners - // - // Bind any events that are required on startup. Common events are: - // 'load', 'deviceready', 'offline', and 'online'. - bindEvents: function() { - document.addEventListener('deviceready', this.onDeviceReady, false); - - }, - // deviceready Event Handler - // - // The scope of 'this' is the event. In order to call the 'receivedEvent' - // function, we must explicitly call 'app.receivedEvent(...);' - onDeviceReady: function() { - app.receivedEvent('deviceready'); - btnPortrait.addEventListener("click", function() { - screen.orientation.lock('portrait').then(function(obj) { - console.log(obj); - }, function(obj) { - console.log(obj); - }); - }); - btnLandscape.addEventListener("click", function() { - screen.orientation.lock('landscape').then(function(obj) { - console.log(obj); - }, function(obj) { - console.log(obj); - }); - }); - btnPortPrimary.addEventListener("click", function() { - screen.orientation.lock('portrait-primary').then(function(obj) { - console.log(obj); - }, function(obj) { - console.log(obj); - }); - }); - btnLandPrimary.addEventListener("click", function() { - screen.orientation.lock('landscape-primary').then(function(obj) { - console.log(obj); - }, function(obj) { - console.log(obj); - }); - }); - btnAny.addEventListener("click", function() { - screen.orientation.unlock(); - }); - - var hasOnChange = false; - btnOnchange.addEventListener("click", function() { - if(hasOnChange) { - screen.orientation.onchange = undefined; - btnOnchange.innerText = "assign onchange"; - } - else { - screen.orientation.onchange = myFunction1; - btnOnchange.innerText = "remove onchange"; - } - hasOnChange = !hasOnChange; - }); - - var hasListener = false; - btnAddEvtListener.addEventListener("click", function() { - if(hasListener) { - screen.orientation.removeEventListener('change', myFunction2); - btnAddEvtListener.innerText = "addEventListener"; - } - else { - screen.orientation.addEventListener('change', myFunction2); - btnAddEvtListener.innerText = "remEventListener"; - } - hasListener = !hasListener; - - }); - - - }, - // Update DOM on a Received Event - receivedEvent: function(id) { - var parentElement = document.getElementById(id); - var listeningElement = parentElement.querySelector('.listening'); - var receivedElement = parentElement.querySelector('.received'); - - listeningElement.setAttribute('style', 'display:none;'); - receivedElement.setAttribute('style', 'display:block;'); - - console.log('Received Event: ' + id); - } -}; - -function myFunction1() { - alert('This change listener uses screen.orientation.onchange'); -} - -function myFunction2() { - alert('This change listener uses screen.orientation.addEventListener'); -} - -app.initialize(); diff --git a/package.json b/package.json index 3657bfc..984b869 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "scripts": { "test": "npm run jshint", - "jshint": "node node_modules/jshint/bin/jshint www && node node_modules/jshint/bin/jshint src && node node_modules/jshint/bin/jshint demo/www" + "jshint": "node node_modules/jshint/bin/jshint www && node node_modules/jshint/bin/jshint src" }, "cordova": { "id": "cordova-plugin-screen-orientation",