This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Event.j | |
* Canvas Creator | |
* | |
* Created by Ryan on May 21th, 2011. | |
* Copyright 2011, Synvox rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> | |
@import <AppKit/CPView.j> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import <Foundation/CPObject.j> | |
@import "UploadButton.j" | |
@import "FileLabel.j" | |
@implementation Uploader : CPObject | |
{ | |
var cib; | |
@outlet CPWindow uploaderWindow; | |
@outlet UploadButton uploadButton; | |
@outlet CPButton upload; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation FileLabel : CPView | |
{ | |
CPTextField text; | |
} | |
- (id) init | |
{ | |
self = [super initWithFrame:CGRectMakeZero()]; | |
text = [[CPTextField alloc] initWithFrame:[self bounds]]; | |
[self addSubview:text]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Cross-browser object.watch and object.unwatch | |
// object.watch | |
if (!Object.prototype.watch) { | |
Object.prototype.watch = function (prop, handler) { | |
var oldval = this[prop], newval = oldval, | |
getter = function () { | |
return newval; | |
}, | |
setter = function (val) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma platform(VEX) | |
//Competition Control and Duration Settings | |
#pragma competitionControl(Competition) | |
#pragma autonomousDuration(20) | |
#pragma userControlDuration(122) | |
#include "Vex_Competition_Includes.c" | |
typedef struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma platform(VEX) | |
//Competition Control and Duration Settings | |
#pragma competitionControl(Competition) | |
#pragma autonomousDuration(20) | |
#pragma userControlDuration(122) | |
#include "Vex_Competition_Includes.c" | |
typedef struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma platform(VEX) | |
//Competition Control and Duration Settings | |
#pragma competitionControl(Competition) | |
#pragma autonomousDuration(20) | |
#pragma userControlDuration(122) | |
#include "Vex_Competition_Includes.c" | |
typedef struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var btn=document.createElement("button"); | |
btn.setAttribute("onclick","winTheGame()"); | |
btn.innerHTML="Get the High Score!"; | |
document.getElementById("canvas_rider").parentNode.insertBefore(btn,document.getElementById("canvas_rider").nextSibling); | |
function winTheGame(){ | |
C.BU=1; C.Be=C.BU; AZ[0][0]=1; AP.z=5001; C.z=5002; AP.DC(); | |
} | |
document.onkeyup=function(e){ | |
if (e.keyCode&&e.keyCode==32) | |
winTheGame(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style type="text/css"> | |
</style> | |
</head> | |
<body> | |
<form id="end" action="http://192.168.146.1/pos/firstpos/purch/srch_result.asp" method="post"> | |
<input type="hidden" name="PAR_FNAME" id="fname"/> | |
<input type="hidden" name="PAR_LNAME" id="lname"/> |
OlderNewer