Apps Home
|
Create an App
exDemo
Author:
excursion102
Description
Source Code
Launch App
Current Users
Created by:
Excursion102
cb.settings_choices = [ { name: 'FirstNotification', type: 'str', minLength: 0, maxLength: 255, label: "First Notification" }, { name: 'SecNotification', type: 'str', minLength: 0, maxLength: 255, label: "Second Notification" }, { name: 'ThirdNotification', type: 'str', minLength: 0, maxLength: 255, label: "Third Notification" } ]; function test(){ cb.log('starting'); request = new XMLHttpRequest(); request.open("GET", "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js", true); request.send(null); request.onreadystatechange = function() { if(request.readyState === 4) { // What does this even mean? if(request.status === 200) { console.log(request.responseText); alert("Done using XHR!"); } } } } function chatAd(){ var background = "#C0C0C0"; //silver var textColor = "#4169E1"; //royal blue var font = "bold"; var divider = '------------------------------------------------------------'; cb.chatNotice(divider,[],[background],[textColor],[font]); cb.chatNotice(cb.settings.FirstNotification,[],[background],[textColor],[font]); cb.chatNotice(divider,[],[background],[textColor],[font]); cb.chatNotice(cb.settings.SecNotification,[],[background],[textColor],[font]); cb.chatNotice(divider,[],[background],[textColor],[font]); cb.chatNotice(cb.settings.ThirdNotification,[],[background],[textColor],[font]); cb.chatNotice(divider,[],[background],[textColor],[font]); } var total_tipped = 0; cb.onTip(function (tip) { total_tipped += parseInt(tip['amount']) cb.chatNotice("Total Tipped: " + total_tipped); cb.drawPanel(); test(); cb.sendNotice('THANK YOU!, ' + tip['from_user'] + '.Enjoy', tip['from_user'], '#ff0000', '', 'bolder'); cb.sendNotice('HERE YOU GO!', tip['from_user'], '#ff0000', '', 'bolder'); cb.sendNotice('http://google.com', tip['from_user'], '#ff0000', '', 'bolder'); }); cb.onEnter(function(user) { cb.sendNotice('Welcome to my room, ' + user['user'] + '. Please :followtip99 thank you :pico', user['user'], '#CCF5EB', '', 'bold'); }); function init(){ chatAd(); cb.setTimeout(chatAd,10000); } init();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.