Topic: JQuery+fancybox on IC

What do you guys think, if ic used JQuery and fancybox(or something like that) to make site usage more smooth. Mostly, id use it to avoid all those popup windows on map, and reloading whole pages when only a part of it changes.

what i have in mind, is basically some menu with actions that pops up when e.g a planet is clicked [attack,explore,opps] and when you click on any of those, it will replace the menu with appropriate page. All this without leaving the system view. 

Same could be done on planets page. every time you build something, you have to go back and forth between planets page, reloading it every time.
and...there should be a way to select multiple checkboxes on planets page by click dragging or click-shift click, Like in google mail, where you can select your messages by click and shift click on some other message.

Re: JQuery+fancybox on IC

Here is something to make players life easier.
Copy pasting this at the end of ic planets page, or adding it through dev console enables selecting multiple checkboxes on planets page by shift click.
Click one checkbox....and hen another with shift click, and this will select all checkboxes that are in between.
//If ic doesnt have JQuery loaded, this will do ...
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>

prevSel=null;
boxes = $("[name*='planet[]']");
boxes.click(function(evt) {
    var box = $(evt.target),b,pos,currentPos,prevPos;
    if (evt.shiftKey) {
        if(prevSel!=null){
            prevPos = prevSel.offset();
            currentPos= box.offset();
            for(i=0;i < boxes.length;i++){
                b=$(boxes[i]);
                pos = b.offset();
                if( (pos.top < currentPos.top) && (pos.top > prevPos.top)){b.attr("checked","checked");}
                if( (pos.top < prevPos.top) && (pos.top > currentPos.top)){b.attr("checked","checked");}
            }
        }   
    }
    prevSel = box;
});

Re: JQuery+fancybox on IC

what i have in mind, is basically some menu with actions that pops up when e.g a planet is clicked [attack,explore,opps] and when you click on any of those, it will replace the menu with appropriate page. All this without leaving the system view.

Same could be done on planets page. every time you build something, you have to go back and forth between planets page, reloading it every time.

- Wrong u can use multi build


and...there should be a way to select multiple checkboxes on planets page by click dragging or click-shift click, Like in google mail, where you can select your messages by click and shift click on some other message.

- Wrong, Click advanced mode and u have checkboxes.

Re: JQuery+fancybox on IC

"- Wrong u can use multi build"

I know, ive been playing ic for 17 rounds now.
I

Re: JQuery+fancybox on IC

i dont see the point it will make people lazy, wheres the fun in scripts doing all ur work? its basically cheatzors

Re: JQuery+fancybox on IC

what you need to do is talk to PS, because I dont really know anything about this kind of stuff, but i believe that this would involve more or less completely rebuilding IC from the ground up, due to the haphazard manner in which the IC code is currently put together.

Never attribute to malice that which is adequately explained by stupidity.

7 (edited by Needle 24-Sep-2011 15:48:26)

Re: JQuery+fancybox on IC

"i dont see the point it will make people lazy, wheres the fun in scripts doing all ur work? its basically cheatzors"

Im not talking about programming an AI to play the game for you, im talking about making the "play" part bigger and better.
Clicking checkboxes 50 times a row is not my idea of fun. loading pages back and forth neither.

The idea would be to take out the tedious and repetitive part.
Things like ...clicking through systems in main map to find somebody, typing  in coords to attack someone(all coords could be links that pop up an actions menu).

etc etc.

ps, that script should work with no modifications to ic, other than to copy paste it at the end of planets page.

Re: JQuery+fancybox on IC

Needle wrote:

and...there should be a way to select multiple checkboxes on planets page by click dragging or click-shift click, Like in google mail, where you can select your messages by click and shift click on some other message.

Added!! + Tagpointed! smile

Didn't use your code, but it's pretty generic anyway.

You probably will never read this (quite an old thread), but I'm replying for closure tongue

PS:  Where are all these players that had good ideas gone? sad

Re: JQuery+fancybox on IC

I turnes the popups off in my settings

Been dreaming, I've been waiting, To fly with those brave ponies
The Wonderbolts, their daring tricks, Spinning 'round and having kicks
Perform for crowds of thousands, They'll shower us with diamonds
The Wonderbolts will see me right here at the Gala!