OfficeDev/PowerPoint-Add-in-Timer

Name: PowerPoint-Add-in-Timer

Owner: Office Developer

Description: A PowerPoint task-pane add-in that provides a timer. This sample makes use of the showNotification() alert, that pops up every ten seconds. The Settings.set and Settings.get methods are used to save the number of timer trials.

Created: 2015-08-20 21:33:47.0

Updated: 2016-11-05 10:54:03.0

Pushed: 2017-12-28 21:35:59.0

Homepage: null

Size: 20

Language: CSS

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

PowerPoint-Add-in-Timer

A PowerPoint task pane add-in that provides a timer.

Table of contents

Summary

In this sample, we show you how to use the JavaScript API for Office to create a timer in a task pane add-in. This sample makes use of the showNotification() alert, that pops up every 10 seconds. The Settings.set and Settings.get methods are used to save the number of timer trials.

Prerequisites

This sample requires the following:

Description of the code

Start the timer by using the buttons in the task pane. A notification in a red background color displays every 10 seconds to notify the time. To stop the timer, click the Stop timer button. All of the times are displayed, with the trial number attached. You can clear the timer trials by clicking the Clear timer button.

Build and debug
  1. Open the OfficeAppPPTTaskPaneTimer.sln file in Visual Studio.
  2. Press F5 to build and deploy the sample add-in.
  3. On the Home ribbon, click Open in the Timer group.

Questions and comments

Additional resources
Copyright

Copyright (c) 2015 Microsoft. All rights reserved.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.