From 40ec1aebf48708446c4fb19d23f97fa11a3fcc83 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 5 Sep 2010 02:34:06 +0200 Subject: [PATCH] adding files --- build/js/ox.load.js | 44 ++++++++++++++++++++++++++++++++++++ build/json/ox.ui.images.json | 1 + 2 files changed, 45 insertions(+) create mode 100644 build/js/ox.load.js create mode 100644 build/json/ox.ui.images.json diff --git a/build/js/ox.load.js b/build/js/ox.load.js new file mode 100644 index 0000000..b853262 --- /dev/null +++ b/build/js/ox.load.js @@ -0,0 +1,44 @@ +(function() { + var image = new Image(), + src = document.scripts ? + document.scripts[0].getAttribute('src') + .replace('js/ox.load.js', 'png/ox.ui.classic/loading.png') : + '/static/oxjs/build/png/ox.ui.classic/loading.png'; + image.src = src; + image.onload = function() { + var deg = 0, + img = document.createElement('img'), + key, + style = { + position: 'absolute', + left: 0, + top: 0, + right: 0, + bottom: 0, + width: '32px', + height: '32px', + margin: 'auto', + //opacity: 0, + MozUserSelect: 'none', + WebkitUserSelect: 'none' + }; + img.setAttribute('src', src); + for (var key in style) { + img.style[key] = style[key]; + } + document.body ? loaded() : document.addEventListener('DOMContentLoaded', loaded, false); + function loaded() { + //var opacity = 0; + document.removeEventListener('DOMContentLoaded', loaded, false); + //document.body.style.background = 'rgb(240, 240, 240)'; + document.body.appendChild(img); + setInterval(function() { + //opacity += 0.083 + deg = (deg + 30) % 360; + //img.style.opacity = Math.max(opacity, 1); + img.style.MozTransform = 'rotate(' + deg + 'deg)'; + img.style.WebkitTransform = 'rotate(' + deg + 'deg)'; + }, 83); + } + } +})(); \ No newline at end of file diff --git a/build/json/ox.ui.images.json b/build/json/ox.ui.images.json new file mode 100644 index 0000000..c491fb6 --- /dev/null +++ b/build/json/ox.ui.images.json @@ -0,0 +1 @@ +["png/ox.ui/browserChrome128.png", "png/ox.ui/browserFirefox128.png", "png/ox.ui/browserInternetExplorer128.png", "png/ox.ui/browserOpera128.png", "png/ox.ui/browserSafari128.png", "png/ox.ui/markerBlue.png", "png/ox.ui/markerGreen.png", "png/ox.ui/markerRed.png", "png/ox.ui/markerYellow.png", "png/ox.ui/videoMarkerCut.png", "png/ox.ui/videoMarkerIn.png", "png/ox.ui/videoMarkerInBottom.png", "png/ox.ui/videoMarkerInTop.png", "png/ox.ui/videoMarkerOut.png", "png/ox.ui/videoMarkerOutBottom.png", "png/ox.ui/videoMarkerOutTop.png", "png/ox.ui/videoMarkerPlay.png", "png/ox.ui.classic/loading.png", "png/ox.ui.classic/scrollbarHorizontalDecrement.png", "png/ox.ui.classic/scrollbarHorizontalIncrement.png", "png/ox.ui.classic/scrollbarVerticalDecrement.png", "png/ox.ui.classic/scrollbarVerticalIncrement.png", "png/ox.ui.classic/symbolAbove.png", "png/ox.ui.classic/symbolAdd.png", "png/ox.ui.classic/symbolBelow.png", "png/ox.ui.classic/symbolCheck.png", "png/ox.ui.classic/symbolClear.png", "png/ox.ui.classic/symbolClose.png", "png/ox.ui.classic/symbolCollapse.png", "png/ox.ui.classic/symbolDate.png", "png/ox.ui.classic/symbolEdit.png", "png/ox.ui.classic/symbolExpand.png", "png/ox.ui.classic/symbolFind.png", "png/ox.ui.classic/symbolHelp.png", "png/ox.ui.classic/symbolInfo.png", "png/ox.ui.classic/symbolLocation.png", "png/ox.ui.classic/symbolLock.png", "png/ox.ui.classic/symbolMute.png", "png/ox.ui.classic/symbolNext.png", "png/ox.ui.classic/symbolNone.png", "png/ox.ui.classic/symbolPause.png", "png/ox.ui.classic/symbolPlay.png", "png/ox.ui.classic/symbolPrevious.png", "png/ox.ui.classic/symbolRemove.png", "png/ox.ui.classic/symbolSelect.png", "png/ox.ui.classic/symbolSpin.png", "png/ox.ui.classic/symbolTime.png", "png/ox.ui.classic/symbolUnlock.png", "png/ox.ui.classic/symbolUnmute.png", "png/ox.ui.classic/symbolUser.png", "png/ox.ui.classic/symbolVolume.png", "png/ox.ui.classic/symbolWarning.png", "png/ox.ui.future/buttonAdd.png", "png/ox.ui.future/buttonClose.png", "png/ox.ui.future/buttonPause.png", "png/ox.ui.future/buttonPlay.png", "png/ox.ui.future/buttonRemove.png", "png/ox.ui.modern/buttonClear.png", "png/ox.ui.modern/icon.png", "png/ox.ui.modern/iconFind.png", "png/ox.ui.modern/loading.png", "png/ox.ui.modern/scrollbarHorizontalDecrement.png", "png/ox.ui.modern/scrollbarHorizontalIncrement.png", "png/ox.ui.modern/scrollbarVerticalDecrement.png", "png/ox.ui.modern/scrollbarVerticalIncrement.png", "png/ox.ui.modern/symbolAbove.png", "png/ox.ui.modern/symbolAdd.png", "png/ox.ui.modern/symbolBelow.png", "png/ox.ui.modern/symbolCheck.png", "png/ox.ui.modern/symbolClear.png", "png/ox.ui.modern/symbolClose.png", "png/ox.ui.modern/symbolCollapse.png", "png/ox.ui.modern/symbolDate.png", "png/ox.ui.modern/symbolEdit.png", "png/ox.ui.modern/symbolExpand.png", "png/ox.ui.modern/symbolFind.png", "png/ox.ui.modern/symbolGoToIn.png", "png/ox.ui.modern/symbolGoToOut.png", "png/ox.ui.modern/symbolHelp.png", "png/ox.ui.modern/symbolInfo.png", "png/ox.ui.modern/symbolLocation.png", "png/ox.ui.modern/symbolLock.png", "png/ox.ui.modern/symbolMute.png", "png/ox.ui.modern/symbolNext.png", "png/ox.ui.modern/symbolNone.png", "png/ox.ui.modern/symbolPause.png", "png/ox.ui.modern/symbolPlay.png", "png/ox.ui.modern/symbolPlayInToOut.png", "png/ox.ui.modern/symbolPrevious.png", "png/ox.ui.modern/symbolRemove.png", "png/ox.ui.modern/symbolSelect.png", "png/ox.ui.modern/symbolSetIn.png", "png/ox.ui.modern/symbolSetOut.png", "png/ox.ui.modern/symbolTime.png", "png/ox.ui.modern/symbolUnlock.png", "png/ox.ui.modern/symbolUnmute.png", "png/ox.ui.modern/symbolUser.png", "png/ox.ui.modern/symbolVolume.png", "png/ox.ui.modern/symbolWarning.png"] \ No newline at end of file