PageSourceSearch

https://stackernewscrosswordpuzzle2.vercel.app/js/script.js

js stackernewscrosswordpuzzle2.vercel.app collected 2026-10-03 07:47:26 UTC 7,263 bytes, 318 lines download raw bytes

1(function($) {
2	$(function() {
3		// provide crossword entries in an array of objects like the following example
4		// Position refers to the numerical order of an entry. Each position can have 
5		// two entries: an across entry and a down entry
6		var puzzleData = [
7			 	{
8					clue: "church leader and school of fish",
9					answer: "polycarp",
10					position: 1,
11					orientation: "across",
12					startx: 1,
13					starty: 1
14				},
15			 	{
16					clue: "means of learning and hitting the doorbell twice",
17					answer: "reading",
18					position: 7,
19					orientation: "across",
20					startx: 6,
21					starty: 2
22				},
23				{
24					clue: "type of nightclub and the hat of an Uber competitor",
25					answer: "cabaret",
26					position: 9,
27					orientation: "across",
28					startx: 4,
29					starty: 3
30				},
31				{
32					clue: "one version of your favorite layer two and the idea that what has been will continue to be",
33					answer: "lnd",
34					position: 11,
35					orientation: "across",
36					startx: 1,
37					starty: 4
38				},
39				{
40					clue: "more isolated and an ever more isolated English king",
41					answer: "lonelier",
42					position: 13,
43					orientation: "across",
44					startx: 5,
45					starty: 4
46				},
47				{
48					clue: "moved faster on foot and an exclamation upon seeing the dino king",
49					answer: "outran",
50					position: 14,
51					orientation: "across",
52					startx: 3,
53					starty: 5
54				},
55				{
56					clue: "procedure to conjoin statements and that last word",
57					answer: "and",
58					position: 15,
59					orientation: "across",
60					startx: 1,
61					starty: 6
62				},
63				{
64					clue: "a type of protein and you're just not going to get this one, do it last",
65					answer: "relt",
66					position: 16,
67					orientation: "across",
68					startx: 5,
69					starty: 6
70				},
71				{
72					clue: "mind power and album by Miles",
73					answer: "esp",
74					position: 17,
75					orientation: "across",
76					startx: 10,
77					starty: 6
78				},
79				{
80					clue: "rugby player and being amazed by a warm beverage",
81					answer: "auty",
82					position: 19,
83					orientation: "across",
84					startx: 4,
85					starty: 7
86				},
87				{
88					clue: "you don't want to give me this and the heart of the leader of the CCP",
89					answer: "inch",
90					position: 20,
91					orientation: "across",
92					startx: 9,
93					starty: 7
94				},
95				{
96					clue: "popular car and before you and me",
97					answer: "prius",
98					position: 21,
99					orientation: "across",
100					startx: 3,
101					starty: 8
102				},
103				{
104					clue: "SOL on sitting space and that which inspires lament",
105					answer: "sro",
106					position: 22,
107					orientation: "across",
108					startx: 10,
109					starty: 8
110				},
111				{
112					clue: "having to do with the universe and wearing a costume to look Irish",
113					answer: "cosmic",
114					position: 23,
115					orientation: "across",
116					startx: 3,
117					starty: 9
118				},
119				{
120					clue: "the center of it all and the old man",
121					answer: "hub",
122					position: 24,
123					orientation: "across",
124					startx: 10,
125					starty: 9
126				},
127				{
128					clue: "sound my car makes and sound I make when my car makes other sounds",
129					answer: "hmm",
130					position: 25,
131					orientation: "across",
132					startx: 3,
133					starty: 10
134				},
135				{
136					clue: "the Mrs. and a couple of pollinators",
137					answer: "bibi",
138					position: 26,
139					orientation: "across",
140					startx: 9,
141					starty: 10
142				},
143				{
144					clue: "your favorite nurse on a bad day and a bird's home coupled with an examination",
145					answer: "anesthetist",
146					position: 27,
147					orientation: "across",
148					startx: 1,
149					starty: 12
150				},
151				{
152					clue: "legislature and an average expression of grief",
153					answer: "parliament",
154					position: 1,
155					orientation: "down",
156					startx: 1,
157					starty: 1
158				},
159				{
160					clue: "a home for trees and a pirate's declaration of intent to dine on a wild animal",
161					answer: "arboretum",
162					position: 2,
163					orientation: "down",
164					startx: 6,
165					starty: 1
166				},
167				{
168					clue: "another attempt to break down a topic and an Irish women's backstreet sibling",
169					answer: "reanalysis",
170					position: 3,
171					orientation: "down",
172					startx: 7,
173					starty: 1
174				},
175				{
176					clue: "guardian and an average tree person",
177					answer: "parent",
178					position: 4,
179					orientation: "down",
180					startx: 8,
181					starty: 1
182				},
183				{
184					clue: "memberships to municipalities and the calming boats thereof",
185					answer: "citizenships",
186					position: 5,
187					orientation: "down",
188					startx: 10,
189					starty: 1
190				},
191				{
192					clue: "desire to avoid the crowd and juxtaposing agriculture with soup and a lighter",
193					answer: "agoraphobic",
194					position: 6,
195					orientation: "down",
196					startx: 12,
197					starty: 1
198				},
199				{
200					clue: "friend of page up/down and computer company",
201					answer: "del",
202					position: 8,
203					orientation: "down",
204					startx: 9,
205					starty: 2
206				},
207				{
208					clue: "most bitcoiners don't believe in it and every completely correct doctrine",
209					answer: "altruism",
210					position: 10,
211					orientation: "down",
212					startx: 5,
213					starty: 3
214				},
215				{
216					clue: "MIC spender and nickname I gave Garfield's buddy",
217					answer: "dod",
218					position: 12,
219					orientation: "down",
220					startx: 3,
221					starty: 4
222				},
223				{
224					clue: "never wanted by Tender, Loving, Care and a sacred dung beetle",
225					answer: "scrub",
226					position: 18,
227					orientation: "down",
228					startx: 11,
229					starty: 6
230				},
231				{
232					clue: "olfactory delicacies and one Italian donkey",
233					answer: "aromas",
234					position: 19,
235					orientation: "down",
236					startx: 4,
237					starty: 7
238				},
239				{
240					clue: "popular sweepstakes and a fruit from GA",
241					answer: "pch",
242					position: 21,
243					orientation: "down",
244					startx: 3,
245					starty: 8
246				},
247			] 
248	
249		$('#puzzle-wrapper').crossword(puzzleData);
250		
251	})
252	
253})(jQuery)
254
255let toggleState = 0;
256let usdPrice = null;
257let blockHeight = null;
258let satFee = null;
259
260async function fetchPrice() {
261	try {
262		const response = await fetch('https://mempool.space/api/v1/prices');
263		const data = await response.json();
264		usdPrice = data.USD.toFixed();
265	} catch (error) {
266		console.error('Error fetching the price:', error);
267	}
268}
269
270async function fetchBlock() {
271	try {
272		const response = await fetch('https://blockchain.info/q/getblockcount');
273		const data = await response.text();
274		blockHeight = parseInt(data).toFixed(0);
275	} catch (error) {
276		console.error('Error fetching the price:', error);
277	}
278}
279
280async function fetchFee() {
281	try {
282		const response = await fetch('https://mempool.space/api/v1/fees/recommended');
283		const data = await response.json();
284		satFee = data.halfHourFee.toFixed();
285		console.log(satFee);
286	} catch (error) {
287		console.error('Error fetching the price:', error);
288	}
289}
290
291async function togglePrice() {
292	if (!usdPrice) {
293		await fetchPrice();
294	}
295	if (!blockHeight) {
296		await fetchBlock();
297	}
298	if (!satFee) {
299		await fetchFee();
300	}
301
302	const button = document.querySelector('.onesat');
303	switch (toggleState) {
304		case 0:
305			button.textContent = `${blockHeight}`;
306			break;
307		case 1:
308			button.textContent = `${satFee} sat/vB`;
309			break;
310		case 2:
311			button.textContent = `$${usdPrice}`;
312			break;
313		case 3:
314			button.textContent = '1sat=1sat';
315			break;
316	}
317	toggleState = (toggleState + 1) % 4;
318}

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.