If you are holding the phone to your ear while on a call, the screen will turn off to prevent unintentional touches. A white light will blink at the top of the screen when the proximity sensor is active.
\n ',"\n ","\n
\n
\n "]);return f=function(){return e},e}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){for(var n=0;n
0&&void 0!==arguments[0]?arguments[0]:{}).element;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=d(this,h(t).call(this,{element:n}))).playback=new o.default({element:e.element.querySelector(o.default.selector)}),e.timeIndicator=new r.default({element:e.element.querySelector(r.default.selector)}),e.playhead=new a.default({element:e.element.querySelector(a.default.selector)}),e.mute=new s.default({element:e.element.querySelector(s.default.selector)}),e.loop=new u.default({element:e.element.querySelector(u.default.selector)}),e._initialize(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,i.default),p(t,null,[{key:"render",value:function(e){return this.asHTML(f(),this.componentName,a.default.render(e),this.componentName,o.default.render(e),r.default.render(e),this.componentName,s.default.render(e),u.default.render(e))}},{key:"componentName",get:function(){return"media-controls"}},{key:"iconsId",get:function(){return"tbg-icons--media"}}]),p(t,[{key:"_initialize",value:function(){this._toggleDisplay()}},{key:"deconstruct",value:function(){this.playback.deconstruct(),this.timeIndicator.deconstruct(),this.playhead.deconstruct(),this.mute.deconstruct(),this.loop.deconstruct()}},{key:"_toggleDisplay",value:function(){this.element.classList.contains("tbg-hidden")?this.element.classList.remove("tbg-hidden"):this.element.classList.add("tbg-hidden")}},{key:"updateTime",value:function(e){this.timeIndicator.updateTimeElapsed(e),this.playhead.updateProgressBar(e)}},{key:"updateDuration",value:function(e){this.timeIndicator.updateDuration(e),this.playhead.setProgressBar(e)}},{key:"changePlayback",value:function(e){this.playback.updatePlayButton(e)}},{key:"changeMute",value:function(e){this.mute.update(e)}},{key:"changeLoop",value:function(e){this.loop.update(e)}}]),t}();t.default=v},109:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(6))&&i.__esModule?i:{default:i},r=n(8);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n "]);return s=function(){return e},e}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){for(var n=0;n\n \n \n \n \n '}},{key:"iconPause",get:function(){return'\n \n '}}]),f(t,[{key:"_setupHandlers",value:function(){this.togglePlay=this.togglePlay.bind(this),this.element.addEventListener("click",this.togglePlay)}},{key:"deconstruct",value:function(){this.element.removeEventListener("click",this.togglePlay)}},{key:"togglePlay",value:function(e){var t=new CustomEvent(r.EVENTS.togglePlayback,{bubbles:!0});this.element.dispatchEvent(t)}},{key:"updatePlayButton",value:function(e){e.target.paused?(this.element.classList.remove("tbg-active"),this.element.setAttribute("title","Play (k)")):(this.element.classList.add("tbg-active"),this.element.setAttribute("title","Pause (k)"))}}]),t}();t.default=h},11:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(6))&&i.__esModule?i:{default:i};function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){var e=u(["",":",""]);return a=function(){return e},e}function s(){var e=u(['\n
\n \n / \n \n
\n ']);return s=function(){return e},e}function u(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){for(var n=0;n\n \n
\n ']);return a=function(){return e},e}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){for(var n=0;n
Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.
We notice you're using an ad blocker
Without advertising income, we can't keep making this site awesome for you.