Skip to content

Instantly share code, notes, and snippets.

@edorcutt
Created August 30, 2010 17:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edorcutt/557752 to your computer and use it in GitHub Desktop.
Save edorcutt/557752 to your computer and use it in GitHub Desktop.
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>
&lt;div id='info' style='display:none;'&gt; <br/>
&nbsp;&nbsp;text<br/>
&lt;/div&gt;
</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