/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/js/examplesMenu.js

  • Committer: Gustav Hatvigsson
  • Date: 2013-05-28 15:21:12 UTC
  • mfrom: (83.2.23 pvp)
  • Revision ID: gustav.hartvigsson@gmail.com-20130528152112-pn1d6h8o6udcia0b
merged  Bigestans:s changes.


* Moved login JS to bannermenu.js and removed login.js
* Removed deprecated login CSS and JS
* Fixed login functionality -- now shows validation errors directly in the login popup, works through ajax
* Added a nifty little icon to represent the disabled login hint button
* Removed temporary functions from cms controller: tempLogin(), tempLogout(), test()
* Cleaned up ajax.php and cms.php

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Functions */
 
2
$(document).ready(function(){
 
3
 
 
4
        
 
5
        /* When menu item is clicked, scroll down to target with -64px offset. 
 
6
         * Target is decided according to h1[name='xxx'] instead of id. 
 
7
         */
 
8
        $('#navigation li.menuLink').click(function(e) {
 
9
            e.preventDefault();
 
10
                $this =$(this);
 
11
            var target = ($this.data('name') + ', h1[name="' + $this.data('name') + '"]');
 
12
            $target = $(target);
 
13
            $('html, body').stop().animate({
 
14
                'scrollTop': $target.offset().top -64
 
15
            }, 400, 'swing');
 
16
        });
 
17
});
 
 
b'\\ No newline at end of file'