Big JS move

git-svn-id: http://svn.automattic.com/wordpress/trunk@2812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-27 18:48:56 +00:00
parent 878bcd48ec
commit 185732b420
179 changed files with 275 additions and 275 deletions

View File

@ -883,7 +883,7 @@ function the_quicktags () {
if ( !strstr($_SERVER['HTTP_USER_AGENT'], 'Safari') ) : if ( !strstr($_SERVER['HTTP_USER_AGENT'], 'Safari') ) :
echo ' echo '
<div id="quicktags"> <div id="quicktags">
<script src="quicktags.js" type="text/javascript"></script> <script src="../wp-includes/js/quicktags.js" type="text/javascript"></script>
<script type="text/javascript">edToolbar();</script> <script type="text/javascript">edToolbar();</script>
'; ';
echo '</div>'; echo '</div>';

View File

@ -75,10 +75,10 @@ addLoadEvent(blurry);
<?php endif; ?> <?php endif; ?>
//]]> //]]>
</script> </script>
<script type="text/javascript" src="fat.js"></script> <script type="text/javascript" src="../wp-includes/js/fat.js"></script>
<?php if ( isset( $editing ) ) : ?> <?php if ( isset( $editing ) ) : ?>
<?php if ( 'true' == get_user_option('rich_editing') ) :?> <?php if ( 'true' == get_user_option('rich_editing') ) :?>
<script type="text/javascript" src="tinymce/tiny_mce_src.js"></script> <script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce_src.js"></script>
<script type="text/javascript"> <script type="text/javascript">
tinyMCE.init({ tinyMCE.init({
mode : "specific_textareas", mode : "specific_textareas",
@ -100,11 +100,11 @@ tinyMCE.init({
}); });
</script> </script>
<?php endif; ?> <?php endif; ?>
<script type="text/javascript" src="dbx.js"></script> <script type="text/javascript" src="../wp-includes/js/dbx.js"></script>
<script type="text/javascript" src="dbx-key.js"></script> <script type="text/javascript" src="../wp-includes/js/dbx-key.js"></script>
<?php if ( current_user_can('manage_categories') ) : ?> <?php if ( current_user_can('manage_categories') ) : ?>
<script type="text/javascript" src="tw-sack.js"></script> <script type="text/javascript" src="../wp-includes/js/tw-sack.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var ajaxCat = new sack(); var ajaxCat = new sack();
var newcat; var newcat;

View File

@ -1,43 +1,43 @@
//initialisation function //initialisation function
addLoadEvent( function() addLoadEvent( function()
{ {
//initialise the docking boxes manager //initialise the docking boxes manager
var manager = new dbxManager('postmeta'); //session ID [/-_a-zA-Z0-9/] var manager = new dbxManager('postmeta'); //session ID [/-_a-zA-Z0-9/]
//create new docking boxes group //create new docking boxes group
var meta = new dbxGroup( var meta = new dbxGroup(
'grabit', // container ID [/-_a-zA-Z0-9/] 'grabit', // container ID [/-_a-zA-Z0-9/]
'vertical', // orientation ['vertical'|'horizontal'] 'vertical', // orientation ['vertical'|'horizontal']
'10', // drag threshold ['n' pixels] '10', // drag threshold ['n' pixels]
'no', // restrict drag movement to container axis ['yes'|'no'] 'no', // restrict drag movement to container axis ['yes'|'no']
'10', // animate re-ordering [frames per transition, or '0' for no effect] '10', // animate re-ordering [frames per transition, or '0' for no effect]
'yes', // include open/close toggle buttons ['yes'|'no'] 'yes', // include open/close toggle buttons ['yes'|'no']
'closed', // default state ['open'|'closed'] 'closed', // default state ['open'|'closed']
'open', // word for "open", as in "open this box" 'open', // word for "open", as in "open this box"
'close', // word for "close", as in "close this box" 'close', // word for "close", as in "close this box"
'click-down and drag to move this box', // sentence for "move this box" by mouse 'click-down and drag to move this box', // sentence for "move this box" by mouse
'click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse 'click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse
'use the arrow keys to move this box', // sentence for "move this box" by keyboard 'use the arrow keys to move this box', // sentence for "move this box" by keyboard
', or press the enter key to %toggle% it', // pattern-match sentence-fragment for "(open|close) this box" by keyboard ', or press the enter key to %toggle% it', // pattern-match sentence-fragment for "(open|close) this box" by keyboard
'%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts '%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
); );
var advanced = new dbxGroup( var advanced = new dbxGroup(
'advancedstuff', // container ID [/-_a-zA-Z0-9/] 'advancedstuff', // container ID [/-_a-zA-Z0-9/]
'vertical', // orientation ['vertical'|'horizontal'] 'vertical', // orientation ['vertical'|'horizontal']
'10', // drag threshold ['n' pixels] '10', // drag threshold ['n' pixels]
'yes', // restrict drag movement to container axis ['yes'|'no'] 'yes', // restrict drag movement to container axis ['yes'|'no']
'10', // animate re-ordering [frames per transition, or '0' for no effect] '10', // animate re-ordering [frames per transition, or '0' for no effect]
'yes', // include open/close toggle buttons ['yes'|'no'] 'yes', // include open/close toggle buttons ['yes'|'no']
'closed', // default state ['open'|'closed'] 'closed', // default state ['open'|'closed']
'open', // word for "open", as in "open this box" 'open', // word for "open", as in "open this box"
'close', // word for "close", as in "close this box" 'close', // word for "close", as in "close this box"
'click-down and drag to move this box', // sentence for "move this box" by mouse 'click-down and drag to move this box', // sentence for "move this box" by mouse
'click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse 'click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse
'use the arrow keys to move this box', // sentence for "move this box" by keyboard 'use the arrow keys to move this box', // sentence for "move this box" by keyboard
', or press the enter key to %toggle% it', // pattern-match sentence-fragment for "(open|close) this box" by keyboard ', or press the enter key to %toggle% it', // pattern-match sentence-fragment for "(open|close) this box" by keyboard
'%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts '%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
); );
}); });

File diff suppressed because one or more lines are too long

View File

@ -1,90 +1,90 @@
// @name The Fade Anything Technique // @name The Fade Anything Technique
// @namespace http://www.axentric.com/aside/fat/ // @namespace http://www.axentric.com/aside/fat/
// @version 1.0-RC1 // @version 1.0-RC1
// @author Adam Michela // @author Adam Michela
var Fat = { var Fat = {
make_hex : function (r,g,b) make_hex : function (r,g,b)
{ {
r = r.toString(16); if (r.length == 1) r = '0' + r; r = r.toString(16); if (r.length == 1) r = '0' + r;
g = g.toString(16); if (g.length == 1) g = '0' + g; g = g.toString(16); if (g.length == 1) g = '0' + g;
b = b.toString(16); if (b.length == 1) b = '0' + b; b = b.toString(16); if (b.length == 1) b = '0' + b;
return "#" + r + g + b; return "#" + r + g + b;
}, },
fade_all : function () fade_all : function ()
{ {
var a = document.getElementsByTagName("*"); var a = document.getElementsByTagName("*");
for (var i = 0; i < a.length; i++) for (var i = 0; i < a.length; i++)
{ {
var o = a[i]; var o = a[i];
var r = /fade-?(\w{3,6})?/.exec(o.className); var r = /fade-?(\w{3,6})?/.exec(o.className);
if (r) if (r)
{ {
if (!r[1]) r[1] = ""; if (!r[1]) r[1] = "";
if (o.id) Fat.fade_element(o.id,null,null,"#"+r[1]); if (o.id) Fat.fade_element(o.id,null,null,"#"+r[1]);
} }
} }
}, },
fade_element : function (id, fps, duration, from, to) fade_element : function (id, fps, duration, from, to)
{ {
if (!fps) fps = 30; if (!fps) fps = 30;
if (!duration) duration = 3000; if (!duration) duration = 3000;
if (!from || from=="#") from = "#FFFF33"; if (!from || from=="#") from = "#FFFF33";
if (!to) to = this.get_bgcolor(id); if (!to) to = this.get_bgcolor(id);
var frames = Math.round(fps * (duration / 1000)); var frames = Math.round(fps * (duration / 1000));
var interval = duration / frames; var interval = duration / frames;
var delay = interval; var delay = interval;
var frame = 0; var frame = 0;
if (from.length < 7) from += from.substr(1,3); if (from.length < 7) from += from.substr(1,3);
if (to.length < 7) to += to.substr(1,3); if (to.length < 7) to += to.substr(1,3);
var rf = parseInt(from.substr(1,2),16); var rf = parseInt(from.substr(1,2),16);
var gf = parseInt(from.substr(3,2),16); var gf = parseInt(from.substr(3,2),16);
var bf = parseInt(from.substr(5,2),16); var bf = parseInt(from.substr(5,2),16);
var rt = parseInt(to.substr(1,2),16); var rt = parseInt(to.substr(1,2),16);
var gt = parseInt(to.substr(3,2),16); var gt = parseInt(to.substr(3,2),16);
var bt = parseInt(to.substr(5,2),16); var bt = parseInt(to.substr(5,2),16);
var r,g,b,h; var r,g,b,h;
while (frame < frames) while (frame < frames)
{ {
r = Math.floor(rf * ((frames-frame)/frames) + rt * (frame/frames)); r = Math.floor(rf * ((frames-frame)/frames) + rt * (frame/frames));
g = Math.floor(gf * ((frames-frame)/frames) + gt * (frame/frames)); g = Math.floor(gf * ((frames-frame)/frames) + gt * (frame/frames));
b = Math.floor(bf * ((frames-frame)/frames) + bt * (frame/frames)); b = Math.floor(bf * ((frames-frame)/frames) + bt * (frame/frames));
h = this.make_hex(r,g,b); h = this.make_hex(r,g,b);
setTimeout("Fat.set_bgcolor('"+id+"','"+h+"')", delay); setTimeout("Fat.set_bgcolor('"+id+"','"+h+"')", delay);
frame++; frame++;
delay = interval * frame; delay = interval * frame;
} }
setTimeout("Fat.set_bgcolor('"+id+"','"+to+"')", delay); setTimeout("Fat.set_bgcolor('"+id+"','"+to+"')", delay);
}, },
set_bgcolor : function (id, c) set_bgcolor : function (id, c)
{ {
var o = document.getElementById(id); var o = document.getElementById(id);
o.style.backgroundColor = c; o.style.backgroundColor = c;
}, },
get_bgcolor : function (id) get_bgcolor : function (id)
{ {
var o = document.getElementById(id); var o = document.getElementById(id);
while(o) while(o)
{ {
var c; var c;
if (window.getComputedStyle) c = window.getComputedStyle(o,null).getPropertyValue("background-color"); if (window.getComputedStyle) c = window.getComputedStyle(o,null).getPropertyValue("background-color");
if (o.currentStyle) c = o.currentStyle.backgroundColor; if (o.currentStyle) c = o.currentStyle.backgroundColor;
if ((c != "" && c != "transparent") || o.tagName == "BODY") { break; } if ((c != "" && c != "transparent") || o.tagName == "BODY") { break; }
o = o.parentNode; o = o.parentNode;
} }
if (c == undefined || c == "" || c == "transparent") c = "#FFFFFF"; if (c == undefined || c == "" || c == "transparent") c = "#FFFFFF";
var rgb = c.match(/rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/); var rgb = c.match(/rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/);
if (rgb) c = this.make_hex(parseInt(rgb[1]),parseInt(rgb[2]),parseInt(rgb[3])); if (rgb) c = this.make_hex(parseInt(rgb[1]),parseInt(rgb[2]),parseInt(rgb[3]));
return c; return c;
} }
} }
addLoadEvent(function () { addLoadEvent(function () {
Fat.fade_all(); Fat.fade_all();
}); });

View File

Before

Width:  |  Height:  |  Size: 43 B

After

Width:  |  Height:  |  Size: 43 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 151 B

After

Width:  |  Height:  |  Size: 151 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1001 B

After

Width:  |  Height:  |  Size: 1001 B

Some files were not shown because too many files have changed in this diff Show More