Team:KAIST-Korea/jihan

From 2011.igem.org

(Difference between revisions)
 
(8 intermediate revisions not shown)
Line 24: Line 24:
/* This is basic - uses default settings */
/* This is basic - uses default settings */
-
 
-
$("a.kaistcontent").fancybox({
 
-
'autoScale' : true
 
-
});
 
$("a#single_image").fancybox({
$("a#single_image").fancybox({
-
'autoScale' : true
+
'autoScale' : true,
 +
'overlayColor' : '#000',
 +
'overlayOpacity' : 0.85
});
});
Line 36: Line 34:
$("a.gallery").fancybox({
$("a.gallery").fancybox({
-
'autoScale' : true
+
'autoScale' : true,
 +
'overlayColor' : '#000',
 +
'overlayOpacity' : 0.85
});
});
-
$("a.videos").fancybox({
+
$(".video").click(function() {
 +
$.fancybox({
'padding' : 0,
'padding' : 0,
-
'autoScale' : false,
+
'autoScale' : true,
 +
'overlayColor' : '#000',
 +
'overlayOpacity' : 0.85,
'transitionIn' : 'none',
'transitionIn' : 'none',
'transitionOut' : 'none',
'transitionOut' : 'none',
'title' : this.title,
'title' : this.title,
-
'width' : 680,
+
'titlePosition' : 'outside',
-
'height' : 495,
+
'width' : 640,
 +
'height' : 360,
'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
'type' : 'swf',
'type' : 'swf',
'swf' : {
'swf' : {
-
  'wmode' : 'transparent',
+
'wmode' : 'transparent',
-
'allowfullscreen' : 'true'
+
'allowfullscreen' : 'true'
}
}
 +
});
 +
return false;
 +
});
 +
});
});
-
});
+
 
</script>
</script>
Line 583: Line 591:
font-weight:normal;
font-weight:normal;
font:Arial 11pt;
font:Arial 11pt;
-
line-height:100%;
+
line-height:110%;
}
}

Latest revision as of 01:12, 21 August 2011