Drop-in jQuery replacement for the LemonStand frontend library.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
frontend.css
frontend.js
readme.md

readme.md

ls-frontend-jquery

jQuery alternative to the front-end library for LemonStand.

Installation

  1. Remove <?= include_resources() ?> from your templates.
  2. Include jQuery first, then ls_frontend.js into your template.
  3. Include ls_frontend.css if you want default styles.
  4. Remove any references to jQuery.noConflict(). The $ (money) variable is required.

Example (upload files and change the appropriate paths)

<link href="<?= root_url('/') ?>resources/css/ls_frontend.css" rel="stylesheet" media="screen" />
<script src="<?= root_url('/') ?>resources/js/jquery-1.4.2.min.js"></script>
<script src="<?= root_url('/') ?>resources/js/ls_frontend.js"></script>

Technical

MooTools (language prototyping, class centric), is a much different library than jQuery (chaining, functional plugin centric). Compromises have been made to maintain backwards compatibility.