Compare Revisions

Linear-gradient Generator

Revision 470955:

Revision 470955 by gabriel_ivanica on

Revision 470957:

Revision 470957 by gabriel_ivanica on

Title:
Linear-gradient Generator
Linear-gradient Generator
Slug:
Web/CSS/Tools/Linear-gradient_Generator
Web/CSS/Tools/Linear-gradient_Generator
Content:

Revision 470955
Revision 470957
n3207         * Axes Managern3207         * AxesManager Manager
n3211                var axes = [];n3211                var lg_axes = [];
n3214                var axes_menu = null;n3214                var lg_axes_menu = null;
n3250                        axes.push(axis);n3250                        lg_axes.push(axis);
n3257                        var axis = createClassElement('div', 'axin3257                        var axis = createClassElement('div', 'axi
>s', axes_menu);>s', lg_axes_menu);
n3261                        axis.style.left = (axes.length - 1) * 60 n3261                        axis.style.left = (lg_axes.length - 1) * 
>+ 'px';>60 + 'px';
n3281                                var swap = axes[from];n3281                                var swap = lg_axes[from];
3282                                axes[from] = axes[to];3282                                lg_axes[from] = lg_axes[to];
3283                                axes[to] = swap;3283                                lg_axes[to] = swap;
n3340 n
n3436                                var len = lg_axes.length;n3435                                var len = lg_axes.length, i = 0;
3437                                for (i=0; i< 4)3436                                while(i++< 4)
tt3441 
3442                var getNextAxisID = function getNextAxisID() {
3443                        var ids = [];
3444                        var idx = 0;
3445                        var i = 0;
3446                        var len = lg_axes.length;
3447 
3448                        while(i++< lg_axes.length) {
3449                                if (ids[idx] !== true)
3450                                        return idx;
3451                                idx++;
3452                        }
3453 
3454                        return idx;
3455                };
3456 
3457                var getOrderID = function getOrderID(axisID) {
3458                        var len = lg_axes.length, i = 0;
3459                        while(i++

Back to History