PageSourceSearch

https://bki.cz/wp-content/themes/bki/js/flickr.js?ver=1.0

js bki.cz collected 2026-10-03 20:36:18 UTC 1,810 bytes, 24 lines download raw bytes

1/*FLICKR FEEDS PLUGIN STARTS*/ 
2
3
4/*
5* Copyright (C) 2009 Joel Sutherland
6* Licenced under the MIT license
7* http://www.newmediacampaigns.com/page/jquery-flickr-plugin
8*
9* Available tags for templates:
10* title, link, date_taken, description, published, author, author_id, tags, image*
11*/
12(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)
13url+='&';url+=key+'='+settings.qstrings[key];first=false;}
14return $(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]
15if(item.description!=undefined)
16item.description=item.description.replace('<p>','').replace('</p>','');}}
17item['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]);}
18$container.append(template)}
19settings.itemCallback.call(container,item);}});if($.isFunction(callback)){callback.call(container,data);}});});}})(jQuery);
20 /*FLICKR FEEDS PLUGIN ENDS*/
21
22
23 
24

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.