-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
ColorBox Core Style | ||
The following rules are the styles that are consistant between themes. | ||
Avoid changing this area to maintain compatability with future versions of ColorBox. | ||
*/ | ||
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;} | ||
#cboxOverlay{position:fixed; width:100%; height:100%;} | ||
#cboxMiddleLeft, #cboxBottomLeft{clear:left;} | ||
#cboxContent{position:relative;} | ||
#cboxLoadedContent{overflow:auto;} | ||
#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;} | ||
#cboxTitle{margin:0;} | ||
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;} | ||
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;} | ||
|
||
/* | ||
ColorBox example user style | ||
The following rules are ordered and tabbed in a way that represents the | ||
order/nesting of the generated HTML, so that the structure easier to understand. | ||
*/ | ||
#cboxOverlay{background:#000;} | ||
|
||
#colorbox{} | ||
#cboxContent{margin-top:20px;} | ||
#cboxLoadedContent{background:#000; padding:5px;} | ||
#cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;} | ||
#cboxCurrent{position:absolute; top:-20px; right:0px; color:#ccc;} | ||
#cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;} | ||
#cboxPrevious{position:absolute; top:50%; left:5px; margin-top:-32px; background:url(images/controls.png) top left no-repeat; width:28px; height:65px; text-indent:-9999px;} | ||
#cboxPrevious.hover{background-position:bottom left;} | ||
#cboxNext{position:absolute; top:50%; right:5px; margin-top:-32px; background:url(images/controls.png) top right no-repeat; width:28px; height:65px; text-indent:-9999px;} | ||
#cboxNext.hover{background-position:bottom right;} | ||
#cboxLoadingOverlay{background:#000;} | ||
#cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;} | ||
#cboxClose{position:absolute; top:5px; right:5px; display:block; background:url(images/controls.png) top center no-repeat; width:38px; height:19px; text-indent:-9999px;} | ||
#cboxClose.hover{background-position:bottom center;} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright (C) 2009 Joel Sutherland | ||
* Licenced under the MIT license | ||
* http://www.newmediacampaigns.com/page/jquery-flickr-plugin | ||
* | ||
* Available tags for templates: | ||
* title, link, date_taken, description, published, author, author_id, tags, image* | ||
*/ | ||
(function($){$.fn.jflickrfeed=function(settings,callback){settings=$.extend(true,{flickrbase:'http://api.flickr.com/services/feeds/',feedapi:'photos_public.gne',limit:20,qstrings:{lang:'en-us',format:'json',jsoncallback:'?'},cleanDescription:true,useTemplate:true,itemTemplate:'',itemCallback:function(){}},settings);var url=settings.flickrbase+settings.feedapi+'?';var first=true;for(var key in settings.qstrings){if(!first) | ||
url+='&';url+=key+'='+settings.qstrings[key];first=false;} | ||
return $(this).each(function(){var $container=$(this);var container=this;$.getJSON(url,function(data){$.each(data.items,function(i,item){if(i<settings.limit){if(settings.cleanDescription){var regex=/<p>(.*?)<\/p>/g;var input=item.description;if(regex.test(input)){item.description=input.match(regex)[2] | ||
if(item.description!=undefined) | ||
item.description=item.description.replace('<p>','').replace('</p>','');}} | ||
item['image_s']=item.media.m.replace('_m','_s');item['image_t']=item.media.m.replace('_m','_t');item['image_m']=item.media.m.replace('_m','_m');item['image']=item.media.m.replace('_m','');item['image_b']=item.media.m.replace('_m','_b');delete item.media;if(settings.useTemplate){var template=settings.itemTemplate;for(var key in item){var rgx=new RegExp('{{'+key+'}}','g');template=template.replace(rgx,item[key]);} | ||
$container.append(template)} | ||
settings.itemCallback.call(container,item);}});if($.isFunction(callback)){callback.call(container,data);}});});}})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.thumbs { margin: 0; padding: 0; overflow: hidden; } | ||
.thumbs li { list-style: none; float: left; margin: 5px; padding: 3px; background: #eee; -moz-box-shadow: 0 0 4px #444; -webkit-box-shadow: 0 0 2px #000; } | ||
.thumbs li a { } | ||
.thumbs li img { display: block; } | ||
.thumbs li a img { border: none;} | ||
|
||
#cycle { margin: 0; padding: 0; width: 250px; height: 200px; padding: 3px; background: #eee; -moz-box-shadow: 0 0 2px #000; -webkit-box-shadow: 0 0 2px #000;} | ||
#cycle li { position: relative; list-style: none; margin: 0; padding: 3px; width: 250px; height: 200px; overflow: hidden; } | ||
#cycle li div { position: absolute; bottom: 3px; left: 3px; padding: 3px; width: 180px; background: black; color: white; font-size: 12px; opacity: .8; } |