sr-npm 1.7.1294 → 1.7.1295

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.1294",
3
+ "version": "1.7.1295",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -71,8 +71,12 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
71
71
  }
72
72
 
73
73
  async function handleBackAndForth(_$w){
74
-
74
+ if(ActivateURLOnchange) {
75
75
  await clearAll(_$w);
76
+ }
77
+ else{
78
+ ActivateURLOnchange=true;
79
+ }
76
80
 
77
81
  // if(ActivateURLOnchange) {
78
82
  // const newQueryParams=await location.query();
@@ -405,8 +409,21 @@ async function loadJobsRepeater(_$w) {
405
409
 
406
410
  _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = []; // start empty
407
411
  _$w(`#${FiltersIds[field.title]}CheckBox`).onChange(async (ev) => {
408
- const formFactor = await window.formFactor();
409
- console.log("formFactor: ", formFactor);
412
+
413
+ window.getBoundingRect().then((windowSizeInfo) => {
414
+ let windowHeight = windowSizeInfo.window.height; // 565
415
+ let windowWidth = windowSizeInfo.window.width; // 1269
416
+ let documentHeight = windowSizeInfo.document.height; // 780
417
+ let documentWidth = windowSizeInfo.document.width; // 1269
418
+ let scrollX = windowSizeInfo.scroll.x; // 0
419
+ let scrollY = windowSizeInfo.scroll.y; // 120
420
+ console.log("windowHeight: ", windowHeight);
421
+ console.log("windowWidth: ", windowWidth);
422
+ console.log("documentHeight: ", documentHeight);
423
+ console.log("documentWidth: ", documentWidth);
424
+ console.log("scrollX: ", scrollX);
425
+ console.log("scrollY: ", scrollY);
426
+ });
410
427
  dontUpdateThisCheckBox=field._id;
411
428
  const selected = ev.target.value; // array of selected value IDs
412
429
  let fieldTitle=field.title.toLowerCase().replace(' ', '');