sr-npm 1.7.183 → 1.7.185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.183",
3
+ "version": "1.7.185",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/pages/homePage.js CHANGED
@@ -29,17 +29,17 @@ async function homePageOnReady(_$w,thisObject) {
29
29
  console.log("items#@#@$$#@#$$$#######");
30
30
  const markers = items.items.map(item => {
31
31
  const location = item.locationAddress.location;
32
+ const cityName = encodeURIComponent(item.title); // Use the city name from the item
33
+ const cityLinkUrl = `${linkUrl}?keyWord=${cityName}`; // Add city as search parameter
32
34
  return {
33
35
  location: {
34
36
  latitude: location.latitude,
35
37
  longitude: location.longitude
36
38
  },
37
39
  address: item.locationAddress.formatted,
38
- // description: `<a href=${linkUrl} target="_parent" rel="noopener noreferrer" style="color:#000000;text-decoration:underline;font-weight:bold;">View ${item.count} Open Positions</a>`
39
- description: `<a href=${linkUrl} target="_parent" rel="noopener noreferrer" style="color:#000000;text-decoration:underline;font-weight:bold;">View ${item.count} Open Positions</a>`,
40
- random:"random",
41
- title:"213123231",
42
- linkUrl:linkUrl
40
+ description: `<a href="${cityLinkUrl}" target="_parent" rel="noopener noreferrer" style="color:#000000;text-decoration:underline;font-weight:bold;">View ${item.count} Open Positions</a>`,
41
+ title: item.title, // Show the actual city name in title
42
+ linkUrl: cityLinkUrl
43
43
  };
44
44
  });
45
45
  //@ts-ignore