問題タブ [jquery-easing]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1645 参照

jquery - キャッチされていない TypeError: オブジェクト # has no method 'easeOutCubic'

There are slightly less than a billion similar questions on SO, with about the same number of reasons for the error. I just don't seem to find mine.

Kwicks accor

There are slightly less than a billion similar questions on SO, with about the same number of reasons for the error. I just don't seem to find mine.

Kwicks accordian and the jQuery Easing plugin have been working for some time on my site and I'm unaware of any change that I have made that would cause them to misbehave:

http://donmorris.com

My console is showing two errors as I move my mouse over the accordian:

These seem to point to jquery.easing.js not being loaded, but that doesn't seem to be the case. Could someone here with sharper eyes please point out my mistake?


User login session variable. Is it possible to spoof session variable? PHP

When user logs in I use the following strategy to authenticate user:

  1. Username and Password are present in database along with unique Token and Session Identifier
  2. Set session variable $_SESSION['logged_in'] = true if above returns true
  3. On every page (basecontroller) checks if ($_SESSION['logged_in'] > 0) otherwise redirects to login page.

Is it possible that a hacker might somehow set $_SESSION['logged_in'] = true; ? Do I have a security issue with the above strategy?

Please give me an article or anything that can help me make it more secure.

0 投票する
0 に答える
125 参照

jquery - カスタム イージング方程式

私はこのビットのコードを持っています:

ご覧のとおり、 easeInSineイージング関数を使用して、速度を 0 から 500 までアニメーション化しています。これは機能しますが、私が望むものを正確に提供しません。このアニメーションを一定速度で 10 秒間実行し、5 秒間停止するまで徐々に速度を落としたいのですが、イージング関数の書き方がわかりません。

これを行うことで、独自のイージング関数を作成できることを知っています。

私が必要とする部分は、次のようなことをすることです

誰かが私がこれを解決するのを手伝ってくれるなら、私は本当に素晴らしいでしょう.

アップデート

sparky のおかげで、私は今これを得ることができました:

しかし、私にはまだ問題があります。これは 15 秒間実行されますが、最初の数秒間は素晴らしく速く (3 秒間と言います)、残りはゆっくりと停止します。10 秒間高速で実行し、最後の 5 秒間は減速する必要があります。

例をより良くする方法を知っている人はいますか?

乾杯

0 投票する
2 に答える
17048 参照

jquery - slideUp イージング関数による jQuery イージング

StackExchange からこの質問と回答を読んだところですが、解決策がうまくいきません。

これは動作しません:

しかし、これはうまくいきます:

そして、最新のjQuery-1.10.2.jsを使用しています。

何かご意見は?

///

このようなイージング プラグインを追加すると、jsfiddle で動作します。

スクリプト コードは次のようになります。

そして、私はまだこのエラーが発生します:

前もって感謝します!

///

これを単一の div に変更しました。これが私の html で、これがエラー ページです。

**また、実際にオンラインではなくローカルホスト サーバーを使用しています。ローカル サーバーにソース ファイルがありますが、プラグインに影響はありますか?