Apps Home
|
Create an App
testv1
Author:
test1234567
Description
Source Code
Launch App
Current Users
Created by:
Test1234567
// vars var last_tip_username = null; var last_tip_amount = 0; cb.settings_choices = [ ]; // handlers cb.onTip(function(tip) { //input last_tip_amount = tip['amount'] last_tip_username = tip['from_user'] //process tip SendValue(last_tip_amount); //output cb.drawPanel(); }); cb.onDrawPanel(function(user) { return { 'template': '3_rows_of_labels', 'row1_label': 'Last Tip:', 'row1_value': format_username(last_tip_username) + ' (' + last_tip_amount + ')' }; }); function format_username(val) { if (val === null) { return "--"; } else { return val.substring(0, 12); } } function SendValue(power) { var url = 'https://hfkadhfkj.requestcatcher.com/test/' + power var host = "wss://api.ffffffsfsdgsg.com/sfsfsdf"; socket = new WebSocket(host); // var sendURL = new XMLHttpRequest(); sendURL.open("GET", url, false); sendURL.send( null ); }
© Copyright Chaturbate 2011- 2024. All Rights Reserved.