Dear visitors, IOP Wiki is currently the target of a denial of service campaign. We are investigating countermeasures. In the meantime, the Wiki may experience periods of unplanned downtime.

Widget:indexSorterGrouper: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
Two different approachs?
m First element, too
Line 296: Line 296:
     var parent = $(this);
     var parent = $(this);
     // All elements inside the paragraph after the h2 which have special class
     // All elements inside the paragraph after the h2 which have special class
     var elements = parent.next().children().nextUntil("h2", ".card-bg-small");
     var elements = parent.next().children().nextUntil("h2", ".card-bg-small").addBack();
     // Or the old way...
     // Or the old way...
     if (elements.length == 0) elements = parent.nextUntil("h2", ".card-bg-small");
     if (elements.length == 0) elements = parent.nextUntil("h2", ".card-bg-small").addBack();
    
    
     elements.detach().sort(comparer);
     elements.detach().sort(comparer);

Revision as of 15:32, 10 November 2019


 

Released on this server:

Some heading