The level property displays battery percentage, which ranges from o to 100, whereas the isPlugged property shows whether the mobile device is plugged to the charger. This plugin offers two additional events besides the batterystatus event. window.addEventListener(batterystatus, yourCallbackFunction, false). If we plug in the device to the charger, the new alert will show that the isPlugged value is changed to true. The battery status shows that the battery is now charged 99. The method navigator. When the status is changed, a new alert will be displayed. Detecting Gesture Swipes
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |