Giter VIP home page Giter VIP logo

jquery.global_menu's People

Contributors

jungissei avatar

Watchers

 avatar  avatar

jquery.global_menu's Issues

スクロール固定

目的

テスト項目(要件)

タスク詳細

  • XXXX
  • XXXX
  • XXXX

参考 URL

その他

scroll down up のクラス名を使用しておきたい

  GlobalMenu.prototype.gm_position_fixed_view_out = function() {
    let _ = this,
        is_fixed = 'is_fixed',
        is_scroll_up = 'is_scroll_up',
        is_scroll_down = 'is_scroll_down',
        last_position = 0,
        curr_position = 0;

    $(window).on('scroll', function(){
      if(parseInt($(area_header).offset().top + $(area_header).height()) < $(window).scrollTop()){

        curr_position = $(this).scrollTop();
        let remove_class = curr_position <= last_position?
              is_scroll_down : is_scroll_up,
            add_class = curr_position <= last_position?
              is_scroll_up : is_scroll_down;

        $area_header
          .removeClass(remove_class)
          .addClass(
            add_class + ' ' +
            is_fixed
          );

        last_position = curr_position;

      }else{
        $area_header.removeClass(
          is_scroll_up + ' ' +
          is_scroll_down + ' ' +
          is_fixed
        );

      }

    });
  }

.gm_item_name がaタグの時の挙動設定

目的

タッチディスプレイじゃない時
→aタグ動かない

タッチディスプレイ
768以上:→aタグ動かない
767以下:→aタグにする

テスト項目(要件)

タスク詳細

  • XXXX
  • XXXX
  • XXXX

参考 URL

その他

グローバルメニュープラグイン作成

テスト項目(要件)

  • サブメニュー・メガメニュー機能
    • PC時にホバーで出てくるか
    • タッチディスプレイ時にタップで出てくるか
  • スクロール追従機能
    • スクロール時に追従するか
  • その他機能
    • SP時は非表示になるか
    • 表示ページURLの第一階層と一致するグローバルメニューのアイテムに「.active」付与

タスク詳細

  • グローバルメニュープラグイン作成
  • README.md作成

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.