PageSourceSearch

https://www.privilegetoulouse.com/js/libraries/spectagram/spectragram.min.js

js privilegetoulouse.com collected 2026-09-26 07:25:47 UTC 2,215 bytes, 1 lines download raw bytes

1"function"!=typeof Object.create&&(Object.create=function(t){function a(){}return a.prototype=t,new a}),function(t,a,e,s){var n={API_URL:"https://graph.instagram.com/me/media?fields=",API_FIELDS:"caption,media_url,media_type,permalink,timestamp,username",initialize:function(a,e){this.elem=e,this.$elem=t(e),this.accessToken=t.fn.spectragram.accessData.accessToken,this.options=t.extend({},t.fn.spectragram.options,a),this.messages={defaultImageAltText:"Instagram Photo",notFound:"This user account is private or doesn't have any photos."},this.getPhotos()},getPhotos:function(){var a=this;a.fetch().done(function(e){e.data&&e.data.length?a.displayPhotos(e):e.error.message?t.error("Spectragram.js - Error: "+e.error.message):t.error("Spectragram.js - Error: user does not have photos.")})},fetch:function(){var a=this.API_URL+this.API_FIELDS+"&access_token="+this.accessToken;return t.ajax({type:"GET",dataType:"jsonp",cache:!1,url:a})},displayPhotos:function(a){var e,n,i,o,r,p,c,h,m=[];if(o=0===t(this.options.wrapEachWith).length,c=this.options.max>=a.data.length?a.data.length:this.options.max,h=({small:160,medium:320,large:640})[this.options.size],s===a.data||0===a.data.length){o?this.$elem.append(this.messages.notFound):this.$elem.append(t(this.options.wrapEachWith).append(this.messages.notFound));return}for(var l=0;l<c;l++)(r="IMAGE"===a.data[l].media_type||"CAROUSEL_ALBUM"===a.data[l].media_type)&&(p=(i=null!==a.data[l].caption||s!==a.data[l].caption)?t("<span>").text(a.data[l].caption).html():this.messages.defaultImageAltText,n=t("<img>",{alt:p,attr:{height:h,width:h},src:a.data[l].media_url}),e=t("<a>",{href:a.data[l].permalink,target:"_blank",title:p}).append(n),o?m.push(e):m.push(t(this.options.wrapEachWith).append(e)));this.$elem.append(m),"function"==typeof this.options.complete&&this.options.complete.call(this)}};jQuery.fn.spectragram=function(a){jQuery.fn.spectragram.accessData.accessToken?this.each(function(){Object.create(n).initialize(a,this)}):t.error("You must define an accessToken on jQuery.spectragram")},jQuery.fn.spectragram.options={complete:null,max:25,size:"large",wrapEachWith:"<li></li>"},jQuery.fn.spectragram.accessData={accessToken:null}}(jQuery,window,document);

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.