Permalink
Browse files

zero clipboard works now.

  • Loading branch information...
1 parent 5358f55 commit 472e5e432b703991902b0925162c873bbaca8fb6 @paulirish committed Apr 5, 2010
File renamed without changes.
View
@@ -54,16 +54,6 @@
}
</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
- <div id="box_round_toolbox_container" class="toolbox_container">
- <div id="box_round_toolbox" class="toolbox">
- <div id="box_round_copybutton_container" class="button_container">
- <div id="box_round_copybutton" class="copybutton"></div>
- </div>
- <div id="box_round_resetbutton_container" class="button_container">
- <div id="box_round_resetbutton" class="resetbutton"></div>
- </div>
- </div>
- </div>
</div>
@@ -75,21 +65,11 @@
-webkit-box-shadow: <b g="0">0</b>px <b g="1">0</b>px <b g="2">4</b>px <b g="3" i="s2Hex" o="sHex">#ffffff</b>; <span class="comment">/* Saf3.0+, Chrome <span class="endcomment">*/</span></span>
box-shadow: <b g="0">0</b>px <b g="1">0</b>px <b g="2">4</b>px <b g="3" i="s2Hex" o="sHex">#ffffff</b>; <span class="comment">/* Opera 10.5, IE 9.0 <span class="endcomment">*/</span></span>
<span class="ie">filter: <span class="filter">progid:DXImageTransform.Microsoft.dropshadow(OffX=<b g="0">0</b>, OffY=<b g="1">0</b>, color=<b g="3" i="s2Hex" o="lHex">#ffffff</b>)</span>; <span class="comment">/* IE6,IE7 <span class="endcomment">*/</span></span>
- -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=<b g="0">0</b>, OffY=<b g="1">0</b>, color=<b g="3" i="s2Hex" o="lHex">#ffffff</b>)"; <span class="comment">/* IE8 <span class="endcomment">*/</span></span></span>
- background: #cccccc; <span class="comment">/* You must put this in for IE or the text gets shadowed ... in an ugly way. <span class="endcomment">*/</span></span>
+ -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=<b g="0">0</b>, OffY=<b g="1">0</b>, color=<b g="3" i="s2Hex" o="lHex">#ffffff</b>)"; <span class="comment">/* IE8 <span class="endcomment">*/</span></span></span> <!--
+ background: #cccccc; <span class="comment">/* You must put this in for IE or the text gets shadowed ... in an ugly way. <span class="endcomment">*/</span></span> -->
}
</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
- <div id="box_shadow_toolbox_container" class="toolbox_container">
- <div id="box_shadow_toolbox" class="toolbox">
- <div id="box_shadow_copybutton_container" class="button_container">
- <div id="box_shadow_copybutton" class="copybutton"></div>
- </div>
- <div id="box_shadow_resetbutton_container" class="button_container">
- <div id="box_shadow_resetbutton" class="resetbutton"></div>
- </div>
- </div>
- </div>
</div>
<div id="box_gradient" class="rule_wrapper">
@@ -103,16 +83,6 @@
}
</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
- <div id="box_gradient_toolbox_container" class="toolbox_container">
- <div id="box_gradient_toolbox" class="toolbox">
- <div id="box_gradient_copybutton_container" class="button_container">
- <div id="box_gradient_copybutton" class="copybutton"></div>
- </div>
- <div id="box_gradient_resetbutton_container" class="button_container">
- <div id="box_gradient_resetbutton" class="resetbutton"></div>
- </div>
- </div>
- </div>
</div>
@@ -128,16 +98,6 @@
}
</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
- <div id="box_rgba_toolbox_container" class="toolbox_container">
- <div id="box_rgba_toolbox" class="toolbox">
- <div id="box_rgba_copybutton_container" class="button_container">
- <div id="box_rgba_copybutton" class="copybutton"></div>
- </div>
- <div id="box_rgba_resetbutton_container" class="button_container">
- <div id="box_rgba_resetbutton" class="resetbutton"></div>
- </div>
- </div>
- </div>
</div>
<div id="box_rotate" class="rule_wrapper commentedout">
@@ -155,16 +115,6 @@
}
</pre>
<pre class="rule comment commentclose"><span class="comment">/* */</span></pre>
- <div id="box_rotate_toolbox_container" class="toolbox_container">
- <div id="box_rotate_toolbox" class="toolbox">
- <div id="box_rotate_copybutton_container" class="button_container">
- <div id="box_rotate_copybutton" class="copybutton"></div>
- </div>
- <div id="box_rotate_resetbutton_container" class="button_container">
- <div id="box_rotate_resetbutton" class="resetbutton"></div>
- </div>
- </div>
- </div>
</div>
@@ -194,16 +144,6 @@
}
</pre>
<!-- <pre class="rule comment commentclose"><span class="comment">/* */</span></pre> -->
- <div id="box_webfont_toolbox_container" class="toolbox_container">
- <div id="box_webfont_toolbox" class="toolbox">
- <div id="box_webfont_copybutton_container" class="button_container">
- <div id="box_webfont_copybutton" class="copybutton"></div>
- </div>
- <div id="box_webfont_resetbutton_container" class="button_container">
- <div id="box_webfont_resetbutton" class="resetbutton"></div>
- </div>
- </div>
- </div>
</div>
View
@@ -371,7 +371,8 @@ function copypasta(){
zc.glue( elem[0], elem[0].parentNode );
zc.addEventListener( 'mouseDown', (function(){
return function(client) {
- zc.setText( $("#"+ name + " pre").not('.comment').text() );
+ zc.setText(elem.closest("pre").next().text() );
+ $(elem).fadeOut(50).fadeIn(300)
}
})());
});
@@ -62,11 +62,7 @@ var ZeroClipboard = {
height: obj.height ? obj.height : obj.offsetHeight
};
- while (obj && (obj != stopObj)) {
- info.left += obj.offsetLeft;
- info.top += obj.offsetTop;
- obj = obj.offsetParent;
- }
+ $.extend(info,$(obj).position()); // edit by paul.
return info;
},
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 472e5e4

Please sign in to comment.