diff --git a/Site/Default.aspx b/Site/Default.aspx index 86bb96d5..96e17a1e 100644 --- a/Site/Default.aspx +++ b/Site/Default.aspx @@ -9,7 +9,7 @@
-
1,234.01
Random Odometer (Testing new code)
+
12345689.1
Random Odometer (Testing new code)

Dashboard Placeholder

diff --git a/Site/Master-v5.master b/Site/Master-v5.master index edd15d85..0b27211e 100644 --- a/Site/Master-v5.master +++ b/Site/Master-v5.master @@ -1,5 +1,7 @@ <%@ Master Language="C#" AutoEventWireup="true" Inherits="Swarmops.Frontend.MasterV5" Codebehind="Master-v5.master.cs" %> +<%@ Import Namespace="System.Globalization" %> <%@ Import Namespace="System.Runtime.CompilerServices" %> +<%@ Import Namespace="System.Threading" %> <%@ Import Namespace="Swarmops.Frontend" %> @@ -61,7 +63,36 @@ var localizedMasterEditResetPasswordButton = SwarmopsJS.unescape('<%= this.Localized_MasterPersonEditResetPasswordButton %>'); - $(document).ready(function () {/* + window.odometerOptions = { + auto: false, // Don't automatically initialize everything with class 'odometer' + theme: 'car' // Specify the theme (if you have more than one theme css file on the page) + }; + + $(document).ready(function () { + + // Initialize any odometers + + $('.odometer-integer').each(function() { + od = new Odometer({ + el: this, + value: this.innerText, + + // Integer format + format: '(<%= Thread.CurrentThread.CurrentUICulture.NumberFormat.NumberGroupSeparator%>ddd)' + }); + }); + + $('.odometer-currency').each(function() { + od = new Odometer({ + el: this, + value: this.innerText, + + // Two decimals format + format: '(<%= Thread.CurrentThread.CurrentUICulture.NumberFormat.NumberGroupSeparator%>ddd).dd' + }); + }); + + /* $('#LinkChangeOrganizations').qtip( { id: 'TooltipModalOrganizationChanger', // Since we're only creating one modal, give it an ID so we can style it