The ShortPoint Code Design Element allows you to add a digital clock to your SharePoint page. Follow the step-by-step guide to learn how.
Quick Walkthrough
- Copy the codes in step 1 of the Step-by-step Tutorial.
- Go to the SharePoint page you want to use and edit the ShortPoint Web Part.
- Insert the Code Design Element.
- Paste the codes in their respective fields.
- Click the green check mark.
- Save your changes.
TABLE OF CONTENTS
Prerequisite
- You must already have the latest version of ShortPoint SPFx installed in your SharePoint environment.
- You must be a ShortPoint Designer with an active license.
Step-by-step Tutorial
Follow the steps below to learn how to add a digital clock to your SharePoint page:
Step 1: Copy the Code
- Copy the codes below.
HTML Code:
CSS Code:
JavaScript Code:
TIP:You can also use ChatGPT to generate codes like the one above. To learn how, check out Coding in SharePoint: How to Code with ChatGPT.
Step 2: Edit the ShortPoint Web Part
- Go to the SharePoint page where you want to add the digital clock and click Edit:
- Close the Toolbox:
- Click the ShortPoint tag:
- Select the Edit Properties icon:
Step 3: Insert the Code Design Element
- Click the plus icon to open the library of Design Elements:
- Search for Code and select it:
Step 4: Paste the Code
- Paste the HTML, CSS, and JavaScript codes in their corresponding fields:
- Customize the code according to your preferences and click the green check mark:
NOTE:Make sure that the Sandbox mode is disabled. You can find this option in the Design tab:
Step 5: Save
- Click Save to apply all your changes:
Amazing! You now have a digital clock on your SharePoint page.
Related articles:
- How to Insert a Web Page Animation into SharePoint Using the ShortPoint Code Design Element
- How to Insert a Stock Widget to a SharePoint Page Using the ShortPoint Code Design Element
- How to Add Canva Designs into a SharePoint Site Using the ShortPoint Code Design Element
- How to Embed a Viva Engage Custom Feed to the SharePoint Page Using ShortPoint Code Design Element
- The Value of Motion Design: How to Use CodePen Codes in Modern SharePoint Pages
- How to Add Lottie Animations in the ShortPoint Code Design Element