- Have 5 pages
- Each page has a link for "Sign-in/Log-in" on the topbar
- Lets say user is on "HomePage" and he clicks "Log-in" button on the topbar
- I want "Homepage" to go in background (opacity=0.2) and put the "Log-in" pop-up in front (z-index: 100)
- Same behavior is expected for all 5 pages -
私がしたことは次のようなものです:
-----------------Page 1----------
div.HomePage
div.accountPage
-----------------Page 2----------
div.BrowsePage
div.accountPage
-----------------Page 3----------
...
次に、実行時にjavascriptを使用して不透明度とz-indexプロパティを設定します。メインページごとにHTML/jadeでaccountPageのコードを5回繰り返していますが、JavaScriptコードはこのアプローチではきれいに見えません。
- What I want is to create a TOTALLY SEPARATE "accountPage",
- Display on it click of "Login" button.
- Find out which of the 5 main pages user was on **/* This I dont know how to do */**
- Set that main page to background with opacity = 0.2
- Popup the accountPage for Login in front.
- After Login or cancel, bring the main page (user was on), back to focus
助けてください。