Posts

PHP Mailer work with AJAX

Image
Basic Mailer basic php mailer php <?php header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json'); /* * CONFIGURE EVERYTHING HERE */ // an email address that will be in the From field of the email. $from = isset($_REQUEST['from']) ? $_REQUEST['from'] : 'example@mail.com'; $from = filter_var($from, FILTER_VALIDATE_EMAIL) ? $from : null; // an email address that will receive the email with the output of the form $sendTo = 'dimaslanjaka.superuser@blogger.com'; // subject of the email $subject = 'New message'; // form field names and their translations. // array variable name => Text to appear in the email $fields = array('name' => 'Name', 'surname' => 'Surname', 'phone' => 'Phone', 'email' => 'Email', 'message' => 'Message'); // message that will be displayed when everything is OK :) $okMess

Earn money from blogs by joining the Influencer Marketplace

Image
Earn Income From Blogs By Joining the Influencer Marketplace - It is undeniable that the vast majority of bloggers are earning income on the internet through blogs. And now more and more are trying to become bloggers with the main goal of making money on the internet. And more and more are also making bloggers as the main occupation or the term as a full time blogger even though bloggers are not / not yet included in the type of work recognized especially in Indonesia. Various reasons that become full time bloggers, one of the reasons is to become a blogger is not limited by work time, do not need enough work uniforms with a collector, and many other reasons. Therefore, now more and more bloggers are popping up who are tempted to easily get money from the internet without being limited by work time or office attendance and do not need to be uniform and will not be scolded by employers. But of course it's not as easy as turning your palm to get money from a blog, but

Glowing Text Loading Animation

Image
Glowing Text Loading Animation CSS body{ margin:0px;padding:0px;background:#262222; } UL{ position: absolute; top:50%; left:50%; display: flex; transform: translate(-50% ,-50%); } ul li{ list-style: none; letter-spacing: 15px; font-size: 5em; font-family: fantasy; color:#484848; animation: ani 1.2s linear infinite; } ul li:nth-child(1){ animation-delay: .2s; } ul li:nth-child(2){ animation-delay: .6s; } ul li:nth-child(3){ animation-delay: .8s; } ul li:nth-child(4){ animation-delay: 1.0s; } ul li:nth-child(5){ animation-delay: 1.4s; } ul li:nth-child(6){ animation-delay: 1.8s; } ul li:nth-child(7){ animation-delay: 1.12s; } @keyframes ani { 0%{ color:#44848; text-shadow: none; } 90%{ color:#44848; text-shadow: none; } 100%{ color:#fff900; text-shadow: 0 0 7px #fff900,0 0 70px #fff123; } } HTML <ul> <li>L</li> <li>O</li> <li>A</li> <li>D</li> <li

Avoid Using The Following Anchor Text In Making Links

Image
Avoid Using Anchor Text Here in Link Creation - There are some anchor text that should be avoided when creating link links in the article. Even the anchor text was marked by the Lighthouse tool as an error that must be corrected. Because of the importance of making the correct anchor text for a link, the Lighthouse tool even marks some anchor text as an error that must be corrected. At present there are only a few words and in several languages, but the possibility will continue to be increased according to languages ​​in the world. The marked anchor text includes: click here click this go here this start right here more learn more And of course for writing Indonesian articles you should avoid using anchor text that has similarities with the anchor text and the like. Anchor text or link text is text that is inside a link that is useful to tell users and search engines like Google something about the linked page. There are 2 types of links

[JS] How to delay ajax one by one in loop

Image
Bahasa indonesia: Bagaimana eksekusi ajax satu per satu di Loop <div id="demo"></div> <script> /** * Define global variable * @var {int} indexLoop global loop indexer * @var {int} lastLoop global last iteration for global loop indexer from loop initializer * @var {array} queueLoop global array to be processed from ajax * @var {array} arrayLoop define array to be proccesed */ var indexLoop = 0, lastLoop = 0, queueLoop = [], arrayLoop = ['apple', 'melon', 'watermelon', 'grapes']; for (var i = 0; i < arrayLoop.length; i++) { queueLoop.push(arrayLoop[i]); if (i == arrayLoop.length - 1) { lastLoop = i + 1; ajaxLoop(function () { var b = document.createElement('b'); b.innerHTML = 'Processing all item ' + indexLoop + ' of ' + lastLoop + ' succedeed<br/>'; document.getElementById('demo').appendChild(b); }

Improve Blog Performance with Cloudflare DNS

Image
Tingkatkan Performa Blog Dengan DNS Cloudflare Increase Blog Performance with Cloudflare DNS - Basically all DNS is the same, namely the function of connecting a domain name with the user's IP so that the domain can be accessed by users. However, each DNS server provider certainly has a different performance, so this affects the speed of a website's response when accessed. So that the speed of this server response needs to be considered also after we increase the blog loading speed by improving the blog template used. And Cloudflare is the best for DNS server performance in the world, and we can use it easily and for free to improve the performance of our blog. Like this Magic Company, even though the blog was deemed fast enough when accessed, it turned out that the server response speed from the domain that I used was quite slow around 250 ms. After I replaced it using DNS Cloudflare, the server response speed was quite high only 1-2 ms, wow .... If you ofte

Javascript Debug Protector

Image
How to protect javascript from developer tools ? here the answer. put this code into your page or template before closing body ( </body> ) <script src="https://cdn.jsdelivr.net/gh/dimaslanjaka/Web-Manajemen@master/js/protector.js" async></script> This script functions to hide the output from console.log, console.error, console.warning, and so on. and will also notify visitors that the site being opened is in a time suspension, because the visitor is opening the developer tools in his browser. This article about : protect javascript from debugging hide javascript console from developer tools protect site from debugging