Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Kodeblok
<script type="text/javascript" charset="utf-8">
  AJS.$(document).ready(function(){
    AjS.$("a[rel^='mylightbox']").mylightbox();
  });
</script>

 

Somewhere else in the filesystem

Download the lightbox zip, upload it to the server and place the files under the install:

Kodeblok
cd /data
mkdir mylightbox
cd mylightbox
mv ~/mylightbox.zip .

unzip mylightbox.zip
 
ln -s /data/mylightbox  /opt/confluence/confluence/mylightbox

 

Now these can be referenced as /opt/confluence/confluence id the server root, so in Custom HTML add:

Kodeblok
<!-- MyLignbox -->
<link rel="stylesheet" href="/mylightbox/css/mylightbox.css" type="text/css" media="screen" charset="utf-8" />
<script src="/mylightbox/js/jquery.mylightbox.js" type="text/javascript" charset="utf-8"></script>

 

...

Some lighboxes requires to be initiated ($ is AJS.$ for Confluence):

Kodeblok
<script type="text/javascript" charset="utf-8">
  AJS.$(document).ready(function(){
    AjS.$("a[rel^='mylightbox']").mylightbox();
  });
</script>

 

Confluence page based