• Make Over Arena

Selling Things On Facebook - Sell Items On Facebook Group

Selling Things On Facebook – Facebook is fast becoming one of the most powerful online marketing platforms for promoting businesses, cond...

How to make a countdown on iphone

 No comments   









Using just a few lines of JavaScript, you can create a countdown timer application for your iPhone to measure the days or hours before an important event. All you need is a text editor program and a Web server to host the files. The basic JavaScript code, inspired by Dave Taylor for an HTML Web page, is opened using the iPhone's Safari web browser. After modifying the basic page with your own content and formatting, you can then add an icon and a few more lines of code to create a stand-alone application on your iPhone's home screen.

Basic Code

1.

Launch a basic text editor or HTML editor. Type the following code into a new blank document to create a header containing the JavaScript for a basic countdown timer:


2.

Replace "10 January, 2020" with any date you wish to use as the target countdown date. To have the countdown shown in days instead of hours, replace "(6060)" with "(6060*24)" in the hoursLeft line.


3.

Type the following code beneath the header to create the text for the timer:
Countdown ends in 11268 hours.


4.

Save the file as a basic text file with an ".html" extension, such as "timer.html." Upload the file to a Web server, and then test this basic countdown timer using Safari on any iPhone. You can add additional code and content to dress up this basic application.

Creating an Offline Application

1.

Select an image to use as your application icon or create your own using any graphic design program. Save the image as a PNG file that is 114 by 114 pixels in size, with a file name such as "time-icon.png." Upload the image to the same directory as your timer.html file.


2.

Create a new text file in Notepad and type these three lines in the file:

CACHE MANIFEST CACHE timer.html

Save the file as "manifest" in plain text format without a file extension. Include any other files, such as CSS or JavaScript files, that you use to modify the application. This tells the iPhone which files to save into cache so the application is accessible offline. Upload this file to the same folder as your timer.html file on the Web server.


3.

Locate the ".htaccess" file in the root folder of your Web server. Type "AddType text/cache-manifest .manifest" as a new line in the file. This tells the iPhone where the manifest file is located.


4.

Type the following lines of code above the "" tag in the timer.html file:

These two lines will tell the iPhone where the icon and manifest file are located.


5.

Navigate to the timer.html file using Safari on an iPhone. Click the "Send" icon at the bottom of the screen, and then select "Add to Home Screen." The iPhone saves the icon on the iPhone home screen and stores the relevant files into cache so you can access it offline at any time.



  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Blog Archive

  • ►  2019 (502)
    • ►  July (5)
      • ►  Jul 08 (2)
      • ►  Jul 07 (2)
      • ►  Jul 06 (1)
    • ►  February (368)
      • ►  Feb 12 (33)
      • ►  Feb 11 (21)
      • ►  Feb 09 (37)
      • ►  Feb 08 (40)
      • ►  Feb 07 (45)
      • ►  Feb 06 (40)
      • ►  Feb 05 (23)
      • ►  Feb 04 (49)
      • ►  Feb 02 (25)
      • ►  Feb 01 (55)
    • ►  January (129)
      • ►  Jan 31 (78)
      • ►  Jan 30 (20)
      • ►  Jan 29 (11)
      • ►  Jan 20 (4)
      • ►  Jan 19 (3)
      • ►  Jan 18 (4)
      • ►  Jan 17 (5)
      • ►  Jan 16 (1)
      • ►  Jan 12 (1)
      • ►  Jan 11 (1)
      • ►  Jan 10 (1)
  • ▼  2018 (2465)
    • ►  November (64)
      • ►  Nov 25 (4)
      • ►  Nov 24 (4)
      • ►  Nov 23 (7)
      • ►  Nov 22 (9)
      • ►  Nov 21 (11)
      • ►  Nov 19 (14)
      • ►  Nov 15 (7)
      • ►  Nov 03 (6)
      • ►  Nov 01 (2)
    • ►  October (178)
      • ►  Oct 31 (9)
      • ►  Oct 30 (1)
      • ►  Oct 26 (1)
      • ►  Oct 24 (16)
      • ►  Oct 23 (21)
      • ►  Oct 22 (26)
      • ►  Oct 19 (5)
      • ►  Oct 16 (50)
      • ►  Oct 15 (36)
      • ►  Oct 14 (12)
      • ►  Oct 13 (1)
    • ▼  September (771)
      • ▼  Sep 27 (58)
        • Facebook lite download fast
        • How to view messages on facebook without messenger
        • Download updated facebook lite for Windows
        • How to delete instagram account in iphone
        • How to delete my facebook for good
        • Download free facebook lite apk
        • Fb lite for android
        • Deactivate fb permanently
        • Facebook Lite free download for Phone
        • How can i deactivate my instagram account
        • Facebook lite app for pc
        • How to change fb name after 60 days
        • Reset password for instagram using facebook
        • How to delete an instagram account on phone
        • How to put a gif on facebook comment
        • App to detect unfollowers on instagram
        • Find who unfollowed you on instagram
        • How to put a gif in a facebook comment
        • How to put moving animated gifs in Facebook
        • Learn How to put a gif in a facebook comment (gif ...
        • See who unfollowed and followed your facebook page
        • App to see who follows you on instagram
        • App follower instagram
        • How do you upload a gif to facebook
        • How do i create a poll on my facebook page
        • Find who unfollowed me on instagram
        • App to check followers on instagram
        • Gif to facebook comment
        • Fb chat recovery
        • How to get back deleted facebook messages on phone
        • How to search for someone by phone number on facebook
        • How to make a countdown on iphone
        • Edit my facebook profile
        • Read fb messages without seen
        • How can i see who blocked me on fb
        • How to sign out from messenger in iphone
        • Check who is not following back your facebook page
        • Aps to know who follows who instagram
        • How to check those who unfollowed me on instagram
        • Fb who follows me
        • How to delete an option on a facebook poll while c...
        • How to activate followers on facebook
        • See who unfollowed you on Instagram
        • Survey monkey facebook poll
        • How to create poll on facebook timeline
        • How to see who follows you on facebook app
        • How to see who follows you on instagram
        • How to know if someone unfollows you on instagram
        • How to find facebook visitors
        • Facebook edit profile name
        • How to create instagram account
        • Forgotten password facebook account
        • How to get people to follow your facebook page
        • How to know who is following you on facebook
        • How to reactivate facebook account disabled easy
        • How to view archived messages on messenger app
        • How to make a live vote on facebook
        • Feb 18 zodiac
      • ►  Sep 26 (50)
      • ►  Sep 25 (70)
      • ►  Sep 24 (70)
      • ►  Sep 20 (50)
      • ►  Sep 19 (80)
      • ►  Sep 18 (50)
      • ►  Sep 17 (43)
      • ►  Sep 14 (81)
      • ►  Sep 13 (39)
      • ►  Sep 12 (101)
      • ►  Sep 11 (69)
      • ►  Sep 10 (9)
      • ►  Sep 09 (1)
    • ►  June (215)
      • ►  Jun 07 (13)
      • ►  Jun 06 (5)
      • ►  Jun 05 (48)
      • ►  Jun 04 (49)
      • ►  Jun 03 (50)
      • ►  Jun 02 (50)
    • ►  May (1205)
      • ►  May 30 (50)
      • ►  May 29 (50)
      • ►  May 28 (43)
      • ►  May 26 (50)
      • ►  May 25 (50)
      • ►  May 24 (50)
      • ►  May 23 (50)
      • ►  May 21 (50)
      • ►  May 20 (100)
      • ►  May 18 (92)
      • ►  May 17 (98)
      • ►  May 16 (93)
      • ►  May 15 (25)
      • ►  May 14 (25)
      • ►  May 13 (90)
      • ►  May 12 (25)
      • ►  May 11 (50)
      • ►  May 09 (25)
      • ►  May 08 (25)
      • ►  May 07 (32)
      • ►  May 06 (21)
      • ►  May 05 (18)
      • ►  May 04 (25)
      • ►  May 03 (18)
      • ►  May 02 (25)
      • ►  May 01 (25)
    • ►  April (26)
      • ►  Apr 12 (25)
      • ►  Apr 10 (1)
    • ►  March (6)
      • ►  Mar 26 (6)

Search

Copyright © Make Over Arena