@@ -26,10 +26,19 @@ console.log(queryDict2);
2626// check if the rendered page is shared by others or created to share
2727if ( ! ( d1 == "shared" && d2 == "True" ) ) {
2828 let button_div = document . querySelector ( ".bclass" ) ;
29- // <button onclick="get_short_url()">Share with friends !</button>
29+ /*
30+ <button onclick="get_short_url()" class="share_btn">Share with friends !
31+ <span class="popuptext">Sharable URL Copied !</span>
32+ </button>
33+ */
3034 var button = document . createElement ( "button" )
3135 button . setAttribute ( "onclick" , "get_short_url()" ) ;
36+ button . setAttribute ( "class" , "share_btn" ) ;
3237 button . appendChild ( document . createTextNode ( "Share with Friends !" ) ) ;
38+ var span_popup = document . createElement ( "span" ) ;
39+ span_popup . setAttribute ( "class" , "popuptext" ) ;
40+ span_popup . appendChild ( document . createTextNode ( "Shareble URL Copied !" ) ) ;
41+ button . appendChild ( span_popup ) ;
3342 button_div . appendChild ( button ) ;
3443}
3544
@@ -156,7 +165,6 @@ for(i=0; i<queryDict1.length; i++){
156165}
157166var replaced = queryDict2 [ i ] [ 0 ] . split ( '+' ) . join ( ' ' ) ;
158167var replaced = "<h1>" + replaced + "</h1>" ;
159- console . log ( "Replaced" + replaced ) ;
160168// code for not to apply styling to the emojis to maintain the original color
161169if ( replaced . search ( regexExp ) != - 1 ) {
162170 const found = replaced . match ( regexExp ) ; // returns array of all matches of emoji
@@ -170,7 +178,6 @@ if(replaced.search(regexExp)!=-1){
170178 }
171179 }
172180}
173- console . log ( replaced ) ;
174181message . innerHTML = replaced
175182greet . innerHTML = "From: " + queryDict2 [ i - 1 ] [ 0 ] . split ( '+' ) . join ( ' ' ) ;
176183// "<br>To: "+queryDict2[i-1][0];
0 commit comments