HOME / BLOG

How to set cookie in php?

Set cookie in php setcookie(‘otp’, $otp, time()+62208000, ‘/’, $_SERVER[‘HTTP_HOST’]); //otp is the cookie name here  

How to send otp and verify it (in wordpress)?

Send otp and verify it (in wordpress) //send otp part <div class=”container”> <center> <h4>Enter Mobile Number</h4> <form method=”post” action=””> <input type=”text” class=”fullrow” name=”phone” placeholder=”Enter phone no.” > <span class=”error” style=”display:none”></span> <input class=”submit” type=”submit” value=”Get OTP” name=”sotp”> </form> </center> </div> <span class=”success” style=””></span> <script> jQuery(document).ready(function($){ $(“.submit”).click(function(e){ e.preventDefault(); var number = $(“.fullrow”).val(); //alert(number); var data = { […]

How to change scroller color according to background ?

Change scroller color according to background //decode and use this code according to ur demand function handleDarkSectionColors() { var section = $(‘.clb__dark_section, .clb__light_section’); var sectionClass; if (section.length) { var scrollTop = $(‘.clb-scroll-top’); var socialLinks = $(‘.clb-social’); var fixedSearch = $(‘.search-global.fixed .ion’); var self_window; $(window).on(‘scroll’, function(){ self_window = $(this); activeSection(self_window); }); function activeSection(self_window) { var st […]

How to scroll to top on click and change color after scrolling some length by jquery?

Scroll to top on click and change color after scrolling some length by jquery //jquery used $(window).scroll(function(){ var scrollval = $(window).scrollTop(); if(scrollval > 652) { $(“.scroller”).css(“color”,”white”); } if(scrollval < 652){ $(“.scroller”).css(“color”,””); } }); $(“.scroller”).click(function(){ $(window).scrollTop(0); }); //html used <div class=”scroller”> Tap to scroll up </div> <div class=”jtset”> jtest </div> //css used div .jtset{ background:blue; height:500px; […]