Versioner sammenlignet

Nøgle

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

...

Confluence

...

also

...

uses

...

Fancybox,

...

this

...

can

...

give

...

issues, at this moment this is not working i v4.1

Name

include-fancybox

Macro Body Processing

No macro body

Output format

HTML

Usage

{include-fancybox}

This should actualle be called "attach-fancybox"

...

as

...

is

...

attaches

...

the

...

build

...

in

...

fancybox

...

(bundled

...

with

...

Confluence

...

in

...

the

...

Advanced

...

Macros)

...

to

...

object

...

with

...

id

...

"single_image"

...

I

...

use

...

it

...

i

...

conjunction

...

with

...

User Macro: me-image

...

-

...

Image

...

lightbox

...

with

...

fancybox

Code

Kodeblok
]

Code 
{code}
<script type="text/javascript">
AJS.toInit(function () {
	jQuery('a#single_image').fancybox({
		'width'         : '80%',
		'height'        : '80%',
		'speedIn'		:	600,
		'speedOut'		:	200,
		'overlayShow'	:	false
	});
});
</script>
{code}

Alternate

...

code

...

that

...

scales

...

picture

...

after

...

UserAgent,

...

see

...

more here

Kodeblok
<script type="text/javascript">

 {here|http://davidwalsh.name/detect-ipad}

{code}
var isiPad = navigator.userAgent.match(/iPad/i) != null;

if (isiPad)
{
var vWidth='50%';
var vHeight='50%';
}
else
{
var vWidth='100%';
var vHeight='100%';
}

AJS.toInit(function () {
{code}	jQuery('a#single_image').fancybox({
		'width'         : vWidth,
		'height'        : vHeight,
		'speedIn'		:	600,
		'speedOut'		:	200,
		'overlayShow'	:	false
	});
});
</script>