Created
August 23, 2010 15:58
-
-
Save MikeGrace/545757 to your computer and use it in GitHub Desktop.
Kynetx app that puts see through overlay on page as example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruleset a60x307 { | |
| meta { | |
| name "see-through-overlay" | |
| description << | |
| see-through-overlay | |
| >> | |
| author "Mike Grace" | |
| logging on | |
| } | |
| global { | |
| css << | |
| #over-the-top-crazy { | |
| position: absolute; | |
| background-color: #999; | |
| z-index: 500; | |
| top: 0px; | |
| left: 0px; | |
| display: none; | |
| opacity:0.5; | |
| filter:alpha(opacity=50); | |
| } | |
| >>; | |
| } | |
| rule overlay is active { | |
| select when pageview ".*" | |
| pre { | |
| overlay =<< | |
| <div id="over-the-top-crazy"> </div> | |
| >>; | |
| } | |
| { | |
| notify("Running","Wild!") with sticky = true; | |
| append("body",overlay); | |
| emit << | |
| $K("#over-the-top-crazy").css({"width":$K(window).width(),"height":$K(window).height()}); | |
| $K("#over-the-top-crazy").fadeIn("6000"); | |
| >>; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment