Permalink
Browse files

remove old needless code. share what we got.

  • Loading branch information...
1 parent bf1271c commit 9faf8c617716807db16535c3ffca175a1491e9c1 @paulirish paulirish committed Oct 9, 2010
View
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>css3please</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- </buildSpec>
- <natures>
- </natures>
-</projectDescription>
@@ -1,78 +0,0 @@
-/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
- * Licensed under the MIT License (LICENSE.txt).
- *
- * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
- * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
- * Thanks to: Seamus Leahy for adding deltaX and deltaY
- *
- * Version: 3.0.4
- *
- * Requires: 1.2.2+
- */
-
-(function($) {
-
-var types = ['DOMMouseScroll', 'mousewheel'];
-
-$.event.special.mousewheel = {
- setup: function() {
- if ( this.addEventListener ) {
- for ( var i=types.length; i; ) {
- this.addEventListener( types[--i], handler, false );
- }
- } else {
- this.onmousewheel = handler;
- }
- },
-
- teardown: function() {
- if ( this.removeEventListener ) {
- for ( var i=types.length; i; ) {
- this.removeEventListener( types[--i], handler, false );
- }
- } else {
- this.onmousewheel = null;
- }
- }
-};
-
-$.fn.extend({
- mousewheel: function(fn) {
- return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
- },
-
- unmousewheel: function(fn) {
- return this.unbind("mousewheel", fn);
- }
-});
-
-
-function handler(event) {
- var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0;
- event = $.event.fix(orgEvent);
- event.type = "mousewheel";
-
- // Old school scrollwheel delta
- if ( event.wheelDelta ) { delta = event.wheelDelta/120; }
- if ( event.detail ) { delta = -event.detail/3; }
-
- // New school multidimensional scroll (touchpads) deltas
- deltaY = delta;
-
- // Gecko
- if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
- deltaY = 0;
- deltaX = -1*delta;
- }
-
- // Webkit
- if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; }
- if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; }
-
- // Add event and delta to the front of the arguments
- args.unshift(event, delta, deltaX, deltaY);
-
- return $.event.handle.apply(this, args);
-}
-
-})(jQuery);
View
@@ -1,72 +0,0 @@
-/*
- *
- * Copyright (c) 2010 C. F., Wong (<a href="http://cloudgen.w0ng.hk">Cloudgen Examplet Store</a>)
- * Licensed under the MIT License:
- * http://www.opensource.org/licenses/mit-license.php
- *
- */
-(function($){
- $.fn.caret=function(options,opt2){
- var start,end,t=this[0];
- if(typeof options==="object" && typeof options.start==="number" && typeof options.end==="number") {
- start=options.start;
- end=options.end;
- } else if(typeof options==="number" && typeof opt2==="number"){
- start=options;
- end=opt2;
- } else if(typeof options==="string"){
- if((start=t.value.indexOf(options))>-1) end=start+options.length;
- else start=null;
- } else if(Object.prototype.toString.call(options)==="[object RegExp]"){
- var re=options.exec(t.value);
- if(re != null) {
- start=re.index;
- end=start+re[0].length;
- }
- }
- if(typeof start!="undefined"){
- if($.browser.msie){
- var selRange = this[0].createTextRange();
- selRange.collapse(true);
- selRange.moveStart('character', start);
- selRange.moveEnd('character', end-start);
- selRange.select();
- } else {
- this[0].selectionStart=start;
- this[0].selectionEnd=end;
- }
- this[0].focus();
- return this
- } else {
- if($.browser.msie){
- // Modification from Андрей Юткин on 2010/2/24
- if (this[0].tagName.toLowerCase() != "textarea") {
- var val = this.val();
- var range = document.selection.createRange().duplicate();
- range.moveEnd("character", val.length);
- var s = (range.text == "" ?
- val.length : val.lastIndexOf(range.text));
- range = document.selection.createRange().duplicate();
- range.moveStart("character", -val.length);
- var e = range.text.length;
- } else {
- var range = document.selection.createRange();
- var stored_range = range.duplicate();
- stored_range.moveToElementText(this[0]);
- stored_range.setEndPoint('EndToEnd', range);
- var s = stored_range.text.length - range.text.length;
- var e = s + range.text.length;
- }
- // End of the modification
- } else {
- var s=t.selectionStart,
- e=t.selectionEnd;
- }
- var te=t.value.substring(s,e);
- return {start:s,end:e,text:te,replace:function(st){
- return t.value.substring(0,s)+st+t.value.substring(e,t.value.length)
- }}
- }
- return this;
- }
-})(jQuery);
@@ -1,11 +0,0 @@
-/* Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
- * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
- * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
- * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
- * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
- *
- * Version: 3.0.2
- *
- * Requires: 1.2.2+
- */
-(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false)}}else{this.onmousewheel=b}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}});function b(f){var d=[].slice.call(arguments,1),g=0,e=true;f=c.event.fix(f||window.event);f.type="mousewheel";if(f.wheelDelta){g=f.wheelDelta/120}if(f.detail){g=-f.detail/3}d.unshift(f,g);return c.event.handle.apply(this,d)}})(jQuery);

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,78 +0,0 @@
-<html>
-<head>
- <title>Zero Clipboard Test</title>
- <style type="text/css">
- body { font-family:arial,sans-serif; font-size:9pt; }
-
- .my_clip_button { width:150px; text-align:center; border:1px solid black; background-color:#ccc; margin:10px; padding:10px; cursor:default; font-size:9pt; }
- .my_clip_button.hover { background-color:#eee; }
- .my_clip_button.active { background-color:#aaa; }
- </style>
- <script type="text/javascript" src="ZeroClipboard.js"></script>
- <script language="JavaScript">
- var clip = null;
-
- function $(id) { return document.getElementById(id); }
-
- function init() {
- clip = new ZeroClipboard.Client();
- clip.setHandCursor( true );
-
- clip.addEventListener('load', my_load);
- clip.addEventListener('mouseOver', my_mouse_over);
- clip.addEventListener('complete', my_complete);
-
- clip.glue( 'd_clip_button' );
- }
-
- function my_load(client) {
- debugstr("Flash movie loaded and ready.");
- }
-
- function my_mouse_over(client) {
- // we can cheat a little here -- update the text on mouse over
- clip.setText( $('fe_text').value );
- }
-
- function my_complete(client, text) {
- debugstr("Copied text to clipboard: " + text );
- }
-
- function debugstr(msg) {
- var p = document.createElement('p');
- p.innerHTML = msg;
- $('d_debug').appendChild(p);
- }
- </script>
-</head>
-<body onLoad="init()">
- <h1>Zero Clipboard Test</h1>
- <p><script>document.write("Your browser: " + navigator.userAgent);</script></p>
- <table width="100%">
- <tr>
- <td width="50%" valign="top">
- <!-- Upload Form -->
- <table>
- <tr>
- <td align="right"><b>Text:</b></td>
- <td align="left"><textarea id="fe_text" cols=50 rows=5 onChange="clip.setText(this.value)">Copy me!</textarea></td>
- </tr>
- </table>
- <br/>
- <div id="d_clip_button" class="my_clip_button"><b>Copy To Clipboard...</b></div>
- </td>
- <td width="50%" valign="top">
- <!-- Debug Console -->
- <div id="d_debug" style="border:1px solid #aaa; padding: 10px; font-size:9pt;">
- <h3>Debug Console:</h3>
- </div>
- </td>
- </tr>
- </table>
-
- <br/><br/>
- You can paste text here if you want, to make sure it worked:<br/>
- <textarea id="testarea" cols=50 rows=10></textarea><br/>
- <input type=button value="Clear Test Area" onClick="$('testarea').value = '';"/>
-</body>
-</html>
View
@@ -1,2 +0,0 @@
-[InternetShortcut]
-URL=http://github.com/jonathantneal/Cross-Browser-CSS3-Rule-Generator/issues
View
@@ -8,7 +8,7 @@
<title>css3please | UI</title>
<script src="javascript/jquery-1.4.2.js"></script>
- <script src="javascript/jquery-mousewheel-3.0.4.js"></script>
+ <script src="javascript/jquery.plugins.min.js" type="text/javascript"></script>
<script src="test_math.js"></script>
<script>

0 comments on commit 9faf8c6

Please sign in to comment.