Team:Columbia-Cooper-NYC/trial
From 2012.igem.org
(Difference between revisions)
Line 5: | Line 5: | ||
<style type="text/css"> | <style type="text/css"> | ||
+ | |||
+ | |||
+ | /* | ||
@charset "utf-8"; | @charset "utf-8"; | ||
- | + | ||
+ | |||
+ | CSS Document */ | ||
+ | |||
.lof-slidecontent, .lof-slidecontent a { | .lof-slidecontent, .lof-slidecontent a { | ||
color:#FFF; | color:#FFF; | ||
Line 196: | Line 202: | ||
} | } | ||
- | |||
- | |||
- | |||
#hokkaidou-container{ | #hokkaidou-container{ | ||
Line 206: | Line 209: | ||
padding: 0; | padding: 0; | ||
} | } | ||
- | |||
- | |||
- | |||
#hokkaidou-content | #hokkaidou-content | ||
{ | { | ||
Line 226: | Line 226: | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function () { | $(document).ready(function () { | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | jQuery.cookie = function (d, f, b) { function e(j, i) { if (j) { if (i) { return true } } return false } if (e(arguments.length > 1, String(f) !== "[object Object]")) { b = jQuery.extend({}, b); if (f === null || f === undefined) { b.expires = -1 } if (typeof b.expires === "number") { var h = b.expires, c = b.expires = new Date(); c.setDate(c.getDate() + h) } f = String(f); return (document.cookie = [encodeURIComponent(d), "=", b.raw ? f : encodeURIComponent(f), b.expires ? "; expires=" + b.expires.toUTCString() : "", b.path ? "; path=" + b.path : "", b.domain ? "; domain=" + b.domain : "", b.secure ? "; secure" : ""].join("")) } b = f || {}; var a, g = b.raw ? function (i) { return i } : decodeURIComponent; return (a = new RegExp("(?:^|; )" + encodeURIComponent(d) + "=([^;]*)").exec(document.cookie)) ? g(a[1]) : null }; | ||
+ | |||
+ | |||
+ | $('.right-menu, .left-menu').fadeTo(0, 0); | ||
+ | $('.right-menu, .left-menu').bind('mouseover', function () { | ||
+ | $(this).fadeTo('slow', 1); | ||
+ | }); | ||
+ | |||
+ | |||
+ | $(function () { | ||
+ | $('img').each(function () { | ||
+ | var thumb = $(this).attr('src'); | ||
+ | var reg = new RegExp('^(\/wiki\/images)\/thumb'); | ||
+ | if (thumb.match(reg)) { | ||
+ | var image = thumb.replace(reg, '$1'); | ||
+ | image = image.replace(/[^\/]+?$/, '').replace(/\/$/, ''); | ||
+ | var $tag = $('<img>').attr('src', image); | ||
+ | $(this).closest('a').bind('click', function () { | ||
+ | $('<div>').append($tag).lightbox_me(); | ||
+ | return false; | ||
+ | }); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
var buttons = { | var buttons = { | ||
previous: $('#lofslidercontent45 .lof-previous'), | previous: $('#lofslidercontent45 .lof-previous'), | ||
Line 273: | Line 286: | ||
buttons: buttons | buttons: buttons | ||
}); | }); | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
}); | }); | ||
</script> | </script> |
Revision as of 13:57, 3 October 2012