Skip to main content
Participating Frequently
September 15, 2016
Question

build phone app daily devotional

  • September 15, 2016
  • 1 reply
  • 1679 views

Building my first phone app using Dreamweaver CC, Visual Studio 2015, and hopefully PhoneGap to pull it all together. Coding with HTML5, CSS, and Javascript.

Goal: create a daily devotional app. Problem: How to have specific text show beneath "today's date"?

Any help and pointers towards tutorials would be much appreciated.

This topic has been closed for replies.

1 reply

Nancy OShea
Community Expert
Community Expert
September 15, 2016

A basic "Quote of the Day" JavaScript.

// JavaScript Document

//**********************

// QUOTE OF THE DAY SCRIPT: Add 31 quotes or inspirational messages to the array below. Each day a new quote will be displayed.

//***********************

var date    = new Date().getDate();

var quote   = new Array();

quote[1]   = "The mind is everything. What we think we become. --Buddha";

quote[2]   = "Adults are just outdated children. --Dr. Seuss";

quote[3]   = "The secret of getting ahead is getting started. --Mark Twain";

etc...

Nancy O.

Nancy O'Shea— Product User & Community Expert
Participating Frequently
September 23, 2016

Thank you for responding. Is there a way to pull automatically from a preset list for each day and not just pull randomly? So for example July 4th every year it will be the same inspirational message.

Participating Frequently
September 23, 2016

Also, I already have id's on each message.