Created
August 30, 2010 17:46
-
-
Save edorcutt/557752 to your computer and use it in GitHub Desktop.
This file contains 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 a169x87 { | |
meta { | |
name "facebox-jquery-plugin" | |
description << | |
Basic demo of facebox jQuery plugin in a Kynetx application | |
>> | |
author "Ed Orcutt http://edorcutt.org" | |
logging on | |
use javascript resource "http://kynetx.edorcutt.org/facebox/kobj.facebox.js" | |
use css resource "http://kynetx.edorcutt.org/facebox/facebox.css" | |
} | |
dispatch { | |
domain "example.com" | |
} | |
global { | |
} | |
rule first_rule is active { | |
select when pageview ".*" setting () | |
pre { | |
demoHTML = << | |
<a href="http://kynetx.edorcutt.org/facebox/demo/stairs.jpg" rel="facebox">View 'stairs.jpg' in the Facebox</a><br> | |
<a href="#info" rel="facebox">View the 'info' div in the Facebox</a><br> | |
<div id='info' style='display:none;'> | |
<p> Hey, I am the 'info' div! </p> | |
<p> I look like this: </p> | |
<code> | |
<div id='info' style='display:none;'> <br/> | |
text<br/> | |
</div> | |
</code> | |
</div> | |
>>; | |
} | |
{ | |
notify("Facebox Demo", demoHTML) with sticky = true and background_color = "#888888"; | |
emit << $K('a[rel*=facebox]').facebox() >>; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment