PageSourceSearch

https://simd.scot/config.js

js simd.scot collected 2026-10-02 05:46:05 UTC 4,422 bytes, 122 lines download raw bytes

1var keyTitles = {}
2
3keyTitles["simd2020_20pc"] = "Most Deprived 20%";
4keyTitles["simd2020_10pc"] = "Most Deprived 10%";
5keyTitles["simd2020_5pc"] = "Most Deprived 5%";
6keyTitles["simd2020"] = "All Deciles";
7
8var categoryLookup = {}
9
10//Placement on key:
11//0 = Regular only
12//1 = Short version appears after
13//2 = Short version only
14//3 = Short version appears before
15	
16categoryLookup["simd2020_20pc"] = {
17"1": ["Most deprived 20%", "d73027", 0],
18"z": ["Other areas", "bbaa99", 0]
19};	
20
21categoryLookup["simd2020_10pc"] = {
22"1": ["Most deprived 10%", "c00000", 0],
23"z": ["Other areas", "bbaa99", 0]
24};	
25
26categoryLookup["simd2020_5pc"] = {
27"1": ["Most deprived 5%", "a50026", 0],
28"z": ["Other areas", "bbaa99", 0]
29};	
30			
31categoryLookup["simd2020"] = {
32"1": ["Most deprived 10%", "a50026", 1, "1st"],
33"2": ["", "d73027", 2, "2nd"],
34"3": ["", "f46d43", 2, "3rd"],
35"4": ["", "fdae61", 2, "4th"],
36"5": ["", "fee090", 2, "5th"],
37"6": ["", "e0f3f8", 3, "6th"],
38"7": ["", "abd9e9", 3, "7th"],
39"8": ["", "74add1", 3, "8th"],
40"9": ["", "4575b4", 3, "9th"],
41"10": ["Least deprived 10%", "313695", 4, "10th"]
42};
43
44categoryLookup["simd2020_data"] = categoryLookup["simd2020"];
45
46categoryLookup["simd2016"] = categoryLookup["simd2020"];
47categoryLookup["simd2016_data"] = categoryLookup["simd2020"];
48categoryLookup["simd2016_5pc"] = categoryLookup["simd2020_5pc"];
49categoryLookup["simd2016_10pc"] = categoryLookup["simd2020_10pc"];
50categoryLookup["simd2016_20pc"] = categoryLookup["simd2020_20pc"];
51categoryLookup["simd2012"] = categoryLookup["simd2020"];
52categoryLookup["simd2012_data"] = categoryLookup["simd2020"];
53categoryLookup["simd2012_5pc"] = categoryLookup["simd2020_5pc"];
54categoryLookup["simd2012_10pc"] = categoryLookup["simd2020_10pc"];
55categoryLookup["simd2012_20pc"] = categoryLookup["simd2020_20pc"];
56
57keyTitles["simd2016"] = keyTitles["simd2020"];
58keyTitles["simd2016_data"] = keyTitles["simd2020"];
59keyTitles["simd2016_5pc"] = keyTitles["simd2020_5pc"];
60keyTitles["simd2016_10pc"] = keyTitles["simd2020_10pc"];
61keyTitles["simd2016_20pc"] = keyTitles["simd2020_20pc"];
62keyTitles["simd2012"] = keyTitles["simd2020"];
63keyTitles["simd2012_data"] = keyTitles["simd2020"];
64keyTitles["simd2012_5pc"] = keyTitles["simd2020_5pc"];
65keyTitles["simd2012_10pc"] = keyTitles["simd2020_10pc"];
66keyTitles["simd2012_20pc"] = keyTitles["simd2020_20pc"];
67
68
69
70var cities = 
71[
72["Aberdeen", 57.15, -2.13, 13],
73["Ayr", 55.475, -4.62, 13],
74["Dundee", 56.48, -2.98, 13],
75["Dunfermline", 56.066, -3.452, 14],
76["East Kilbride", 55.75, -4.18, 14],
77["Edinburgh", 55.94, -3.21, 12],
78["Falkirk", 56, -3.78, 13],
79["Fort William", 56.82, -5.12, 14],
80["Glasgow", 55.86, -4.29, 12],
81["Inverness", 57.467, -4.228, 13],
82["Motherwell", 55.785, -4, 13],
83["Paisley", 55.84, -4.45, 13],
84["Perth", 56.4, -3.46, 14],
85["Stirling", 56.116, -3.945, 14]
86];			
87
88var council_areas = 
89[
90["Aberdeen City", 57.15585113, -2.173599174, 11],
91["Aberdeenshire", 57.24416074, -2.627851007, 9],
92["Angus", 56.72465122, -2.917669372, 10],
93["Argyll and Bute", 56.0847417, -5.21155246, 9],
94["City of Edinburgh", 55.92657691, -3.2883491, 11],
95["Clackmannanshire", 56.15051494, -3.74218702, 12],
96["Dumfries and Galloway", 55.07169676, -3.955578289, 9],
97["Dundee City", 56.47719391, -2.969530499, 12],
98["East Ayrshire", 55.4860209, -4.314415058, 10],
99["East Dunbartonshire", 55.95606481, -4.225548249, 11],
100["East Lothian", 55.94206016, -2.7208472, 11],
101["East Renfrewshire", 55.75318451, -4.359606999, 12],
102["Falkirk", 55.9973978, -3.790653732, 11],
103["Fife", 56.22972333, -3.123348817, 10],
104["Glasgow City", 55.85793257, -4.253044234, 11],
105["Highland", 57.61109077, -4.638445539, 9],
106["Inverclyde", 55.90444695, -4.742703102, 11],
107["Midlothian", 55.83227908, -3.11036446, 11],
108["Moray", 57.47691225, -3.267020516, 10],
109["Na h-Eileanan an Iar", 58.13407895, -6.657931487, 9],
110["North Ayrshire", 55.72459726, -4.732048806, 11],
111["North Lanarkshire", 55.8750075, -3.948489102, 11],
112["Orkney Islands", 58.99048896, -3.094725225, 10],
113["Perth and Kinross", 56.56728062, -3.820373125, 9],
114["Renfrewshire", 55.847884, -4.542719093, 11],
115["Scottish Borders", 55.57762725, -2.78735095, 9],
116["Shetland Islands", 60.37578431, -1.293975169, 9],
117["South Ayrshire", 55.26958176, -4.687866761, 10],
118["South Lanarkshire", 55.61339049, -3.811241939, 10],
119["Stirling", 56.24508632, -4.341318198, 10],
120["West Dunbartonshire", 55.98498903, -4.517714392, 11],
121["West Lothian", 55.88514689, -3.573762213, 11]
122];

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.