Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2012
    Posts
    16
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Smile js apple timer widget

    How do I put a javascript widget in an html file?

    Here's what i have put in to the .html, and it doesn't show up.
    Does this code look like a typical way to put in a .js widget in an html file?

    Code:
    <script type="text/javascript" src="Scripts/Widgets/Timer/TimerWidget.js"></script>
    <script type="text/javascript" src="Scripts/Widgets/Timer/localizedStrings.js"></script>
    Last edited by galt; 07-28-2012 at 03:11 PM.

  • #2
    New Coder
    Join Date
    Jul 2012
    Posts
    16
    Thanks
    10
    Thanked 0 Times in 0 Posts
    UPDATE:

    Does this look more familiar? Here's what I have in the <body> section of my code:

    Code:
    <script type="text/javascript">
    				new TimerWidget('widget1', 'Scripts/Widgets/Timer', 'Scripts/Widgets/SharedResources', '.', {
    				"type": 0, 
    				"labelsEnabled": 1, 
    				"labelFontFactor": 1.2, 
    				"labelFontSize": 10, 
    				"unitsRange": {
    					"location": 1, 
    					"length": 4
    					}, 
    				"target": 1348869800000
    				});
    			</script>


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •