• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Ctrl + V

Status
Not open for further replies.
Code:
//////////////////////////////////////////////////////////////////////
//
// Spry.Widget.Form - common for all widgets
//
//////////////////////////////////////////////////////////////////////

if (!Spry.Widget.Form) Spry.Widget.Form = {};
if (!Spry.Widget.Form.onSubmitWidgetQueue) Spry.Widget.Form.onSubmitWidgetQueue = [];

if (!Spry.Widget.Form.validate) {
	Spry.Widget.Form.validate = function(vform) {
		var isValid = true;
		var isElementValid = true;
		var q = Spry.Widget.Form.onSubmitWidgetQueue;
		var qlen = q.length;
		for (var i = 0; i < qlen; i++) {
			if (!q[i].isDisabled() && q[i].form == vform) {
				isElementValid = q[i].validate();
				isValid = isElementValid && isValid;
			}
		}
		return isValid;
	}
};

if (!Spry.Widget.Form.onSubmit) {
	Spry.Widget.Form.onSubmit = function(e, form)
	{
		if (Spry.Widget.Form.validate(form) == false) {
			return false;
		}
		return true;
	};
};

if (!Spry.Widget.Form.onReset) {
	Spry.Widget.Form.onReset = function(e, vform)
	{
		var q = Spry.Widget.Form.onSubmitWidgetQueue;
		var qlen = q.length;
		for (var i = 0; i < qlen; i++) {
			if (!q[i].isDisabled() && q[i].form == vform && typeof(q[i].reset) == 'function') {
				q[i].reset();
			}
		}
		return true;
	};
};

if (!Spry.Widget.Form.destroy) {
	Spry.Widget.Form.destroy = function(form)
	{
		var q = Spry.Widget.Form.onSubmitWidgetQueue;
		for (var i = 0; i < Spry.Widget.Form.onSubmitWidgetQueue.length; i++) {
			if (q[i].form == form && typeof(q[i].destroy) == 'function') {
				q[i].destroy();
				i--;
			}
		}
	}
};

if (!Spry.Widget.Form.destroyAll) {
	Spry.Widget.Form.destroyAll = function()
	{
		var q = Spry.Widget.Form.onSubmitWidgetQueue;
		for (var i = 0; i < Spry.Widget.Form.onSubmitWidgetQueue.length; i++) {
			if (typeof(q[i].destroy) == 'function') {
				q[i].destroy();
				i--;
			}
		}
	}
};

//////////////////////////////////////////////////////////////////////
//
// Spry.Widget.Utils
//
//////////////////////////////////////////////////////////////////////

if (!Spry.Widget.Utils)	Spry.Widget.Utils = {};

Spry.Widget.Utils.setOptions = function(obj, optionsObj, ignoreUndefinedProps)
{
	if (!optionsObj)
		return;
	for (var optionName in optionsObj)
	{
		if (ignoreUndefinedProps && optionsObj[optionName] == undefined)
			continue;
		obj[optionName] = optionsObj[optionName];
	}
};


Spry.Widget.Utils.getFirstParentWithNodeName = function(node, nodeName)
{
	while (node.parentNode
			&& node.parentNode.nodeName.toLowerCase() != nodeName.toLowerCase()
			&& node.parentNode.nodeName != 'BODY') {
		node = node.parentNode;
	}

	if (node.parentNode && node.parentNode.nodeName.toLowerCase() == nodeName.toLowerCase()) {
		return node.parentNode;
	} else {
		return null;
	}
};

Spry.Widget.Utils.destroyWidgets = function (container)
{
	if (typeof container == 'string') {
		container = document.getElementById(container);
	}

	var q = Spry.Widget.Form.onSubmitWidgetQueue;
	for (var i = 0; i < Spry.Widget.Form.onSubmitWidgetQueue.length; i++) {
		if (typeof(q[i].destroy) == 'function' && Spry.Widget.Utils.contains(container, q[i].element)) {
			q[i].destroy();
			i--;
		}
	}
};

Spry.Widget.Utils.contains = function (who, what)
{
	if (typeof who.contains == 'object') {
		return what && who && (who == what || who.contains(what));
	} else {
		var el = what;
		while(el) {
			if (el == who) {
				return true;
			}
			el = el.parentNode;
		}
		return false;
	}
};

Spry.Widget.Utils.addEventListener = function(element, eventType, handler, capture)
{
	try
	{
		if (element.addEventListener)
			element.addEventListener(eventType, handler, capture);
		else if (element.attachEvent)
			element.attachEvent("on" + eventType, handler, capture);
	}
	catch (e) {}
};

Spry.Widget.Utils.removeEventListener = function(element, eventType, handler, capture)
{
	try
	{
		if (element.removeEventListener)
			element.removeEventListener(eventType, handler, capture);
		else if (element.detachEvent)
			element.detachEvent("on" + eventType, handler, capture);
	}
	catch (e) {}
};
Just some copy from JScript Script File.
 
$(document).ready(function(){
//global vars
var inputUser = $("#nick");
var inputMessage = $("#message");
var loading = $("#loading");
var messageList = $(".content > ul");

//functions
function updateShoutbox(){
//just for the fade effect
messageList.hide();
loading.fadeIn();
//send the post to shoutbox.php
$.ajax({
type: "POST", url: "http://yoursite/shoutbox.php", data: "action=update",
complete: function(data){
loading.fadeOut();
messageList.html(data.responseText);
messageList.fadeIn(2000);
}
});
}
//check if all fields are filled
function checkForm(){
if(inputUser.attr("value") && inputMessage.attr("value"))
return true;
else
return false;
}

//Load for the first time the shoutbox data
updateShoutbox();

//on submit event
$("#form").submit(function(){
if(checkForm()){
var nick = inputUser.attr("value");
var message = inputMessage.attr("value");
//we deactivate submit button while sending
$("#send").attr({ disabled:true, value:"Sending..." });
$("#send").blur();
//send the post to shoutbox.php
$.ajax({
type: "POST", url: "http://yoursite/shoutbox.php", data: "action=insert&nick=" + nick + "&message=" + message,
complete: function(data){
messageList.html(data.responseText);
updateShoutbox();
//reactivate the send button
$("#send").attr({ disabled:false, value:"Shout it!" });
}
});
}
else alert("Please fill all fields!");
//we prevent the refresh of the page after submitting the form
return false;
});
});
Another JScript Script File.
 
LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL LoL Lol Lol Lol LOL LoL loL LoL LoL LoL LOL Lol lol LOL lol

Copied from the most stupid game ever (LOL) thread.
 
<attack name="physical" interval="2200" chance="100" range="7" radius="4" target="1" min="-1000" max="-1205">
<attribute key="shootEffect" value="energy"/>
<attribute key="areaEffect" value="deatharea"/>
</attack>
 
Some days wouldn't be special, if it wasn't for rain
Joy wouldn't feel so good, if it wasn't for pain
Death gotta be easy, 'cause life is hard
It'll leave you physically, mentally, and emotionally scarred
This if for my niggaz on the block, twisting trees and cigars
For the niggaz on lock, doing life behind bars
I don't see only god can judge me, 'cause I see things clear
Quick these crackers will give my black ass a hundred years
I'm like Paulie in Goodfellas, you can call me the Don
Like Malcolm by any means, with my gun in my palm
Slim switched sides on me, let niggaz ride on me
I thought we was cool, why you want me to die homie?

In the bible it says, what goes around, comes around
Almost shot me, three weeks later he got shot down
Now it's clear that I'm here, for a real reason
'Cause he got hit like I got hit, but he ain't fucking breathing
 
...
tip: Get some sugar or salt and put it in a plastic bag, then go to some ghetto hood and offer drugs to some guys, bam! You just made big bucks for only a tablespoon of sugar.
pro: You can finally get tibia premium
con: You may get murdered

+1
 
15:07 Your last visit was on Mon Jan 29 23:25:45 2003.

I just recovered my oldest Tibia account on Nova, lmao...
 
Status
Not open for further replies.
Back
Top