PageSourceSearch

https://scottishsquirrels.org.uk/wp-content/plugins/esdm_ssrs/js/m…?ver=4611d12df3222f888cba9c5bd444e205

js scottishsquirrels.org.uk collected 2026-09-24 19:45:52 UTC 8,543 bytes, 1 lines download raw bytes

1var Styles={pointRed:new ol.style.Style({image:new ol.style.Circle({radius:3.5,fill:new ol.style.Fill({color:"rgba(136, 21, 34, 0.8)"}),stroke:new ol.style.Stroke({color:"rgba(136, 21, 34, 0.8)",width:1})})}),pointGrey:new ol.style.Style({image:new ol.style.Circle({radius:3.5,fill:new ol.style.Fill({color:"rgba(115, 115, 115, 0.8)"}),stroke:new ol.style.Stroke({color:"rgb(115, 115, 115, 0.8)",width:1})})}),pointPurple:new ol.style.Style({image:new ol.style.Circle({radius:3.5,fill:new ol.style.Fill({color:"rgba(148, 0, 211, 0.8)"}),stroke:new ol.style.Stroke({color:"rgb(148, 0, 211, 0.8)",width:1})})}),pointTrapLocation:new ol.style.Style({image:new ol.style.RegularShape({points:3,radius:10,rotation:0,angle:0,fill:new ol.style.Fill({color:"rgba(44, 127, 184, 0.9)"}),stroke:new ol.style.Stroke({color:"rgba(0, 0, 0, 0.8)",width:1})})}),pointShootingLocation:new ol.style.Style({image:new ol.style.RegularShape({points:4,radius:10,angle:Math.PI/4,fill:new ol.style.Fill({color:"rgba(155, 223, 255, 0.9)"}),stroke:new ol.style.Stroke({color:"rgba(0, 0, 0, 0.8)",width:1})})}),pointSpringSurveyFeederBoxLocation:new ol.style.Style({image:new ol.style.Circle({radius:3.5,fill:new ol.style.Fill({color:"rgba(0, 255, 0, 0.8)"}),stroke:new ol.style.Stroke({color:"rgba(0, 0, 0, 0.8)",width:1})})}),pointActiveFeederBoxLocation:new ol.style.Style({image:new ol.style.Circle({radius:3.5,fill:new ol.style.Fill({color:"rgba(255, 69, 0, 0.8)"}),stroke:new ol.style.Stroke({color:"rgba(255, 69, 0, 0.8)",width:1})})}),pointFeederBoxList:new ol.style.Style({image:new ol.style.RegularShape({radius:4,points:4,angle:.8,fill:new ol.style.Fill({color:"rgba(0, 255, 0, 0.8)"}),stroke:new ol.style.Stroke({color:"rgba(0, 0, 0, 0.8)",width:1})})}),iconRed:new ol.style.Style({image:new ol.style.Icon({anchor:[.5,46],anchorXUnits:"fraction",anchorYUnits:"pixels",opacity:.85,src:ssrs.plugin_url+"/images/red_squirrel_icon.png"})}),iconGrey:new ol.style.Style({image:new ol.style.Icon({anchor:[.5,46],anchorXUnits:"fraction",anchorYUnits:"pixels",opacity:.85,src:ssrs.plugin_url+"/images/grey_squirrel_icon.png"})}),networkPolygon:new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(142, 19, 21, 1)",width:2}),fill:new ol.style.Fill({color:"rgba(142, 19, 21, 0.4)"})}),networkSelectedPolygon:new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(142, 19, 21, 1)",width:2}),fill:new ol.style.Fill({color:"rgba(142, 19, 21, 0.9)"})}),parcPolygon:new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 120, 20, 1)",width:2}),fill:new ol.style.Fill({color:"rgba(255, 120, 20, 0.4)"})}),parcSelectedPolygon:new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 120, 20, 1)",width:2}),fill:new ol.style.Fill({color:"rgba(255, 120, 20, 0.9)"})}),priorityAreaPolygon:new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(142, 19, 21, 1)",width:2}),fill:new ol.style.Fill({color:"rgba(142, 19, 21, 0.4)"})}),priorityAreaSelectedPolygon:new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(142, 19, 21, 1)",width:2}),fill:new ol.style.Fill({color:"rgba(142, 19, 21, 0.8)"})}),projectAreaPolygon:new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 240, 125, 1)",width:2}),fill:new ol.style.Fill({color:"rgba(178, 188, 121, 0.4)"})}),projectAreaSelectedPolygon:new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 240, 125, 1)",width:2}),fill:new ol.style.Fill({color:"rgba(178, 188, 121, 0.9)"})}),greySquirrelControlTetradPolygon:new ol.style.Style({stroke:new ol.style.Stroke({color:"black",width:1}),fill:new ol.style.Fill({color:"rgba(0, 0, 0, 1)"})}),feederBoxSurveyTetradPolygon:new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(142, 19, 21, 1)",width:1}),fill:new ol.style.Fill({color:"rgba(142, 19, 21, 0.2)"})}),pointFeederBoxRed:new ol.style.Style({image:new ol.style.Circle({radius:3.5,fill:new ol.style.Fill({color:"rgba(255, 0, 0, 0.8)"}),stroke:new ol.style.Stroke({color:"rgba(255, 0, 0, 0.8)",width:1})})}),pointFeederBoxGrey:new ol.style.Style({image:new ol.style.Circle({radius:3.5,fill:new ol.style.Fill({color:"rgba(0, 0, 255, 0.8)"}),stroke:new ol.style.Stroke({color:"rgba(0, 0, 255, 0.8)",width:1})})}),pointFeederBoxBoth:new ol.style.Style({image:new ol.style.Circle({radius:3.5,fill:new ol.style.Fill({color:"rgba(255, 0, 255, 0.8)"}),stroke:new ol.style.Stroke({color:"rgba(255, 0, 255, 0.8)",width:1})})}),pointFeederBoxNeither:new ol.style.Style({image:new ol.style.Circle({radius:3.5,fill:new ol.style.Fill({color:"rgba(0, 0, 0, 0.8)"}),stroke:new ol.style.Stroke({color:"rgba(0, 0, 0, 0.8)",width:1})})}),pointFeederBoxNotSampled:new ol.style.Style({image:new ol.style.Circle({radius:3.5,fill:new ol.style.Fill({color:"rgba(255, 255, 255, 0.8)"}),stroke:new ol.style.Stroke({color:"rgba(100, 100, 100, 0.8)",width:1})})}),pointPerson:new ol.style.Style({image:new ol.style.RegularShape({radius:7,points:4,angle:.8,fill:new ol.style.Fill({color:"rgba(128, 0, 128, 0.8)"}),stroke:new ol.style.Stroke({color:"rgba(255, 255, 255, 0.8)",width:1})})})},SsrsStyles=function(){var e=n("rgba(255, 0, 0, 1)"),l=n("rgba(0, 0, 255, 1)"),r=n("rgba(255, 0, 255, 1)"),t=n("rgba(0, 0, 0, 1)"),o=function(){var e=document.createElement("canvas"),l=e.getContext("2d");e.width=6,e.height=6,l.fillStyle="rgba(100, 100, 100, 1)";for(var r=0;r<6;++r)l.fillRect(r,r,1,1),l.fillRect(6-r,r,1,1);return l.createPattern(e,"repeat")}();function n(e){var l=document.createElement("canvas"),r=l.getContext("2d");l.width=6,l.height=6,r.fillStyle=e;for(var t=0;t<6;++t)r.fillRect(t,t,1,1);return r.createPattern(l,"repeat")}return{getGreySquirrelControlTetradStyle:function(e){var l="rgba(255, 255, 255, 0.5)",r=Styles.greySquirrelControlTetradPolygon,t=parseInt(e.get("num_grey"));return l=-1===t?"rgba(255, 255, 255, 0)":0===t?"rgba(200, 200, 255, 0.5)":t<=5?"rgba(150, 150, 255, 0.5)":t<=15?"rgba(100, 100, 255, 0.5)":t<=30?"rgba(50, 50, 255, 0.5)":"rgba(0, 0, 255, 0.5)",r.getFill
1().setColor(l),r},getGreySquirrelShootingTetradStyle:function(e){var l="rgba(255, 255, 255, 0.5)",r=Styles.greySquirrelControlTetradPolygon,t=parseInt(e.get("num_grey"));return l=-1===t?"rgba(255, 255, 255, 0)":0===t?"rgba(200, 200, 255, 0.5)":t<=5?"rgba(150, 150, 255, 0.5)":t<=15?"rgba(100, 100, 255, 0.5)":t<=30?"rgba(50, 50, 255, 0.5)":"rgba(0, 0, 255, 0.5)",r.getFill().setColor(l),r},getGreySquirrelCombinedTetradStyle:function(e){var l="rgba(255, 255, 255, 0.5)",r=Styles.greySquirrelControlTetradPolygon,t=parseInt(e.get("num_grey"));return l=-1===t?"rgba(255, 255, 255, 0)":0===t?"rgba(200, 200, 255, 0.5)":t<=5?"rgba(150, 150, 255, 0.5)":t<=15?"rgba(100, 100, 255, 0.5)":t<=30?"rgba(50, 50, 255, 0.5)":"rgba(0, 0, 255, 0.5)",r.getFill().setColor(l),r},getSquirrelSightingsStyle:function(e){return 1===parseInt(e.get("species_id"))?Styles.pointGrey:Styles.pointRed},getGreySquirrelControlTrapDaysTetradStyle:function(e){var l="rgba(255, 255, 255, 0.5)",r=Styles.greySquirrelControlTetradPolygon,t=parseInt(e.get("days"));return l=-1===t?"rgba(255, 255, 255, 0)":t<=100?"rgba(255, 200, 200, 0.5)":t<=400?"rgba(255, 150, 150, 0.5)":t<=700?"rgba(255, 100, 100, 0.5)":t<=1e3?"rgba(255, 50, 50, 0.5)":"rgba(255, 0, 0, 0.5)",r.getFill().setColor(l),r},getFeederBoxSurveyTetradStyle:function(n){var i="rgba(255, 255, 255, 1)",a=Styles.greySquirrelControlTetradPolygon,s=parseInt(n.get("not_sampled")),y=parseInt(n.get("num_samples")),g=parseInt(n.get("lost_samples"));if(0===y||s===y)i=o;else{var w=parseInt(n.get("num_red")),c=parseInt(n.get("num_grey"));y<12||s>0||g>0?0===w&&0===c?i=t:0===w&&c>0?i=l:w>0&&0===c?i=e:w>0&&c>0&&(i=r):0===w&&0===c?i="rgba(0, 0, 0, 0.7)":0===w&&c>0?i="rgba(0, 0, 255, 0.7)":w>0&&0===c?i="rgba(255, 0, 0, 0.7)":w>0&&c>0&&(i="rgb(255, 0, 255, 0.7)")}return a.getFill().setColor(i),a},getFeederBoxSurveyPointStyle:function(e){var l=Styles.pointFeederBoxNotSampled,r=parseInt(e.get("not_sampled")),t=parseInt(e.get("num_samples"));if(0===t||r===t)l=Styles.pointFeederBoxNotSampled;else{var o=parseInt(e.get("num_red")),n=parseInt(e.get("num_grey"));0===o&&0===n?l=Styles.pointFeederBoxNeither:0===o&&n>0?l=Styles.pointFeederBoxGrey:o>0&&0===n?l=Styles.pointFeederBoxRed:o>0&&n>0&&(l=Styles.pointFeederBoxBoth)}return l},getEditFeederBoxSurveyTetradStyle:function(e){var l=Styles.feederBoxSurveyTetradPolygon;return l.setText(new ol.style.Text({textAlign:"center",textBaseline:"middle",font:"16px sans-serif",text:e.get("name"),overflow:!1,fill:new ol.style.Fill({color:"rgba(142, 19, 21, 1)"}),stroke:new ol.style.Stroke({color:"rgba(142, 19, 21, 1)",width:1})})),l}}}();

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.