puvox-library 1.0.77 → 1.0.79

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.
@@ -343,10 +343,10 @@ declare class PuvoxLibrary {
343
343
  compare(a: any, operator: any, b: any): boolean;
344
344
  calculate(a: any, operator: any, b: any): any;
345
345
  RandomNum(maxNum: any): number;
346
- random_number(Length: any): number;
347
- randomNumber(Length: any): number;
346
+ random_number(length: any): number;
347
+ randomNumber(length: any): number;
348
348
  random_number_minmax(min: any, max: any): any;
349
- randomString(Length: any): string;
349
+ randomString(length: any): string;
350
350
  shuffle_Word(word: any): string;
351
351
  youtubeImage(id: any, quality: any): string;
352
352
  IsMobileDevice(simpleORfull: any): any;
@@ -1828,7 +1828,7 @@ class PuvoxLibrary {
1828
1828
  show_my_popup(TEXTorID, AdditionalStyles ){
1829
1829
  TEXTorID=TEXTorID.trim(); var FirstChar= TEXTorID.charAt(0); var eName = TEXTorID.substr(1); if ('#'==FirstChar || '.'==FirstChar){ if('#'==FirstChar){var x=document.getElementById(eName);} else{var x=document.getElementsByClassName(eName)[0];}} else { var x=document.createElement('div');x.innerHTML=TEXTorID;} var randm_id=Math.floor((Math.random()*100000000));
1830
1830
  var DivAA = document.createElement('div'); DivAA.id = "blkBackgr_"+randm_id; DivAA.className = "MyJsBackg"; DivAA.setAttribute("style", 'background:black; height:5000px; left:0px; opacity:0.9; position:fixed; top:0px; width:100%; z-index:99995;'); document.body.appendChild(DivAA); AdditionalStyles= AdditionalStyles || '';
1831
- var DivBB = document.createElement('div'); DivBB.id = 'popupp_'+randm_id; DivBB.className = "MyJsPopup"; DivBB.setAttribute("style",'background-color:white; border:6px solid white; border-radius:10px; display:block; min-height:1%; min-width:350px; width:auto; overflow:auto; max-height:80%; max-width:800px; padding:15px; position:fixed; text-align:left; top:10%; z-index:99995; left:0px; right:0px; margin-left:auto; margin-right:auto; width:80%;'+ AdditionalStyles); DivBB.innerHTML = '<div style="background-color:#C0BCBF; border-radius:55px; padding:5px; font-family:arial; float:right; font-weight:700; margin:-15px -10px 0px 0px; z-index: 88; " class="CloseButtn" ><a href="javascript:my_popup_closee('+randm_id+');" style="display:block;margin:-5px 0 0 0;font-size:1.6em;">x</a></div>'; document.body.appendChild(DivBB);z=x.cloneNode(true);DivBB.appendChild(z); if(z.style.display=="none"){z.style.display="block";}
1831
+ var DivBB = document.createElement('div'); DivBB.id = 'popupp_'+randm_id; DivBB.className = "MyJsPopup"; DivBB.setAttribute("style",'background-color:white; border:6px solid white; border-radius:10px; display:block; min-height:1%; min-width:350px; width:auto; overflow:auto; max-height:80%; max-width:800px; padding:15px; position:fixed; text-align:left; top:10%; z-index:99995; left:0px; right:0px; margin-left:auto; margin-right:auto; width:80%;'+ AdditionalStyles); DivBB.innerHTML = '<div style="background-color:#C0BCBF; border-radius:55px; padding:5px; font-family:arial; float:right; font-weight:700; margin:-15px -10px 0px 0px; z-index: 88; " class="CloseButtn" ><a href="javascript:my_popup_closee('+randm_id+');" style="display:block;margin:-5px 0 0 0;font-size:1.6em;">x</a></div>'; document.body.appendChild(DivBB);const z=x.cloneNode(true);DivBB.appendChild(z); if(z.style.display=="none"){z.style.display="block";}
1832
1832
  }
1833
1833
  my_popup_closee(RandomIDD) { var x=document.getElementById("blkBackgr_"+RandomIDD); x.parentNode.removeChild(x); var x=document.getElementById('popupp_'+RandomIDD); x.parentNode.removeChild(x);
1834
1834
  }
@@ -2635,10 +2635,10 @@ class PuvoxLibrary {
2635
2635
  // random NUMBER or STRINGS
2636
2636
  RandomNum(maxNum) { return Math.floor((Math.random() * maxNum) + 1); }
2637
2637
 
2638
- random_number(Length) { var length= length || 5; return Math.floor((Math.random() * Math.pow(10, length)) + 1);}
2639
- randomNumber(Length) {return this.random_number(length);}
2638
+ random_number(length) { var length= length || 5; return Math.floor((Math.random() * Math.pow(10, length)) + 1);}
2639
+ randomNumber(length) {return this.random_number(length);}
2640
2640
  random_number_minmax(min, max) { var min= min || 1; var max= max || 9999999999; return Math.floor(Math.random() * (max - min + 1)) + min;}
2641
- randomString(Length) { var length= length || 5; return Math.random().toString(36).substr(2, length);}
2641
+ randomString(length) { var length= length || 5; return Math.random().toString(36).substr(2, length);}
2642
2642
  //getRandomInt(max) { return Math.floor(Math.random() * Math.floor(max)); },
2643
2643
 
2644
2644
  shuffle_Word(word){
@@ -3259,7 +3259,7 @@ class PuvoxLibrary {
3259
3259
  if (!this.exists(filePath)){
3260
3260
  return defaultContent;
3261
3261
  }
3262
- return this.fs().readFileSync(filePath);
3262
+ return this.fs().readFileSync(filePath, 'utf8');
3263
3263
  }
3264
3264
  write(filePath, content){
3265
3265
  const dir = this.path().dirname(filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puvox-library",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "description": "library-class-javascript",
5
5
  "main": "library_standard.js",
6
6
  "scripts": {