This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// JS KIT - read a in b64 an image url | |
//// MIT LICENCE | |
//// Credit: alberto marà | |
// how to use: | |
// imageurltob64('jpg', paths.uploads + "staff/" + gud.picture, img64data => { | |
// yourimage.src = img64data; | |
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// JS KIT - WAIT A TIME | |
//// MIT LICENCE | |
//// Credit: alberto marà | |
// how to use: | |
// wait(3000); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// JS KIT - PATHS FINDER | |
//// MIT LICENCE | |
//// Credit: alberto marà | |
// how to use: | |
// <img src="'+this.resouces+'images/imagename.svg" />; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// JS KIT - B64 | |
//// MIT LICENCE | |
//// Credit: alberto marà | |
// how to use: | |
// var mydata = b64.encode('myjsobjectorstring'); | |
// var mydata = b64.decode('myjsobjectorstring'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// JS KIT - COOKIE MANAGER | |
//// MIT LICENCE | |
//// Credit: alberto marà | |
// how to use: | |
// var getacookie = cookies.read('mycookiename'); | |
// cookies.write('session', mycookiestringorobject, 10000); | |
// cookies.remove('mycookiename'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// JS KIT - BASE 64 EXTENDED MANAGER | |
//// MIT LICENCE | |
//// Credit: alberto marà | |
// how to use: | |
// var mydata = b64.encode('myjsobjectorstring'); | |
// var mydata = b64.decode('myjsobjectorstring'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
,---._ | |
.-- -.' \ | |
| | : | |
: ; | | |
: | .--.--. | |
| : :/ / ' |