This commit is contained in:
Rick Falkvinge
2017-01-09 15:32:26 +01:00
parent a14bcab2e7
commit a3b9425e99
2 changed files with 33 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
<div class="box" style="background-image: url(/Images/Other/member-background-istockphoto.jpg); background-size: 700px 110px"><div class="content">
<div class="odometer-wrapper"><div class="elementFloatFar odometer nocents">1,234.01</div><div class="odometer-label">Random Odometer (Testing new code)</div>
<div class="odometer-wrapper"><div class="elementFloatFar odometer odometer-currency" id="odoGlobalParticipation">12345689.1</div><div class="odometer-label">Random Odometer (Testing new code)</div>
</div></div></div>
<h2>Dashboard Placeholder</h2>
+32 -1
View File
@@ -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" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -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