Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove old needless code. share what we got.

  • Loading branch information...
commit 9faf8c617716807db16535c3ffca175a1491e9c1 1 parent bf1271c
@paulirish authored
View
11 .project
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>css3please</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- </buildSpec>
- <natures>
- </natures>
-</projectDescription>
View
78 javascript/jquery-mousewheel-3.0.4.js
@@ -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
72 javascript/jquery.caret.js
@@ -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);
View
11 javascript/jquery.mousewheel.min.js
@@ -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);
View
22 javascript/jquery.plugins.min.js
@@ -1,19 +1,29 @@
// zero clipboard by : Joseph Huckaby
var ZeroClipboard={version:"1.0.7",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,$:function(a){if(typeof(a)=="string"){a=document.getElementById(a)}if(!a.addClass){a.hide=function(){this.style.display="none"};a.show=function(){this.style.display=""};a.addClass=function(b){this.removeClass(b);this.className+=" "+b};a.removeClass=function(d){var e=this.className.split(/\s+/);var b=-1;for(var c=0;c<e.length;c++){if(e[c]==d){b=c;c=e.length}}if(b>-1){e.splice(b,1);this.className=e.join(" ")}return this};a.hasClass=function(b){return !!this.className.match(new RegExp("\\s*"+b+"\\s*"))}}return a},setMoviePath:function(a){this.moviePath=a},dispatch:function(d,b,c){var a=this.clients[d];if(a){a.receiveEvent(b,c)}},register:function(b,a){this.clients[b]=a},getDOMObjectPosition:function(c,a){var b={left:0,top:0,width:c.width?c.width:c.offsetWidth,height:c.height?c.height:c.offsetHeight};$.extend(b,$(c).position());return b},Client:function(a){this.handlers={};this.id=ZeroClipboard.nextId++;this.movieId="ZeroClipboardMovie_"+this.id;ZeroClipboard.register(this.id,this);if(a){this.glue(a)}}};ZeroClipboard.Client.prototype={id:0,ready:false,movie:null,clipText:"",handCursorEnabled:true,cssEffects:true,handlers:null,glue:function(d,b,e){this.domElement=ZeroClipboard.$(d);var f=99;if(this.domElement.style.zIndex){f=parseInt(this.domElement.style.zIndex,10)+1}if(typeof(b)=="string"){b=ZeroClipboard.$(b)}else{if(typeof(b)=="undefined"){b=document.getElementsByTagName("body")[0]}}var c=ZeroClipboard.getDOMObjectPosition(this.domElement,b);this.div=document.createElement("div");var a=this.div.style;a.position="absolute";a.left=""+c.left+"px";a.top=""+c.top+"px";a.width=""+c.width+"px";a.height=""+c.height+"px";a.zIndex=f;if(typeof(e)=="object"){for(addedStyle in e){a[addedStyle]=e[addedStyle]}}b.appendChild(this.div);this.div.innerHTML=this.getHTML(c.width,c.height)},getHTML:function(d,a){var c="";var b="id="+this.id+"&width="+d+"&height="+a;if(navigator.userAgent.match(/MSIE/)){var e=location.href.match(/^https/i)?"https://":"http://";c+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+e+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+d+'" height="'+a+'" id="'+this.movieId+'" align="top"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+b+'"/><param name="wmode" value="transparent"/></object>'}else{c+='<embed id="'+this.movieId+'" src="'+ZeroClipboard.moviePath+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+d+'" height="'+a+'" name="'+this.movieId+'" align="top" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+b+'" wmode="transparent" />'}return c},hide:function(){if(this.div){this.div.style.left="-2000px"}},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML="";var a=document.getElementsByTagName("body")[0];try{a.removeChild(this.div)}catch(b){}this.domElement=null;this.div=null}},reposition:function(c){if(c){this.domElement=ZeroClipboard.$(c);if(!this.domElement){this.hide()}}if(this.domElement&&this.div){var b=ZeroClipboard.getDOMObjectPosition(this.domElement);var a=this.div.style;a.left=""+b.left+"px";a.top=""+b.top+"px"}},setText:function(a){this.clipText=a;if(this.ready){this.movie.setText(a)}},addEventListener:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");if(!this.handlers[a]){this.handlers[a]=[]}this.handlers[a].push(b)},setHandCursor:function(a){this.handCursorEnabled=a;if(this.ready){this.movie.setHandCursor(a)}},setCSSEffects:function(a){this.cssEffects=!!a},receiveEvent:function(d,e){d=d.toString().toLowerCase().replace(/^on/,"");switch(d){case"load":this.movie=document.getElementById(this.movieId);if(!this.movie){var c=this;setTimeout(function(){c.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){var c=this;setTimeout(function(){c.receiveEvent("load",null)},100);this.ready=true;return}this.ready=true;this.movie.setText(this.clipText);this.movie.setHandCursor(this.handCursorEnabled);break;case"mouseover":if(this.domElement&&this.cssEffects){this.domElement.addClass("hover");if(this.recoverActive){this.domElement.addClass("active")}}break;case"mouseout":if(this.domElement&&this.cssEffects){this.recoverActive=false;if(this.domElement.hasClass("active")){this.domElement.removeClass("active");this.recoverActive=true}this.domElement.removeClass("hover")}break;case"mousedown":if(this.domElement&&this.cssEffects){this.domElement.addClass("active")}break;case"mouseup":if(this.domElement&&this.cssEffects){this.domElement.removeClass("active");this.recoverActive=false}break}if(this.handlers[d]){for(var b=0,a=this.handlers[d].length;b<a;b++){var f=this.handlers[d][b];if(typeof(f)=="function"){f(this,e)}else{if((typeof(f)=="object")&&(f.length==2)){f[0][f[1]](this,e)}else{if(typeof(f)=="string"){window[f](this,e)}}}}}}};
+/*
+ *
+ * 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(a){a.fn.caret=function(o,k){var c,g,m=this[0];if(typeof o==="object"&&typeof o.start==="number"&&typeof o.end==="number"){c=o.start;g=o.end}else{if(typeof o==="number"&&typeof k==="number"){c=o;g=k}else{if(typeof o==="string"){if((c=m.value.indexOf(o))>-1){g=c+o.length}else{c=null}}else{if(Object.prototype.toString.call(o)==="[object RegExp]"){var l=o.exec(m.value);if(l!=null){c=l.index;g=c+l[0].length}}}}}if(typeof c!="undefined"){if(a.browser.msie){var i=this[0].createTextRange();i.collapse(true);i.moveStart("character",c);i.moveEnd("character",g-c);i.select()}else{this[0].selectionStart=c;this[0].selectionEnd=g}this[0].focus();return this}else{if(a.browser.msie){if(this[0].tagName.toLowerCase()!="textarea"){var d=this.val();var h=document.selection.createRange().duplicate();h.moveEnd("character",d.length);var n=(h.text==""?d.length:d.lastIndexOf(h.text));h=document.selection.createRange().duplicate();h.moveStart("character",-d.length);var j=h.text.length}else{var h=document.selection.createRange();var b=h.duplicate();b.moveToElementText(this[0]);b.setEndPoint("EndToEnd",h);var n=b.text.length-h.text.length;var j=n+h.text.length}}else{var n=m.selectionStart,j=m.selectionEnd}var f=m.value.substring(n,j);return{start:n,end:j,text:f,replace:function(e){return m.value.substring(0,n)+e+m.value.substring(j,m.value.length)}}}return this}})(jQuery);
-/* 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.
+/*! 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
*
- * 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);
+(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(i){var g=i||window.event,f=[].slice.call(arguments,1),j=0,h=true,e=0,d=0;i=c.event.fix(g);i.type="mousewheel";if(i.wheelDelta){j=i.wheelDelta/120}if(i.detail){j=-i.detail/3}d=j;if(g.axis!==undefined&&g.axis===g.HORIZONTAL_AXIS){d=0;e=-1*j}if(g.wheelDeltaY!==undefined){d=g.wheelDeltaY/120}if(g.wheelDeltaX!==undefined){e=-1*g.wheelDeltaX/120}f.unshift(i,j,e,d);return c.event.handle.apply(this,f)}})(jQuery);
+
// matrix math via sylvester library
View
78 javascript/test.html
@@ -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
2  remaining issues.URL
@@ -1,2 +0,0 @@
-[InternetShortcut]
-URL=http://github.com/jonathantneal/Cross-Browser-CSS3-Rule-Generator/issues
View
2  test_ui.html
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.