Apps Home
|
Create an App
AnyTip
Author:
warrensexanator
Description
Source Code
Launch App
Current Users
Created by:
Warrensexanator
// vars var total_tipped = 0; var high_tip_amount = 0; var last_tip_amount = 0; cb.settings_choices = [ ]; // handlers cb.onTip(function(tip) { total_tipped += tip['amount'] last_tip_amount = tip['amount'] if (tip['amount'] > high_tip_amount) { high_tip_amount = tip['amount'] } cb.drawPanel(); }); cb.onDrawPanel(function(user) { return { 'template': '3_rows_of_labels', 'row1_label': 'Tipped So Far :', 'row1_value': '' + total_tipped, 'row2_label': 'Best Tip:', 'row2_value': '' + ' (' + high_tip_amount + ')', 'row3_label': 'Last Tip:', 'row3_value': '' + ' (' + last_tip_amount + ')' }; }); function format_username(val) { if (val === null) { return "--"; } else { return val.substring(0, 0); } }
© Copyright Chaturbate 2011- 2026. All Rights Reserved.