Skip to content

Why using jquery #3

@onigetoc

Description

@onigetoc

Hi, your script work great but i just realised that you used jQuery who is 93k for 4 lines of jquery code,
It would be easy to write these lines in pure javascript and get rid of jQuery.

oh and to make it more dynamic i changed the * 4 for: (ok in jQuery code)

page_count = $("#pageWrapper .page").length;
$('#pageScroller').css('width', wrapperWidth * page_count); // GC

Regard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions