BASIC JAVASCRIPT CRYPTO

<!-- (A) LOAD CRYPTO JS LIBRARY --> <!-- https://cryptojs.gitbook.io/docs/ --> <!-- https://cdnjs.com/libraries/crypto-js --> <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script> <script> // (B) ENCRYPT & DECRYPT FUNCTIONS var crypt = { // (B1) THE SECRET KEY secret : "CIPHERKEY", // (B2) ENCRYPT encrypt : function (clear) { var cipher = CryptoJS.AES.encrypt(clear, crypt.secret); cipher = cipher.toString(); return cipher; }, // (B3) … Continue reading BASIC JAVASCRIPT CRYPTO

Show progress-bar while loading using ajax

Download gif progess bar => http://www.ajaxload.info/ $(function() { $("#client").on("change", function() { var clientid=$("#client").val(); $('#loadingmessage').show(); $.ajax({ type:"post", url:"clientnetworkpricelist/yourfile.php", data:"title="+clientid, success:function(data){ $('#loadingmessage').hide(); $("#result").html(data); } }); }); }); On html body <div id='loadingmessage' style='display:none'> <img src='img/ajax-loader.gif'/> </div>

How to refresh .gitignore when making changes to .gitignore file

Here are just some points to note when making changes to the .gitgnore file to ensure Git is always tracking the right files. Make changes in .gitignore file.Run git rm -r --cached . command.Run git add . commandgit commit -m "Commit message" or just git commit or continue working. What is really important here is step 2. And remember to just run git add . command before doing any … Continue reading How to refresh .gitignore when making changes to .gitignore file

Setup Laravel project after cloning

run composer install to generate depedencies in vendor folderchange .env.example to .envrun php artisan key:generateconfigure .env Windows Go to the project folderShift+Right Click -> Open command window here Mac Open Terminal, Type "cd " (with a space)From finder, Drag the project folderPress Enter to go inside the project folder Compose composer install Generate Key php artisan key:generate Setup Database Open the file .env(Assuming … Continue reading Setup Laravel project after cloning