Fancy Text For Blog JavaScript Code

Fancy Text Editing For Blog JavaScript Code

This is a javascript code making fancy text editing style for the blog use this Script Code to implement the functionality on the blog website.

For adding in blogger pages and posts article designs or website pages anywhere function can be implemented.


<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">


<!-- Add font awesome icons -->
<p align="center">
<a href="https://rankbp.com/jsprojects">Visit Javascript</a>
</p>


<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>


<script>
    /*!
 * clipboard.js v2.0.0
 * https://zenorocha.github.io/clipboard.js=n}])});
</script>


<script>
    


            //try {
                var reverseIsDisabled = false;
                //<![CDATA[
                var luni = new Lunicode();
luni.tools.creepify.options.maxHeight = 10;


function backward(text) {
  return $("#english-text").val();
}






    function createMap(chars) {
      var alphanum = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
      var i = 0;
      var map = {};
      for(var c of chars) {
        map[ alphanum[i] ] = c;
        i++;
      }
      return JSON.stringify(map);
    }


    function forward(text) {
      text = text.trim();
      if(text === "") {
        return "";
      }
      var finalText = "";
      finalText += applyCharMap(oldEnglishCharMap, text) + "\n\n";
      finalText += applyCharMap(medievalCharMap, text) + "\n\n";
      finalText += fullCrazy(text) + "\n\n";
      finalText += applyCharMap(cursiveCharMap, text) + "\n\n";
      finalText += scriptify(text) + "\n\n";
      finalText += applyCharMap(doubleStruckCharMap, text) + "\n\n";
      finalText += applyCharMap(wideTextCharMap, text) + "\n\n";
      finalText += cuteText(text) + "\n\n";
      finalText += luni.tools.tiny.encode(text) + "\n\n";
      finalText += luni.tools.flip.encode(text) + "\n\n";
      finalText += luni.tools.roundsquares.encode(text) + "\n\n";
      finalText += luni.tools.squares.encode(text) + "\n\n";
      finalText += applyCharMap(squaresCharMap, text) + "\n\n";
      finalText += luni.tools.mirror.encode(text) + "\n\n";
      finalText += luni.tools.creepify.encode(text) + "\n\n";
      finalText += applyCharMap(invertedSquaresCharMap, text) + "\n\n";
      finalText += applyCharMap(subscriptCharMap, text) + "\n\n";
      finalText += applyCharMap(superscriptCharMap, text) + "\n\n";
      finalText += luni.tools.bubbles.encode(text) + "\n\n";
      finalText += applyCharMap(squiggleCharMap, text) + "\n\n";
      finalText += applyCharMap(squiggle2CharMap, text) + "\n\n";
      finalText += applyCharMap(squiggle3CharMap, text) + "\n\n";
      finalText += applyCharMap(squiggle4CharMap, text) + "\n\n";
      finalText += applyCharMap(squiggle5CharMap, text) + "\n\n";
      finalText += applyCharMap(squiggle6CharMap, text) + "\n\n";
      finalText += applyCharMap(boldCharMap, text) + "\n\n";
      finalText += applyCharMap(boldSansCharMap, text) + "\n\n";
      finalText += applyCharMap(italicCharMap, text) + "\n\n";
      finalText += applyCharMap(boldItalicCharMap, text) + "\n\n";
      finalText += applyCharMap(monospaceCharMap, text) + "\n\n";
      finalText += applyCharMap(upperAnglesCharMap, text) + "\n\n";
      finalText += applyCharMap(greekCharMap, text) + "\n\n";
      finalText += applyCharMap(symbolsCharMap, text) + "\n\n";
      finalText += applyCharMap(currencyCharMap, text) + "\n\n";
      finalText += applyCharMap(asianStyleCharMap, text) + "\n\n";
      finalText += applyCharMap(asianStyle2CharMap, text) + "\n\n";
      finalText += thickBlockFramed(text) + "\n\n";
      finalText += diametricAngleFrame(text) + "\n\n";
      finalText += wavyJoiner(text) + "\n\n";
      finalText += dottyJoiner(text) + "\n\n";
      finalText += kirbyHug(text) + "\n\n";
      finalText += vaporwaveText(text) + "\n\n";
      finalText += littleSparkles(text) + "\n\n";
      finalText += weirdBox(text) + "\n\n";
      finalText += firework(text) + "\n\n";
      finalText += applyCharMap(bentTextCharMap, text) + "\n\n";
      finalText += applyCharMap(neonCharMap, text) + "\n\n";
      finalText += applyCharMap(futureAlienCharMap, text) + "\n\n";
      finalText += strikeThrough(text) + "\n\n";
      finalText += tildeStrikeThrough(text) + "\n\n";
      finalText += slashThrough(text) + "\n\n";
      finalText += underline(text) + "\n\n";
      finalText += doubleUnderline(text) + "\n\n";
      finalText += stinky(text) + "\n\n";
      finalText += heartsBetween(text) + "\n\n";
      finalText += arrowBelow(text) + "\n\n";
      finalText += crossAboveBelow(text) + "\n\n";
      finalText += "Wingdings: "+wingdings(text) + "\n\n";
      finalText += cuteText(text) + "\n\n";
      finalText += cuteText(text) + "\n\n";
      finalText += cuteText(text) + "\n\n";
      finalText += cuteText(text) + "\n\n";
      finalText += cuteText(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += crazyWithFlourishOrSymbols(text) + "\n\n";
      finalText += cuteText(text) + "\n\n";
      finalText += cuteText(text) + "\n\n";
      finalText += cuteText(text) + "\n\n";
      
      return finalText.trim();
    }
    
    function crazyWithFlourishOrSymbols(text) {
      if(Math.random() < 0.7) return wrapInSymbols(crazifyText(text), 2);
      else return wrapInFlourish(crazifyText(text), 2);
    }
    
    function strikeThrough(text) {
      return text.split("").join("̶")+"̶"; 
    }
    function tildeStrikeThrough(text) {
      return text.split("").join("̴")+"̴";
    }
    function underline(text) {
      return text.split("").join("̲")+"̲";
    }
    function doubleUnderline(text) {
      return text.split("").join("̳")+"̳";
    }
    function slashThrough(text) {
      return text.split("").join("̷")+"̷";
    }
    function stinky(text) {
      return text.split("").join("̾")+"̾"
    }
    function heartsBetween(text) {
      return text.split("").join("♥");
    }
    function arrowBelow(text) {
      return text.split("").join("͎")+"͎";
    }
    function crossAboveBelow(text) {
      return text.split("").join("͓̽")+"͓̽";
    }
    function vaporwaveText(text) {
      var numSpaces = text.split(" ").length;
      text = applyCharMap(vaporwaveCharMap, text);
      var asianChars = getAsianChars(Math.max(3, numSpaces));
      if(numSpaces > 6) asianChars = asianChars.split("").map(c => c+[""," "][Math.round(Math.random()*0.6)]).join("");
      var outputs = [];
      outputs.push( text+" "+asianChars );
      outputs.push( text.replace(/ /g, "░").replace(/ae/, "æ").replace(/A/g, "Λ").replace(/E/g, function() { return Math.random() > 0.5 ? "Ξ" : "Σ"; }).replace(/O/g, "♢")+" ("+asianChars+")" );
      outputs.push("【"+text+"】");
      return outputs.join("\n\n");
    }


    function getAsianChars(n) {
      var str = "";
      for(var i = 0; i < n; i++) {
        str += chars[Math.floor(Math.random()*chars.length)];
      }
      return str;
    
    }
    
    function wrapInSymbols(text, number) {
      return randomSymbols(number) +"  "+ text +"  "+ randomSymbols(number)
    }






    function firework(text) {
      return text.split("").join("҉")+ "҉";
    }


    function weirdBox(text) {
      return text.replace(/([^\s])/g,"[̲̅$1]");
    }

    function littleSparkles(text) {
      return "˜”*°•.˜”*°• "+text+" •°*”˜.•°*”˜";
    }
t}}

  
    // CUTE TEXT:
    function cuteText(text) {
      if(text.trim() === "") return "";
      qi = -1;
      var bounds = boundingString(Math.floor(Math.random()*2)+1);
    }
    function cuteSentence(sentence) {
      return sentence.split(/([\s,]+)/gi).map(cuteWord).join("");
    }
    function cuteWord(word) {
      //remember to handle exclamations, empty strings, commas etc. etc.!!
      if(word === "" || /[[!?.\s,]+]/gi.test(word)) return word;
      //TODO: random turn o's into flowers, turn quotes into unicode and ! and ?
      word = roundReplace(word);
      word = punctReplace(word);
      word = emojiReplace(word);
      return scriptify(word);
    }
    var qi = -1;
    var qa = ["❝","❞"];
    function quotes() {
      qi++;
      if(qi === 2) qi = 0;
      return qa[qi];
    }
    function punctReplace(word) {
      return word.split("")
        .map(function(a) {
          if(a === "!") return randomElement(["❣","❢"]);
          else if(a === "?") return randomElement(["¿","?"]);
          else if(a === "\"") return quotes();
          else return a;
        }).join("");
    }
    function emojiReplace(word) {
      return word
      .replace(":)", randomElement(emoji[":)"]))
      .replace("(:", randomElement(emoji[":)"]))
      .replace("^^", randomElement(emoji["^^"]))
      .replace(":P", randomElement(emoji[":p"]))
      .replace(":p", randomElement(emoji[":p"]))
      .replace(":D", randomElement(emoji[":D"]))
      .replace("<3", randomElement(emoji["<3"]))
      .replace("(y)", randomElement(emoji["(y)"]))
      .replace("(Y)", randomElement(emoji["(y)"]));
    }
    function roundReplace(text) {
      return text.split("").map(function(a) { if(a.toLowerCase() === "o" || a === "0") { return randomElement(round); } else { return a; } }).join("");
    }
    function 
    }
    function scriptify(text) {
      var map = {"0":"𝟢","1":"𝟣","2":"𝟤","3":"𝟥","4":"𝟦","5":"𝟧","6":"𝟨","7":"𝟩","8":"𝟪","9":"𝟫","a":"𝒶","b":"𝒷","c":"𝒸","d":"𝒹","e":"𝑒","f":"𝒻","g":"𝑔","h":"𝒽","i":"𝒾","j":"𝒿","k":"𝓀","l":"𝓁","m":"𝓂","n":"𝓃","o":"𝑜","p":"𝓅","q":"𝓆","r":"𝓇","s":"𝓈","t":"𝓉","u":"𝓊","v":"𝓋","w":"𝓌","x":"𝓍","y":"𝓎","z":"𝓏","A":"𝒜","B":"𝐵","C":"𝒞","D":"𝒟","E":"𝐸","F":"𝐹","G":"𝒢","H":"𝐻","I":"𝐼","J":"𝒥","K":"𝒦","L":"𝐿","M":"𝑀","N":"𝒩","O":"𝒪","P":"𝒫","Q":"𝒬","R":"𝑅","S":"𝒮","T":"𝒯","U":"𝒰","V":"𝒱","W":"𝒲","X":"𝒳","Y":"𝒴","Z":"𝒵"};
      var charArray = text.split("");
      for(var i = 0; i < charArray.length; i++) {
        if( map[charArray[i].toLowerCase()] ) {
          charArray[i] = map[charArray[i]];
        }
      }
      text = charArray.join("");
      return text;
    }
    function shuffleArray(array) {
      var currentIndex = array.length, temporaryValue, randomIndex;
      // While there remain elements to shuffle...
      while (0 !== currentIndex) {
        // Pick a remaining element...
        randomIndex = Math.floor(Math.random() * currentIndex);
        currentIndex -= 1;
        // And swap it with the current element.
        temporaryValue = array[currentIndex];
        array[currentIndex] = array[randomIndex];
        array[randomIndex] = temporaryValue;
      }
      return array;
    }
    function randomElement(a) {
      return a[Math.floor(Math.random()*a.length)];
    }
  


    // CRAZY TEXT
    function fullCrazy(text) {
      if(text.trim() === "") return "";
      return randomSymbols(2) +"  "+ crazifyText(text) +"  "+ randomSymbols(2)
    }
    function crazifyText(text) {
      text = text.split("");
      for(var i = 0; i < text.length; i++) { text[i] =  crazifyCharacter(text[i]); }
      return text.join("");
    }
    function crazifyCharacter(c) {
      c = c.toLowerCase();
   
      if(map[c]) { return randomElement(map[c]); }
      else { return c; }
    }
    function randomElement(array) {
      return array[Math.floor(Math.random() * array.length)]
    }
    function randomSymbols(n) {
      var s = [];
      for(var i = 0; i < n; i++) s.push( randomElement(symbols) );
      return s.join("");
    }
    function randInt(min, max) {
      return min + Math.floor(Math.random()*(max-min+1));
}


                
reverseIsDisabled = true;
function backward(text) { return $('#english-text').val(); }                //]]>
            //} catch(e) {
            //    alert("There's an error in the custom script of this translator. Error:"+e);
            //}




                        try {
                        


                        var jsonData = {"phrases1":"","phrases2":"","words1":"","words2":"","intraword1":"","intraword2":"","prefixes1":"","prefixes2":"","suffixes1":"","suffixes2":"","regex1":"","regex2":"","rev_regex1":"","rev_regex2":"","ordering1":"","ordering2":""};
                        phrases1 = jsonData.phrases1.split("\n");
                        phrases2 = jsonData.phrases2.split("\n");
                        words1 = jsonData.words1.split("\n");
                        words2 = jsonData.words2.split("\n");
                        intraword1 = jsonData.intraword1.split("\n");
                        intraword2 = jsonData.intraword2.split("\n");
                        prefixes1 = jsonData.prefixes1.split("\n");
                        prefixes2 = jsonData.prefixes2.split("\n");
                        suffixes1 = jsonData.suffixes1.split("\n");
                        suffixes2 = jsonData.suffixes2.split("\n");
                        regex1 = jsonData.regex1.split("\n");
                        regex2 = jsonData.regex2.split("\n");
                        rev_regex1 = jsonData.rev_regex1.split("\n");
                        rev_regex2 = jsonData.rev_regex2.split("\n");
            ordering1 = jsonData.ordering1.split("\n");
            ordering2 = jsonData.ordering2.split("\n");


                        } catch(err) {
                                alert("Ahh an error! Please contact me via [email protected] and I'll fix it asap. Error log: "+err.message);
                        }


                        evenUpSizes(phrases1,phrases2);
                        evenUpSizes(words1,words2);
                        evenUpSizes(intraword1,intraword2);
                        evenUpSizes(prefixes1,prefixes2);
                        evenUpSizes(suffixes1,suffixes2);


                        //fix for mysql trailing newline deletion problem
                        function evenUpSizes(a,b) {
                                if(a.length > b.length) {
                                        while(a.length > b.length) b.push("");
                                } else if(b.length > a.length) {
                                        while(b.length > a.length) a.push("");
                                }
                        }


                        handleDuplicates(words1, words2);
                        /* Initial translate for default text */
                        if($('#english-text').val() != "") {
                                var english = $('#english-text').val();
                                var ghetto = translate(english);
                                $('#ghetto-text').val(ghetto);
                        }
                


</script>


<script>
$(function() { 
 /*if($.trim($("#fancytext").val())!='') { 
    generateFancy($("#fancytext").val());
  } else {
   generateFancy("Preview Text");
  }*/
  
$(".fancytext").keyup(function() { 
   $(".fancytext").val($(this).val());
   if($.trim($(this).val())!='') { 
   generateFancy($(this).val());
   } else {
   generateFancy("Preview Text");
   }
 });
var ct = 89;
function generateFancy(txt) {
  var fancyText = '';
     var result = forward(txt);
         var finalRes =  result.split('\n\n');
         var sn=1;
        $.each(finalRes,function(inx, vl) { 
            $("#copy_"+inx).val(vl);
            
         // fancyText  +=  '<div class="input-group mb-3"><input type="text" class="form-control text-'+sn+'" value="'+vl+'" id="copy_'+inx+'" readonly="readonly"><div class="input-group-append"><span class="input-group-text copybutton" style="cursor:pointer;" data-clipboard-action="copy" data-clipboard-target="#copy_'+inx+'">Copy</span></div></div>';
          sn++;
        });
        
        
        for(k=89; k<=ct; k++) {
            //console.log(k);
            $("#copy_"+k).val(crazyWithFlourishOrSymbols(txt));
        }
           //$("#result").html(fancyText); 
}
 
 $(".loadmore").click(function(){
   $(this).html('Loading...');
    var text = $.trim($(".fancytext").val());
   if(text=='') {
     text = 'Preview Text';
   } 
   var that = $(this);
   var intvl = setInterval(function(){  that.html('Load More');clearInterval(intvl); }, 1000);
   for(var i=1;i<=10;i++){
    fancyText  =  '<div class="input-group mb-3"><input type="text" class="form-control" value="'+crazyWithFlourishOrSymbols(text)+'" id="copy_'+ct+'" readonly="readonly"><div class="input-group-append"><span class="input-group-text copybutton" style="cursor:pointer;" data-clipboard-action="copy" data-clipboard-target="#copy_'+ct+'">Copy</span></div></div>';
      ct++;
    $("#result").append(fancyText);
    }
 });


});
</script>
 <script>
$(function(){
var intv = setInterval(function(){ $(".copybutton").html('Copy'); }, 2000);
  $("body").on('click',".copybutton",function() { 
$(".copybutton").html('Copy');
$(this).html('Copied'); 
clearInterval(intv);
});
});


    var clipboard = new ClipboardJS('.copybutton');
    clipboard.on('success', function(e) {
        //console.log(e);
    });
    clipboard.on('error', function(e) {
        //console.log(e);
    });
    </script>
    

What is Fancy Text Script

Now a best trending argument architect is a trend among internet users connecting their own best argument architect websites.
and earning a lot of money by designing work for blogs and websites.
So you can additionally accomplish your argument architect website in blogger website fresh and functional business site.

How to make fancy text in Javascript

This SCR is his top designing level text fashion and it is free and has many trending fancy designs.
Bloggers’ articles and posts in its attending this script and additionally make nice designs with the help of it.
Never try on a complete blog at once without backup try one by one page to understand the flow of code.

How to use this script

This article and code are a template for blog purposes we are not suggesting any change.
Add in blog or website redesign to use so attentive change this code on your behalf.
Add slowly after understanding completely the script work in text writings.

Scroll to Top