File: mootools-domready-rainbow.js

package info (click to toggle)
phpmyadmin 4%3A3.3.7-11
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 19,656 kB
  • ctags: 112,701
  • sloc: php: 196,369; sh: 617; sql: 208; perl: 142; python: 105; makefile: 42
file content (16 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
window.addEvent('domready', function() {
	var r = new MooRainbow('myRainbow', {
		'startColor': [58, 142, 246],
		'imgPath': 'js/mooRainbow/images/',
		'onChange': function(color) {
			top.frame_navigation.document.getElementById('body_leftFrame').style.backgroundColor = color.hex;
			top.frame_navigation.document.getElementById('pmalogo').style.backgroundColor = color.hex;
			top.frame_content.document.body.style.backgroundColor = color.hex;
			},
		'onComplete': function(color) {
			top.frame_content.document.getElementById('rainbowform').custom_color.value = color.hex;
			top.frame_content.document.getElementById('rainbowform').custom_color_rgb.value = color.rgb;
			top.frame_content.document.getElementById('rainbowform').submit();
			}
	});
});