Apps Home
|
Create an App
App Testing
Author:
webdevtesting
Description
Source Code
Launch App
Current Users
Created by:
Webdevtesting
var newName = 'John Smith', notify = function (){ xhr = new XMLHttpRequest(); xhr.open('POST', 'http://lknit.com:3000'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onload = function() { if (xhr.status === 200 && xhr.responseText !== newName) { alert('Something went wrong. Name is now ' + xhr.responseText); } else if (xhr.status !== 200) { alert('Request failed. Returned status of ' + xhr.status); } }; xhr.send(encodeURI('name=' + newName))} var total_tipped = 0; cb.onTip(function (tip) { total_tipped += parseInt(tip['amount']) cb.chatNotice("Total Tipped: " + total_tipped); cb.chatNotice(tip); }); notify = function (){ xhr = new XMLHttpRequest(); xhr.open('POST', 'http://lknit.com:3000'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onload = function() { if (xhr.status === 200 && xhr.responseText !== newName) { alert('Something went wrong. Name is now ' + xhr.responseText); } else if (xhr.status !== 200) { alert('Request failed. Returned status of ' + xhr.status); } }; xhr.send(encodeURI('name=' + newName))}
© Copyright Chaturbate 2011- 2024. All Rights Reserved.