Posts

(JS) Javascript Function Remove Slash From String

Image
All I needed was to expel every single forward slice in a string utilizing Javascript. Remove Forward Slash (/) Using JavaScript Function function FSlash(func){ var x = func,    n = x.replace(/\//g,''); return n  } //Usage Using Variable var nx = "4x/4/4/5/6/7//532///45/"; //Call Variable Into Function Name    document.write(FSlash(nx)); //You can combine from function too Demo : CodePen The vital part to note here is the consistent articulation /\//g . The bit of the string you need supplanting is composed between the first and last forward cuts – so on the off chance that you needed the word 'work area' supplanted you would compose/work area/g. As the character we need to expel is an uncommon case you need to escape it utilizing an oblique punctuation line, generally the code will read the twofold forward cut as a remark thus quit preparing the line. At last, the g implies apply the substitution internationally to the string with the goa

Update Code Widget Dan Template Untuk Simple Safelink Converter

Image
Untuk Cara Instal, Deskripsi, Dan Cara Penerapan Klik Disini (Cara Membuat Simple Safelink Converter) Update code Safelink Converter untuk Widget Atau Template/Theme Tambahan : Protected Links <script type='text/javascript' async='async'> var myArray = ['https://web-manajemen.blogspot.com/p/redirect.html?u=', 'https://web-manajemen.blogspot.com/p/advertisement.html?u=', 'http://web-manajemen.blogspot.com/p/advertise.html?u=']; var safelink = myArray[Math.floor(Math.random() * myArray.length)]; var protectedLinks = /(bing.com|google|linkedin.com|facebook|manajemen|safelink|pinterest|digg.com|twitter|codepen.io|blogger.com|ask.com|DOMAINKAMU.COM)/ $( 'a' ).each(function() { if (this.href.match( protectedLinks ) ){ $(this).attr("href", $(this).attr("href")+'?success'); //$(this).addClass('w3-text-green'); //Add Class On Internal Links } else { $(this).attr("href", safe

Update Code Safelink Converter Untuk Halaman 12 Desember 2017

Image
Untuk Cara Instal, Deskripsi, Dan Cara Penerapan Klik Disini (Cara Membuat Simple Safelink Converter) Code Untuk Di Halaman Safelink <script type="text/javascript" async> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); if(pair[0] == variable){return pair[1];} } return(false); } var count = 11; var queryU = getQueryVariable('u'); var redirect = decodeURIComponent(queryU); var noprotocol = redirect.replace(/(^\w+:|^)\/\//, ''); function countDown(){ var timer = document.getElementById("timer"); var done = document.getElementById("done"); var ket = document.getElementById("ket"); if(count > 0){ count--; timer.innerHTML = "<div id='timer' class='w3-center w3-panel w3-light-grey'>Y