How to use text1 method in wpt

Best JavaScript code snippet using wpt

execute.js

Source:execute.js Github

copy

Full Screen

1//menu informasi2$('#saldo').unbind('click').click(function() {saldo();});3$('#mutasi_transaksi').unbind('click').click(function() {mutasi_transaksi();});4$('#rekening_dplk').unbind('click').click(function() {rekening_dplk();});5$('#kartu_kredit_bni').unbind('click').click(function() {kartu_kredit_bni();});6$('#telepon_pasca_bayar').unbind('click').click(function() {telepon_pasca_bayar();});7$('#listrik').unbind('click').click(function() {listrik();});8$('#internet_tv_berlangganan').unbind('click').click(function() {internet_tv_berlangganan();});9$('#kai').unbind('click').click(function() {kai();});10$('#pgn').unbind('click').click(function() {pgn();});//CR1907711function saldo(){12 var x = 'SAL';13 exec(x);14}15function mutasi_transaksi(){16 var x = 'HST';17 exec(x);18}19function rekening_dplk(){20 var format = 'INQ DPLK ';21 var text1 = document.getElementById('text1').value;22 var x = format.concat(text1);23 if(text1 != ''){24 exec(x);25 }26}27function kartu_kredit_bni(){28 var format = 'TAG BNI ';29 var text1 = document.getElementById('text1').value;30 var x = format.concat(text1);31 if(text1 != ''){32 exec(x);33 }34}35function telepon_pasca_bayar(){36 var format = 'TAG ';37 var text1 = document.getElementById('text1').value;38 var text2 = document.getElementById('text2').value;39 var x = format.concat(text1,' ',text2);40 if(text2 != ''){41 exec(x);42 }43}44function listrik(){45 var format = 'TAG ';46 var text1 = document.getElementById('text1').value;47 var text2 = document.getElementById('text2').value;48 var x = format.concat(text1,' ',text2);49 if(text1 != '' && text2 != ''){50 exec(x);51 }52}53function internet_tv_berlangganan(){54 var format = 'TAG ';55 var text1 = document.getElementById('text1').value;56 var text2 = document.getElementById('text2').value;57 var x = format.concat(text1,' ',text2);58 if(text1 != '' && text2 != ''){59 exec(x);60 }61}62//end of menu informasi6364//menu transfer65$('#trf_rekening_bni').unbind('click').click(function() {trf_rekening_bni();});66$('#trf_antar_bank').unbind('click').click(function() {trf_antar_bank();});67$('#trf_dengan_berita').unbind('click').click(function() {trf_dengan_berita();});68$('#trf_dengan_notifikasi').unbind('click').click(function() {trf_dengan_notifikasi();});69$('#trf_dengan_berita_dan_notifikasi').unbind('click').click(function() {trf_dengan_berita_dan_notifikasi();});70$('#trf_sms_tunai').unbind('click').click(function() {trf_sms_tunai();});71$('#trf_rekening_dplk_bni_simponi').unbind('click').click(function() {trf_rekening_dplk_bni_simponi();});72function trf_rekening_bni(){73 var format = 'TRANSFER ';74 var text1 = document.getElementById('text1').value;75 var text2 = document.getElementById('text2').value;76 var x = format.concat(text1,' ',text2);77 if(text1 != '' && text2 != ''){78 exec(x);79 }80}81function trf_antar_bank(){82 var format = 'TRANSFER ANTARBANK ';83 var textTemp = document.getElementById('text1').value;84 var text1 = textTemp.split(" ");85 var text2 = document.getElementById('text2').value;86 var text3 = document.getElementById('text3').value;87 var text4 = document.getElementById('text4').value;88 var text5 = document.getElementById('text5').value;89 var x = format.concat(text1[0],text2,' ',text3,' #',text4,'# ', text5);90 if(text1 != '' && text2 != '' && text3 != ''){91 exec(x);92 }93}94function trf_dengan_berita(){95 var format = 'TRANSFER BERITA ';96 var text1 = document.getElementById('text1').value;97 var text2 = document.getElementById('text2').value;98 var text3 = document.getElementById('text3').value;99 var x = format.concat(text1,' ',text2,' #',text3,'#');100 if(text1 != '' && text2 != '' && text3 != ''){101 exec(x);102 }103}104function trf_dengan_notifikasi(){105 var format = 'TRANSFER NOTIFIKASI ';106 var text1 = document.getElementById('text1').value;107 var text2 = document.getElementById('text2').value;108 var text3 = document.getElementById('text3').value;109 var x = format.concat(text1,' ',text2,' ',text3);110 if(text1 != '' && text2 != '' && text3 != ''){111 exec(x);112 }113}114function trf_dengan_berita_dan_notifikasi(){115 var format = 'TRANSFER BERITANOTIFIKASI ';116 var text1 = document.getElementById('text1').value;117 var text2 = document.getElementById('text2').value;118 var text3 = document.getElementById('text3').value;119 var text4 = document.getElementById('text4').value;120 var x = format.concat(text1,' ',text2,' #',text3,'# ',text4);121 if(text1 != '' && text2 != '' && text3 != '' && text4 != ''){122 exec(x);123 }124}125function trf_sms_tunai(){126 var format = 'TUNAI ';127 var text1 = document.getElementById('text1').value;128 var text2 = document.getElementById('text2').value;129 var text3 = document.getElementById('text3').value;130 var text4 = document.getElementById('text4').value;131 var x = format.concat('#',text1,'# #',text2,'# ',text3,' ',text4);132 if(text1 != '' && text2 != '' && text3 != '' && text4 != ''){133 exec(x);134 }135}136function trf_rekening_dplk_bni_simponi(){137 var format = 'SETOR DPLK ';138 var text1 = document.getElementById('text1').value;139 var text2 = document.getElementById('text2').value;140 var x = format.concat(text1,' ',text2);141 if(text1 != '' && text2 != ''){142 exec(x);143 }144}145//end of menu transfer146147148//menu pembayaran149$('#kartu_kredit').unbind('click').click(function() {kartu_kredit();});150$('#telepon_pasca_bayar2').unbind('click').click(function() {telepon_pasca_bayar2();});151$('#listrik2').unbind('click').click(function() {listrik2();});152$('#air_listrik').unbind('click').click(function() {air_listrik();});153$('#tv_internet_berlangganan').unbind('click').click(function() {tv_internet_berlangganan();});154$('#tiket').unbind('click').click(function() {tiket();});155$('#zakat_infaq_qurban').unbind('click').click(function() {zakat_infaq_qurban();});156$('#penerimaan_negara').unbind('click').click(function() {penerimaan_negara();});157$('#asuransi').unbind('click').click(function() {asuransi();});158$('#pinjaman_personal').unbind('click').click(function() {pinjaman_personal();});159$('#samsat').unbind('click').click(function() {samsat();});160$('#angsuran_multi_finance').unbind('click').click(function() {angsuran_multi_finance();});161$('#um_ptkin').unbind('click').click(function() {um_ptkin();});162$('#sbmptn').unbind('click').click(function() {sbmptn();});163$('#bpjs').unbind('click').click(function() {bpjs();});164$('#tki').unbind('click').click(function() {tki();});165$('#kepelabuhanan').unbind('click').click(function() {kepelabuhanan();});166167function kartu_kredit(){168 var format = 'PAY ';169 var text1 = document.getElementById('text1').value;170 var text2 = document.getElementById('text2').value;171 var text3 = document.getElementById('text3').value;172 var x = format.concat(text1,' ',text2,' ',text3);173 if(text1 != '' && text2 != '' && text3 != ''){174 exec(x);175 }176}177function telepon_pasca_bayar2(){178 var format = 'PAY ';179 var text1 = document.getElementById('text1').value;180 var text2 = document.getElementById('text2').value;181 var x = format.concat(text1,' ',text2);182 if(text1 != '' && text2 != ''){183 exec(x);184 }185}186function listrik2(){187 var format = 'PAY ';188 var text1 = document.getElementById('text2').value;189 var text2 = document.getElementById('text3').value;190 var x = format.concat(text1,' ',text2);191 if(text1 != '' && text2 != ''){192 exec(x);193 }194}195function air_listrik(){196 var format = 'PAY PAM ';197 var text1 = document.getElementById('text1').value;198 var text2 = document.getElementById('text2').value;199 var x = format.concat(text1,' ',text2);200 if(text1 != '' && text2 != ''){201 exec(x);202 }203}204function tv_internet_berlangganan(){205 var format = 'PAY ';206 var text1 = document.getElementById('text1').value;207 var text2 = document.getElementById('text2').value;208 var x = '';209210 x = format.concat(text1,' ',text2);211 if(text2 != '')212 exec(x);213 else214 alert ('No pelanggan kosong');215 216}217218function tiket(){219 var format = 'PAY ';220 var text1 = document.getElementById('text1').value;221 var text2 = document.getElementById('text2').value;222 var x = format.concat(text1,' ',text2);223 if(text1 != '' && text2 != ''){224 exec(x);225 }226}227function zakat_infaq_qurban(){228 var format = document.getElementById('jenis').value;229 var merchant = document.getElementById('merchant').value;230 var jumlah = document.getElementById('text2').value;231 232 if(merchant=="RZ"){233 var nohp = document.getElementById('text1').value;234 if(nohp.length<9){235 alert("Nomor handphone tidak valid");236 return;237 }238 format = format.concat(' ',merchant,' ',nohp,' ',jumlah);239 } else {240 format = format.concat(' ',merchant,' ',jumlah);241 }242 243 if(jumlah>0){244 exec(format);245 }246 247}248function penerimaan_negara(){249 var format = 'PAY ';250 var text1 = $('#text1').val();251 var text2 = $('#text2').val();252 var text3 = $('#text3').val();253 var text4 = $('#text4').val();254 var text5 = $('#text5').val();255256 if(text1 != '' && text3 != ''){ //PNBP AHU257 var x = format.concat(text1,' ',text3);258 exec(x);259 } else if (text3 == '' && text5 != '') { //PBB260 var x = format.concat(text1, ' ', text3, ' ', text4, ' ', text5);261 exec(x);262 } else if (text3 == '' && text5 == '') { //Pajak Daerah263 var x = format.concat(text1,' ', text2, ' ', text3, ' ', text4);264 exec(x);265 }266}267function asuransi(){268 var format = 'PAY ';269 var text1 = document.getElementById('text1').value;270 var text2 = document.getElementById('text2').value;271 var text4 = document.getElementById('text4').value;272 var text5 = document.getElementById('text5').value;273 var text6 = document.getElementById('text6').value;274275 //set premi awal prudential276277 if(text2 !=''){ //Jiwasraya278 var x = format.concat(text1,' ',text2);279 exec(x);280 }else if(text5 !='' && text6 == ''){ //Bumiputera281 var x = format.concat(text1,' ',text4,' ',text5);282 exec(x);283 } else if (text5 !='' && text6 !='') { //Bumiputera topup premi, Prudential all284 var x = format.concat(text1,' ',text4,' ',text5, ' ', text6);285 exec(x);286 }287}288289function bpjs(){290 var format = 'PAY ';291 var text1 = document.getElementById('text1').value;292 var text2 = document.getElementById('text2').value;293 var text3 = document.getElementById('text3').value;294295 if(text1 !='' && text2 !='' && text3 !=''){296 var x = format.concat(text1,' ',text2,' ',text3);297 exec(x);298 }299}300301function pinjaman_personal(){302 var format = 'PAY KTA ';303 var text1 = document.getElementById('text1').value;304 var text2 = document.getElementById('text2').value;305 var text3 = document.getElementById('text3').value;306 var x = format.concat(text1,' ',text2,' ',text3);307 if(text1 != '' && text2 != '' && text3 != ''){308 exec(x);309 }310}311function samsat(){312 var format = 'PAY ';313 var text1 = document.getElementById('text1').value;314 var text2 = document.getElementById('text2').value;315 var text3 = document.getElementById('text3').value;316 var x = format.concat(text1,' ',text2,'',text3);317 if(text1 != '' && text2 != '' && text3 != ''){318 exec(x);319 }320}321function angsuran_multi_finance(){322 var format = 'PAY ';323 var text1 = document.getElementById('text1').value;324 var text2 = document.getElementById('text2').value;325 var x = format.concat(text1,' ',text2);326 if(text1 != '' && text2 != ''){327 exec(x);328 }329}330331function um_ptkin() {332 var format = 'PAY UMPTKIN ';333 var text1 = document.getElementById('text1').value;334 var x = format.concat(text1);335 336 if(text1 != ''){337 exec(x);338 }339}340341function sbmptn() {342 var format = 'PAY UTBK ';343 var text1 = document.getElementById('text1').value;344 var text2 = document.getElementById('text2').value;345 var x = format.concat(text1,' ',text2);346 if(text1 != '' && text2 != ''){347 exec(x);348 }349350}351352function kai() {353 var format = 'PAY ';354 var text1 = document.getElementById('text1').value;355 var text2 = document.getElementById('text2').value;356 var x = format.concat(text1,' ',text2);357358 if (text2 != '') {359 exec(x);360 }361}362//CR19077363function pgn() {364 var format = 'PAY PGN ';365 var text1 = document.getElementById('text1').value;366 var x = format.concat(text1);367 if (text1 != '')368 exec(x);369}370//END CR19077371function tki() {372 var format = 'PAY TKI ';373 var text1 = document.getElementById('text1').value;374 var x = format.concat(text1);375 if (text1 != '')376 exec(x);377}378//CR26171379function kepelabuhanan() {380 var format = 'PAY ';381 var text1 = document.getElementById('text1').value;382 var text2 = document.getElementById('text2').value;383 var x = format.concat(text1,' ',text2);384 if(text1 != '' && text2 != ''){385 exec(x);386 }387}388//end of menu pembayaran389390//menu pembelian391$('#LinkAja').unbind('click').click(function() {LinkAja();});392$('#hp_telepon').unbind('click').click(function() {hp_telepon();});393$('#token_listrik').unbind('click').click(function() {token_listrik();});394$('#paketData').unbind('click').click(function() {paketData();});395$('#tapCash').unbind('click').click(function() {tapCash();});396$('#GoJek').unbind('click').click(function() {GoJek();});397//('#GrabPay').unbind('click').click(function() {GrabPay();});398$('#unikqu').unbind('click').click(function() {unikqu();});399$('#uangElektronik').unbind('click').click(function() {uangElektronik();});400$('#orange').unbind('click').click(function() {orange();});401$('#lpg3kg').unbind('click').click(function() {lpg3kg();});402403function LinkAja() {404 var format = 'TOP ';405 var text1 = document.getElementById('text1').value;406 var text2 = document.getElementById('text2').value;407 var text3 = document.getElementById('text3').value;408 var x = format.concat(text1,' ', text2, ' ', text3);409 410 if (text1 != '' && text2 != '' && text3 != '') {411 exec(x);412 }413}414415function hp_telepon(){416 var format = 'TOP ';417 var re = /\./gi;418 var text1 = document.getElementById('text1').value;419 var text2 = document.getElementById('text2').value;420 var valText3 = document.getElementById('text3').value;421 var text3 = valText3.replace(re,'');422 if(text1 != '' && text2 != '' && text3 != ''){423 if(text1 == 'TELKOMSEL' || text1 == 'INDOSAT'){424 var x = format.concat(text2,' ',text3);425 }else{426 var x = format.concat(text1,' ',text2,' ',text3);427 }428 exec(x);429 }430}431432function token_listrik(){433 var text1 = document.getElementById('text1').value;434 var format = 'PLN';435 var text2 = document.getElementById('text2').value;436 var isChooseCek = document.getElementById('isChooseCek').value;437 var x = '';438 if(isChooseCek == 'false'){439 x = text1.concat(' ',format,' ',text2);440 if(text1 != '' && text2 != ''){441 exec(x);442 }443 }else{444 var text3 = document.getElementById('text3').value;445 x = text1.concat(' ',format,' ',text2,' ',text3);446 if(text1 != '' && text2 != '' && text3 != ''){447 exec(x);448 }449 }450}451452function tapCash() {453 var format = 'TOP TAPCASH ';454 var text1 = document.getElementById('text1').value;455 var text2 = document.getElementById('text2').value;456 var x = format.concat(text1,' ', text2, ' ');457 458 if (text1 != '' && text2 != '') {459 exec(x);460 }461}462463function paketData() {464 var format = 'TOP ';465 var text1 = document.getElementById('text1').value;466 var text2 = document.getElementById('text2').value;467 var text4 = document.getElementById('text4').value;468 var text5 = document.getElementById('text5').value;469 var text3 = document.getElementById('text3').value;470 var text6 = document.getElementById('text6').value;471 472473 if(text1=='PULSA INTERNET TELKOMSEL' && text5 != ''&& text3!=''){474 var x = format.concat(text1, ' ', text3, ' ', text5);475 exec(x);476 }477 else if(text1=='XLData' && text2 != '' && text3 != ''){478 var x = format.concat(text1, ' ', text3, ' ', text2);479 exec(x);480 }481 else if(text1=='indosat' && text4 != ''&& text3 != ''){482 var x = format.concat(text4, ' ', text3);483 exec(x);484 } 485 else if (text1=='Paket Digital Telkomsel'){486 var x = format.concat(text6, ' ', text3);487 exec(x);488 }489 490 else{491 alert('Semua Field Harus Diisi Sebelum Melanjutkan Transaksi');492 } 493 494 495}496497function GoJek() {498 var format = 'TOP ';499 var text1 = document.getElementById('text1').value;500 var text2 = document.getElementById('text2').value;501 var text3 = document.getElementById('text3').value;502 var x = format.concat(text1,' ', text2, ' ', text3, ' ');503 504 if (text1 != '' && text2 != '' && text3 != '') {505 exec(x);506 }507}508509/*function GrabPay() {510 var format = 'TOP ';511 var text1 = document.getElementById('text1').value;512 var text2 = document.getElementById('text2').value;513 var text3 = document.getElementById('text3').value;514 var x = format.concat(text1,' ', text2, ' ', text3);515 516 if (text1 != '' && text2 != '' && text3 != '') {517 exec(x);518 }519}*/520521function unikqu() {522 var format = 'TOP UNIKQU ';523 var text1 = $('#text1').val();524 var text2 = $('#text2').val();525526 var x = format.concat(text1, ' ', text2);527528 if (text1 != '' && text2 != '')529 exec(x);530}531532function uangElektronik() {533 var format = 'TOP ';534 var text1 = document.getElementById('text1').value;535 var text2 = document.getElementById('text2').value;536 var text3 = document.getElementById('text3').value;537 var x = format.concat(text1,' ', text2, ' ', text3);538 539 if (text1 != '' && text2 != '' && text3 != '') {540 exec(x);541 }542}543544function orange() {545 var format = 'TOP ORANGE ';546 var text1 = $('#text1').val();547 var text2 = $('#text2').val();548549 var x = format.concat(text1, ' ', text2);550551 if (text1 != '' && text2 != '')552 exec(x);553}554555function lpg3kg() {556 var format = 'PAY LPG3KG ';557 var text1 = document.getElementById('text1').value;558 var text2 = document.getElementById('text2').value;559 var text3 = document.getElementById('text3').value;560 var text4 = document.getElementById('text4').value;561562 var x = format.concat(text1,' ', text2, ' ', text3, ' ', text4);563564 if (text1 != '' && text2 != '' && text3 != '' && text4 != '') {565 exec(x);566 }567}568569function orange() {570 var format = 'TOP ORANGE ';571 var text1 = $('#text1').val();572 var text2 = $('#text2').val();573574 var x = format.concat(text1, ' ', text2);575576 if (text1 != '' && text2 != '')577 exec(x);578}579580//end of menu pembelian581582//menu epayment583//$('#epayment').unbind('click').click(function() {epayment();});584$('#ewallet').unbind('click').click(function() {ewallet();});585//function epayment(){586// var format = 'BELI ';587// var text1 = document.getElementById('text1').value;588// var text2 = document.getElementById('text2').value;589// var x = format.concat(text1,' ',text2);590// if(text1 != '' && text2 != ''){591// exec(x);592// }593//}594function ewallet(){595 var isChooseTopup = document.getElementById('isChooseTopup').value;596 var text2 = document.getElementById('text2').value;597 var x = '';598 if(isChooseTopup == 'false'){599 x = text2;600 exec(x);601 }else{602 var text3 = document.getElementById('text3').value;603 var text4 = document.getElementById('text4').value;604 x = text2.concat(' ',text3,' ',text4);605 if(text3 != '' && text4 != ''){606 exec(x);607 }608 }609}610//end of menu epayment611612613//menu pengaturan614$('#ganti_pin').unbind('click').click(function() {ganti_pin();});615$('#daftarRekening').unbind('click').click(function() {daftarRekening();});616$('#gantiRekening').unbind('click').click(function() {gantiRekening();});617618function ganti_pin(){619 var format = 'PIN ';620 var text1 = document.getElementById('text1').value;621 var text2 = document.getElementById('text2').value;622 var x = format.concat(text1,' ',text2);623 var t1Hide = text1.replace(/./g, '*');624 var t2Hide = text2.replace(/./g, '*');625 var y = format.concat(t1Hide,' ',t2Hide);626 if(text1 != '' && text2 != ''){627 exec(x,y);628 }629}630631function daftarRekening() {632 var format = 'DAFTAR REKENING ';633634 exec(format);635}636637function gantiRekening() {638 var format = 'GANTI REKENING ';639 var text1 = document.getElementById('text1').value;640 var x = format.concat(text1);641642 if (text1 != '') {643 exec(x);644 }645}646//end of menu pengaturan647648//menu free syntax649$('#free_syntax').unbind('click').click(function() {free_syntax();});650function free_syntax(){651 var x = document.getElementById('text1').value;652 if(x != ''){653 exec(x);654 }655}656//end of menu free syntax657658function exec(param1,param2){659 $(".loader").show();660 if(param1 != null){661 // var showMessage = (typeof param2 === 'undefined') ? param1 :param2;662 // $(document).ready(function() {663 // $.getScript("bootstrap/js/bootbox.min.js").done(function(){664 // bootbox.dialog({665 // message : showMessage,666 // title : "Anda akan mengirim ?",667 // buttons:{668 // warning:{669 // label:"Setuju",670 // className :"btn btn-warning",671 // callback : function(){672 send(param1);673 // }674 // },675 // default:{676 // label:"Batal",677 // className :"btn btn-default"678 // }679 // }680 // });681 // });682 // });683 }684}685686function send(message){687688 var data =[message];689 var isfavorit = window.document.getElementById('isFavoritID');690 isfavorit = (isfavorit == null ? false : isFavorit());691692 if(isfavorit){693 if(window.localStorage.length < 100){694 if(addFavorit()){695 customBridge.sendSMS(message);696 }else{697 boxAlert("Nama favorit tidak boleh kosong dan pesan anda gagal terkirim!");698 }699700 }else{701 boxAlert("Fitur favorit maksimal 100 item dan pesan anda gagal terkirim!");702 }703 }else{704 customBridge.sendSMS(message);705 }706}707708function boxAlert(msg){709 $('document').ready(function(){710 $.getScript("bootstrap/js/bootbox.min.js").done(function(){711 bootbox.alert(msg);712 });713 }); ...

Full Screen

Full Screen

textpro.js

Source:textpro.js Github

copy

Full Screen

1const bent = require('bent')2const baseURI = 'https://server-api-rey.herokuapp.com'3module.exports.blackpink = function blackpink(text1) {4 return new Promise((resolve, reject) => {5 bent('buffer')(baseURI+'/api/textprome/blackpink?text=' + encodeURIComponent(text1) + '&apikey=apirey')6 .then(resolve)7 .catch(reject)8 })9}10module.exports.sky = function sky(text1) {11 return new Promise((resolve, reject) => {12 bent('buffer')(baseURI+'/api/textprome/sky?text=' + encodeURIComponent(text1) + '&apikey=404Api')13 .then(resolve)14 .catch(reject)15 })16}17module.exports.toxic = function toxic(text1) {18 return new Promise((resolve, reject) => {19 bent('buffer')(baseURI+'/api/textprome/toxic?text=' + encodeURIComponent(text1) + '&apikey=404Api')20 .then(resolve)21 .catch(reject)22 })23}24module.exports.thunder = function thunder(text1) {25 return new Promise((resolve, reject) => {26 bent('buffer')(baseURI+'/api/textprome/thunder?text=' + encodeURIComponent(text1) + '&apikey=404Api')27 .then(resolve)28 .catch(reject)29 })30}31module.exports.horror = function realcloud(text1) {32 return new Promise((resolve, reject) => {33 bent('buffer')(baseURI+'/api/textprome/horror?text=' + encodeURIComponent(text1) + '&apikey=404Api')34 .then(resolve)35 .catch(reject)36 })37}38module.exports.halloween = function halloween(text1) {39 return new Promise((resolve, reject) => {40 bent('buffer')(baseURI+'/api/textprome/halloween?text=' + encodeURIComponent(text1) + '&apikey=404Api')41 .then(resolve)42 .catch(reject)43 })44}45module.exports.harrypotter = function harrypotter(text1) {46 return new Promise((resolve, reject) => {47 bent('buffer')(baseURI+'/api/textprome/harrypotter?text=' + encodeURIComponent(text1) + '&apikey=404Api')48 .then(resolve)49 .catch(reject)50 })51}52module.exports.holograpich3d = function holograpich3d(text1) {53 return new Promise((resolve, reject) => {54 bent('buffer')(baseURI+'/api/textprome/hologrspich-3d?text=' + encodeURIComponent(text1) + '&apikey=404Api')55 .then(resolve)56 .catch(reject)57 })58}59module.exports.metaldark = function metaldark(text1) {60 return new Promise((resolve, reject) => {61 bent('buffer')(baseURI+'/api/textprome/metal-dark?text=' + encodeURIComponent(text1) + '&apikey=404Api')62 .then(resolve)63 .catch(reject)64 })65}66module.exports.matrix = function matrix(text1) {67 return new Promise((resolve, reject) => {68 bent('buffer')(baseURI+'/api/textprome/matrix?text=' + encodeURIComponent(text1) + '&apikey=404Api')69 .then(resolve)70 .catch(reject)71 })72}73module.exports.minion = function minion(text1) {74 return new Promise((resolve, reject) => {75 bent('buffer')(baseURI+'/api/textprome/minion?text=' + encodeURIComponent(text1) + '&apikey=404Api')76 .then(resolve)77 .catch(reject)78 })79}80module.exports.blood = function blood(text1) {81 return new Promise((resolve, reject) => {82 bent('buffer')(baseURI+'/api/textprome/blood?text=' + encodeURIComponent(text1) + '&apikey=404Api')83 .then(resolve)84 .catch(reject)85 })86}87module.exports.firework = function firework(text11, text12) {88 return new Promise((resolve, reject) => {89 bent('buffer')(baseURI+'/api/textprome/skeleton?text=' + encodeURIComponent(text1) + '&apikey=404Api')90 .then(resolve)91 .catch(reject)92 })93}94module.exports.wicker = function wicker(text1) {95 return new Promise((resolve, reject) => {96 bent('buffer')(baseURI+'/api/textprome/wicker?text=' + encodeURIComponent(text1) + '&apikey=404Api')97 .then(resolve)98 .catch(reject)99 })100}101module.exports.luxury = function luxury(text1) {102 return new Promise((resolve, reject) => {103 bent('buffer')(baseURI+'/api/textprome/luxury?text=' + encodeURIComponent(text1) + '&apikey=404Api')104 .then(resolve)105 .catch(reject)106 })107}108module.exports.gradient = function gradient(text11, text12) {109 return new Promise((resolve, reject) => {110 bent('buffer')(baseURI+'/api/textprome/gradient?text=' + encodeURIComponent(text1) + '&apikey=404Api')111 .then(resolve)112 .catch(reject)113 })114}115module.exports.neonlight = function neonlight(text1) {116 return new Promise((resolve, reject) => {117 bent('buffer')(baseURI+'/api/textprome/neonlight?text=' + encodeURIComponent(text1) + '&apikey=404Api')118 .then(resolve)119 .catch(reject)120 })121}122module.exports.neonnew = function neonnew(text1) {123 return new Promise((resolve, reject) => {124 bent('buffer')(baseURI+'/api/textprome/neonnew?text=' + encodeURIComponent(text1) + '&apikey=404Api')125 .then(resolve)126 .catch(reject)127 })128}129module.exports.christmas = function christmas(text1) {130 return new Promise((resolve, reject) => {131 bent('buffer')(baseURI+'/api/textprome/christmas?text=' + encodeURIComponent(text1) + '&apikey=404Api')132 .then(resolve)133 .catch(reject)134 })135}136module.exports.dropwater = function dropwater(text1) {137 return new Promise((resolve, reject) => {138 bent('buffer')(baseURI+'/api/textprome/dropwater?text=' + encodeURIComponent(text1) + '&apikey=404Api')139 .then(resolve)140 .catch(reject)141 })142}143module.exports.xmas = function xmas(text1) {144 return new Promise((resolve, reject) => {145 bent('buffer')(baseURI+'/api/textprome/xmas?text=' + encodeURIComponent(text1) + '&apikey=404Api')146 .then(resolve)147 .catch(reject)148 })149}150module.exports.lava = function lava(text1) {151 return new Promise((resolve, reject) => {152 bent('buffer')(baseURI+'/api/textprome/lava?text=' + encodeURIComponent(text1) + '&apikey=404Api')153 .then(resolve)154 .catch(reject)155 })156}157module.exports.gloxycarbon = function gloxycarbon(text11, text12) {158 return new Promise((resolve, reject) => {159 bent('buffer')(baseURI+'/api/textprome/gloxy-carbon?text1=' + encodeURIComponent(text1) + '&apikey=404Api')160 .then(resolve)161 .catch(reject)162 })163}164module.exports.deluxecarbon = function deluxecarbon(text1) {165 return new Promise((resolve, reject) => {166 bent('buffer')(baseURI+'/api/textprome/deluxe-carbon?text=' + encodeURIComponent(text1) + '&apikey=404Api')167 .then(resolve)168 .catch(reject)169 })170}171module.exports.glue = function glue(text1) {172 return new Promise((resolve, reject) => {173 bent('buffer')(baseURI+'/api/textprome/glue?text=' + encodeURIComponent(text1) + '&apikey=404Api')174 .then(resolve)175 .catch(reject)176 })177}178module.exports.joker = function joker(text1) {179 return new Promise((resolve, reject) => {180 bent('buffer')(baseURI+'/api/textprome/joker?text=' + encodeURIComponent(text1) + '&apikey=404Api')181 .then(resolve)182 .catch(reject)183 })184}185module.exports.sandsummer = function sandsummer(text1) {186 return new Promise((resolve, reject) => {187 bent('buffer')(baseURI+'/api/textprome/sandsummer?text=' + encodeURIComponent(text1) + '&apikey=404Api')188 .then(resolve)189 .catch(reject)190 })191}192module.exports.sandengraved = function sandengraved(text11, text12) {193 return new Promise((resolve, reject) => {194 bent('buffer')(baseURI+'/api/textprome/gloxy-carbon?text1=' + encodeURIComponent(text1) + '&apikey=404Api')195 .then(resolve)196 .catch(reject)197 })198}199module.exports.deluxesilver = function deluxecsilver(text1) {200 return new Promise((resolve, reject) => {201 bent('buffer')(baseURI+'/api/textprome/deluxe-siverl?text=' + encodeURIComponent(text1) + '&apikey=404Api')202 .then(resolve)203 .catch(reject)204 })205}206module.exports.gloxyblue = function gloxyblue(text1) {207 return new Promise((resolve, reject) => {208 bent('buffer')(baseURI+'/api/textprome/gloxy-blue?text=' + encodeURIComponent(text1) + '&apikey=404Api')209 .then(resolve)210 .catch(reject)211 })212}213///////////////////////// 2 TEXT //////////////////////////////214module.exports.pornhub = function pornhub(text1, text2) {215 return new Promise((resolve, reject) => {216 bent('buffer')(baseURI+'/api/textprome/pornhub?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')217 .then(resolve)218 .catch(reject)219 })220}221module.exports.vintage = function vintage(text1, text2) {222 return new Promise((resolve, reject) => {223 bent('buffer')(baseURI+'/api/textprome/vintage?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')224 .then(resolve)225 .catch(reject)226 })227}228module.exports.avengers = function avengers(text1, text2) {229 return new Promise((resolve, reject) => {230 bent('buffer')(baseURI+'/api/textprome/avengers?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')231 .then(resolve)232 .catch(reject)233 })234}235module.exports.marvel = function marvel(text1, text2) {236 return new Promise((resolve, reject) => {237 bent('buffer')(baseURI+'/api/textprome/marvel?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')238 .then(resolve)239 .catch(reject)240 })241}242module.exports.ninja = function ninja(text1, text2) {243 return new Promise((resolve, reject) => {244 bent('buffer')(baseURI+'/api/textprome/ninja?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')245 .then(resolve)246 .catch(reject)247 })248}249module.exports.wolf = function wolf(text1, text2) {250 return new Promise((resolve, reject) => {251 bent('buffer')(baseURI+'/api/textprome/wolf?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')252 .then(resolve)253 .catch(reject)254 })255}256module.exports.girlgraffiti = function girlgraffiti(text1, text2) {257 return new Promise((resolve, reject) => {258 bent('buffer')(baseURI+'/api/textprome/girl-grafiti?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')259 .then(resolve)260 .catch(reject)261 })262}263module.exports.wolf2 = function wolf2(text1, text2) {264 return new Promise((resolve, reject) => {265 bent('buffer')(baseURI+'/api/textprome/wolf2?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')266 .then(resolve)267 .catch(reject)268 })269}270module.exports.marvel2 = function marvel2(text1, text2) {271 return new Promise((resolve, reject) => {272 bent('buffer')(baseURI+'/api/textprome/marvel2?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')273 .then(resolve)274 .catch(reject)275 })276}277module.exports.space3d = function space3d(text1, text2) {278 return new Promise((resolve, reject) => {279 bent('buffer')(baseURI+'/api/textprome/space3d?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')280 .then(resolve)281 .catch(reject)282 })283}284module.exports.stone = function stone(text1, text2) {285 return new Promise((resolve, reject) => {286 bent('buffer')(baseURI+'/api/textprome/ston?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')287 .then(resolve)288 .catch(reject)289 })290}291module.exports.lion = function lion(text1, text2) {292 return new Promise((resolve, reject) => {293 bent('buffer')(baseURI+'/api/textprome/lion?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')294 .then(resolve)295 .catch(reject)296 })297}298module.exports.steel = function steel(text1, text2) {299 return new Promise((resolve, reject) => {300 bent('buffer')(baseURI+'/api/textprome/steel?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')301 .then(resolve)302 .catch(reject)303 })304}305module.exports.grafiti = function grafiti(text1, text2) {306 return new Promise((resolve, reject) => {307 bent('buffer')(baseURI+'/api/textprome/grafiti?text1=' + encodeURIComponent(text1) + '&text2=' + encodeURIComponent(text2) + '&apikey=404Api')308 .then(resolve)309 .catch(reject)310 })...

Full Screen

Full Screen

1143.ts

Source:1143.ts Github

copy

Full Screen

1/** 1143. Longest Common Subsequence */2// function longestCommonSubsequence(text1: string, text2: string): number {3// [text1, text2] = text1.length < text2.length ? [text1, text2] : [text2, text1];4// let subseq = Array.from(new Array(2).fill(0), () => new Array(text2.length + 1).fill(0));5 6// for(let i = 1; i < text1.length + 1; ++i){7// for(let j = 1; j < text2.length + 1; ++j){8// if(text1[i-1] === text2[j-1]){9// subseq[i%2][j] = subseq[(i-1)%2][j-1] + 1;10// } else {11// subseq[i%2][j] = Math.max(subseq[(i-1)%2][j], subseq[i%2][j-1]);12// }13// }14// }15// // console.log(subseq);16// return subseq[(text1.length)%2][text2.length];17// };18// practice19function longestCommonSubsequence(text1: string, text2: string): number {20 [text1, text2] = text1.length < text2.length ? [text1, text2] : [text2, text1];21 let m = Array.from(new Array(2).fill(0), () => new Array(text2.length+1).fill(0));22 for(let i = 1; i < text1.length + 1; ++i){23 for(let j = 1; j < text2.length + 1; ++j){24 if(text1[i - 1] === text2[j - 1]){25 m[i%2][j] = m[(i-1)%2][j-1] + 1;26 } else {27 m[i%2][j] = Math.max(m[(i-1)%2][j], m[i%2][j-1]);28 }29 }30 }31 return m[(text1.length)%2][text2.length];32}33/** test case */34console.log(longestCommonSubsequence('ace', 'abcde')); // 335console.log(longestCommonSubsequence('abcde', 'ace')); // 336console.log(longestCommonSubsequence('abc', 'abc')); // 337console.log(longestCommonSubsequence('abc', 'def')); // 038console.log(longestCommonSubsequence("ezupkr", "ubmrapg")); // 2 //up39console.log(longestCommonSubsequence("ezupkra", "ubmrapkr")); // 4 //upkr40// ezupkra41// u 001142// b 00143// m 00144// r 00145// a 00146// p 001247// k 00123...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptext1 = require('wptext1');2wptext1.text1();3var wptext2 = require('wptext2');4wptext2.text1();5at Function.Module._resolveFilename (module.js:338:15)6at Function.Module._load (module.js:280:25)7at Module.require (module.js:364:17)8at require (module.js:380:17)9at Object.<anonymous> (test.js:2:13)10at Module._compile (module.js:456:26)11at Object.Module._extensions..js (module.js:474:10)12at Module.load (module.js:356:32)13at Function.Module._load (module.js:312:12)14at Function.Module.runMain (module.js:497:10)15var wptext1 = require('wptext1');16var wptext2 = require('wptext2');17wptext1.text1();18wptext2.text1();19at Function.Module._resolveFilename (module.js:338:15)20at Function.Module._load (module.js:280:25)21at Module.require (module.js:364:17)22at require (module.js:380:17)23at Object.<anonymous> (test.js:2:13)24at Module._compile (module.js:456:26)25at Object.Module._extensions..js (module.js:474:10)26at Module.load (module.js:356:32)27at Function.Module._load (module.js:312:12)28at Function.Module.runMain (module.js:497:10)

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptext = require('./wptext');2wptext.text1();3wptext.text2();4var text1 = function() {5 console.log('text1');6}7var text2 = function() {8 console.log('text2');9}10module.exports = {11}12var wptext = require('./wptext');13wptext('Hello World');14var text1 = function(text) {15 console.log(text);16}17module.exports = text1;18var wptext = require('./wptext');19wptext.text1();20var text1 = function() {21 console.log('text1');22}23module.exports = {24}25var wptext = require('./wptext');26wptext('Hello World');27var text1 = function(text) {28 console.log(text);29}30module.exports = text1;31var wptext = require('./wptext');32wptext.text1();33wptext.text2();34var text1 = function() {35 console.log('text1');36}37var text2 = function() {38 console.log('text2');39}40module.exports = {41}

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptext = require('./wptext');2wptext.text1();3exports.text1 = function() {4 console.log('This is text1');5};6const express = require('express');7const app = express();8app.get('/', (req, res) => {9 res.send('Hello World');10});11app.listen(3000, () => {12 console.log('Server is running on port 3000');13});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptext = require('wptext');2var text1 = wptext.text1;3console.log(text1());4exports.text1 = function() {5 return 'text1';6};7var wptext = require('wptext');8var text2 = wptext.text2;9console.log(text2());10exports.text2 = function() {11 return 'text2';12};13var wptext = require('wptext');14var text1 = wptext.text1;15console.log(text1());16var wptext = require('wptext');17var text2 = wptext.text2;18console.log(text2());19module.exports = {20 text1: function() {

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptext = require('wptext');2var text = new wptext();3console.log(text.text1());4module.exports = function() {5 this.text1 = function() {6 return "hello world";7 }8}

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptext = require('wptext');2var text1 = new wptext();3console.log(text1.text1());4var wptext = require('wptext');5var text1 = new wptext();6console.log(text1.text1());7function wptext() {8 this.text1 = function() {9 return "Hello World";10 }11}12module.exports = wptext;

Full Screen

Using AI Code Generation

copy

Full Screen

1var txt = require('./wptext');2console.log(txt.text1());3exports.text1 = function() {4 return 'Hello World!';5};6var txt = require('./wptext');7console.log(txt.text1());8console.log(txt.text2());9exports.text1 = function() {10 return 'Hello World!';11};12exports.text2 = function() {13 return 'Hello World Again!';14};15var txt = require('./wptext');16console.log(txt.text1());17console.log(txt.text2());18var text = {19 text1: function() {20 return 'Hello World!';21 },22 text2: function() {23 return 'Hello World Again!';24 }25};26module.exports = text;27var txt = require('./wptext');28var t = new txt();29console.log(t.text1());30console.log(t.text2());31var text = function() {32 this.text1 = function() {33 return 'Hello World!';34 };35 this.text2 = function() {36 return 'Hello World Again!';37 };38};39module.exports = text;40var txt = require('./

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptext = require('./wptext.js');2console.log(wptext.text1());3var wptext = {4 text1: function () {5 return "Hello World";6 }7};8module.exports = wptext;9module.exports = function () {10 return "Hello World";11};12var wptext = require('./wptext.js');13console.log(wptext());14module.exports = class {15 constructor() {16 this.text1 = "Hello World";17 }18};19var wptext = require('./wptext.js');20var obj = new wptext();21console.log(obj.text1);22module.exports = function (name) {23 return "Hello " + name;24};25var wptext = require('./wptext.js');26console.log(wptext("World"));27module.exports = class {28 constructor(name) {29 this.text1 = "Hello " + name;30 }31};32var wptext = require('./wptext.js');33var obj = new wptext("World");34console.log(obj.text1);35module.exports = function (name, callback) {36 var text = "Hello " + name;37 callback(text);38};39var wptext = require('./wptext.js');40wptext("World", function (text) {41 console.log(text);42})

Full Screen

Using AI Code Generation

copy

Full Screen

1var text1 = require('wptext.js').text1;2text1();3exports.text1 = function() {4 console.log('This is text1');5}6(function (exports, require, module, __filename, __dirname) {7});8exports.text1 = function() {9 console.log('This is text1');10}11exports.text2 = function() {12 console.log('This is text2');13}14exports.text3 = function() {15 console.log('This is text3');16}

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful