Skip to content

Instantly share code, notes, and snippets.

View apipkin's full-sized avatar
🤖
^_^

Anthony Pipkin apipkin

🤖
^_^
View GitHub Profile
@apipkin
apipkin / PM.php
Created January 25, 2010 15:33 — forked from anonymous/PM
<?php
define("XMLAPI","1");
include("common.php");
defp();
connect();
auth();
$id=$user_id;
$aaid=intval($_REQUEST[aaid]);
$id=$user_id;
$aaid=intval($_REQUEST[aaid]);
// where...
someFunc = function(e) {
// e has the event data
}
// I'm having a play with YUI 3 and came across an oddity.
Y.all('input').on('focus', someFunc);
// In the context of someFunc, 'this' is the set of inputs and
console.log('Body script');
YAHOO.util.Event.onDOMReady(function(o) {
console.log('DOM Ready');
var handleSuccess = function(o) {
alert('Success');
};
var handleFailure = function(o) {
alert('Failure');
};
var callback = {
var names, array, size, order, str, sort, reverse, rev;
names = prompt("Please input names separated by spaces: ", "");
order = prompt("What order? (ascending or descending)", "");
array = names.split(/\s+/);
size = array.length;
if (names == "" || names == null)
{ document.write("Oops, you did not enter a name, please enter a name!"); }
else if (names != "" && names != null)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type = "text/javascript">
<!--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Browser Information!</title>
<script type = "text/javascript">
<!--
function browser() {
function moveIt(radio) {
var pos;
pos = radio.value;
moz = document.getElementById('moz');
switch (pos) {
case "nw" :
moz.style.top="200px";
break;
case "ne" :
moz.style.top="400px";
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Image Testing!</title>
<link rel="stylesheet" type="text/css" href="image.css" />
<script src="image.js" language="javascript" type="text/javascript"></script>
</head>
// start all zindex at 0
document.getElementById('image_one').style.zIndex = 0;
document.getElementById('image_two').style.zIndex = 0;
document.getElementById('image_three').style.zIndex = 0;
// storage for current node
var topImage = null;
function layers(newTop) {
var _menuClick = function (e) {
var function_code = e.target.get("id").split("-")[1];
Y.log('handling click...' + function_code, "info", log_key);
var container = Y.one("#manage_action");
Y.io(
menu_config["base_url"] + function_code,
{
on: {