CINXE.COM

Register - KG Media ID

<!DOCTYPE html> <html lang="en"> <head> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PT7PC4');</script> <!-- End Google Tag Manager --> <script type="text/javascript"> (function(f,b){if(!b.__SV){var e,g,i,h;window.mixpanel=b;b._i=[];b.init=function(e,f,c){function g(a,d){var b=d.split(".");2==b.length&&(a=a[b[0]],d=b[1]);a[d]=function(){a.push([d].concat(Array.prototype.slice.call(arguments,0)))}}var a=b;"undefined"!==typeof c?a=b[c]=[]:c="mixpanel";a.people=a.people||[];a.toString=function(a){var d="mixpanel";"mixpanel"!==c&&(d+="."+c);a||(d+=" (stub)");return d};a.people.toString=function(){return a.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "); for(h=0;h<i.length;h++)g(a,i[h]);var j="set set_once union unset remove delete".split(" ");a.get_group=function(){function b(c){d[c]=function(){call2_args=arguments;call2=[c].concat(Array.prototype.slice.call(call2_args,0));a.push([e,call2])}}for(var d={},e=["get_group"].concat(Array.prototype.slice.call(arguments,0)),c=0;c<j.length;c++)b(j[c]);return d};b._i.push([e,f,c])};b.__SV=1.2;e=f.createElement("script");e.type="text/javascript";e.async=!0;e.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL? MIXPANEL_CUSTOM_LIB_URL:"file:"===f.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";g=f.getElementsByTagName("script")[0];g.parentNode.insertBefore(e,g)}})(document,window.mixpanel||[]); // Enabling the debug mode flag is useful during implementation, // but it's recommended you remove it for production mixpanel.init('a23050fa03288a8181f2681419e7815b', {debug: true}); </script> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width"> <meta name="description" content="User login page" /> <meta name="csrf-token" content="dOBkJbehYanpLJxJnjSAoocVC9DjOfJCwC1fIDcO" /> <!-- url bar color theme --> <meta name="theme-color" content="#fff"> <meta name="msapplication-navbutton-color" content="#fff"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="theme-color" content="#fff"> <meta name="msapplication-navbutton-color" content="#fff"> <meta name="apple-mobile-web-app-status-bar-style" content="#fff"> <!-- icon --> <link rel="shortcut icon" href="https://asset.kompas.com/data/2020/widget/ssonew/asset/images/favicon.ico"> <title>Register - KG Media ID</title> <!-- font --> <link rel="preload" href="https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <link rel="preload" href="https://fonts.gstatic.com/s/roboto/v19/KFOlCnqEu92Fr1MmWUlfBBc4AMP6lQ.woff2" as="font" type="font/woff2" crossorigin="anonymous"> <style> @font-face { font-family: 'Roboto'; font-display: swap; font-style: normal; font-weight: 400; src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @font-face { font-family: 'Roboto'; font-display: swap; font-style: normal; font-weight: 700; src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v19/KFOlCnqEu92Fr1MmWUlfBBc4AMP6lQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } .hidden{ display: none; } </style> <link href="https://asset.kompas.com/data/2020/widget/ssonew/asset/css/style-m.min.css?v=3" rel="stylesheet" type="text/css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head> <body> <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-PT7PC4" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager --> <!-- layout --> <form method="POST" action="https://account.kompas.com/register" accept-charset="UTF-8" onsubmit="return validateForm(this);"><input name="_token" type="hidden" value="dOBkJbehYanpLJxJnjSAoocVC9DjOfJCwC1fIDcO"> <div class="container" id="container1"> <div class="block-top"> <h1 class="title">Daftar KG Media ID</h1> </div> <div class="block-middle"> <div class="form-main"> <div class="form-row form-input"> <label for="name">Nama Lengkap</label> <div class="form-fullname hidden"></div> <input id="fullname" class="" placeholder="nama lengkap" name="fullname" type="text"> </div> <div class="form-row form-input"> <label for="gender">Gender</label> <div class="form-gender hidden"></div> <div class="form-select" data-placeholder="pilih gender"> <select id="gender" class="" name="gender"><option selected="selected" value="">pilih gender</option><option value="l">Laki-laki</option><option value="p">Perempuan</option></select> </div> </div> <div class="form-row form-input" id="js-datepicker-container"> <label for="birth">Tanggal Lahir</label> <div class="form-birthdate hidden"></div> <input class="js-datepicker" id="birthdate" placeholder="pilih tanggal lahir" readonly="true" name="birthdate" type="text"> </div> <div class="form-row form-input"> <label for="name">Nomor Handphone</label> <input id="phone_2" class="" placeholder="contoh 0812123456" name="phone_2" type="tel"> </div> <input name="source" type="hidden" value="a29tcGFz"> <input name="continue" type="hidden" value="aHR0cHM6Ly9hY3Rpdml0eS5rb21wYXMuY29tL21pbmF0"> <input name="utm_source" type="hidden" value=""> <input name="utm_medium" type="hidden" value=""> <input name="utm_campaign" type="hidden" value=""> <input name="sso_lang" type="hidden" value="id"> <div class="form-row"> <input type="button" name="" id="next1" value="Lanjutkan" class="button -disabled" disabled="disabled"> </div> <hr> <div class="form-hint"> <p>Dengan menekan tombol “Lanjutkan”, kamu menyetujui bahwa data dan informasi KG Media ID milikmu akan digunakan untuk memberikan layanan sesuai <a href="https://www.kgmedia.id/legal-privacy-id" target="_blank">Kebijakan Data Pribadi KG Media</a> .</p> </div> </div> </div> <div class="block-footer"> <div class="text-center"> <p><a href="https://account.kompas.com">Kembali ke KG Media ID</a></p> </div> </div> </div> <div class="container hidden" id="container2"> <div class="block-top"> <h1 class="title">Alamat Email</h1> </div> <div class="block-middle"> <div class="form-main"> <div class="form-row form-input"> <label for="email">Email</label> <input id="email" class="" placeholder="johndoe@mymail.com" name="email" type="email"> </div> <div class="form-hint" style="text-align: left;"> <p>Alamat email yang dimasukkan ini akan menjadi KG Media ID baru milikmu.</p> </div> <hr> <div class="form-row form-input"> <div class="form-checkbox"> <input type="checkbox" name="agree" id="agree" value="1" checked> <label for="agree">Saya bersedia menerima email terkait akun KG Media ID dan layanannya</label> </div> </div> <div class="form-email hidden"></div> <div class="form-row"> <input type="button" name="" id="next2" value="Lanjutkan" class="button -disabled" disabled="disabled"> </div> <hr> <div class="form-hint"> <p>Dengan menekan tombol “Lanjutkan”, kamu menyetujui bahwa data dan informasi KG Media ID milikmu akan digunakan untuk memberikan layanan sesuai <a href="https://www.kgmedia.id/legal-privacy-id" target="_blank">Kebijakan Data Pribadi KG Media</a> .</p> </div> </div> </div> </div> <div class="container hidden" id="container3"> <div class="block-top"> <h1 class="title">Password</h1> </div> <div class="block-middle"> <div class="form-main"> <div class="form-row form-input"> <label for="password">Password</label> <div class="form-password hidden"></div> <input id="password" class="" placeholder="Password" name="password" type="password" value=""> </div> <div class="form-row form-input"> <label for="repassword">Ulangi</label> <div class="form-password_confirmation hidden"></div> <input id="password_confirmation" class="" placeholder="ulangi password" name="password_confirmation" type="password" value=""> </div> <div class="form-hint"> <p>Password harus terdiri dari kombinasi karakter alfabet (a-z, A-Z) dan angka (0-9), karakter khusus tidak diperbolehkan.</p> </div> <div class="form-row form-input" style="display: flex; justify-content: center;"> <div class="form-recaptcha hidden"></div> <div class="g-recaptcha" data-sitekey="6LcuPCATAAAAAIavMApOXPLmwa2uHjDPW1QkSJJP"></div> </div> <hr> <div class="form-row"> <input type="submit" name="" id="next3" value="Lanjutkan" class="button -disabled" disabled="disabled"> </div> <hr> <div class="form-hint"> <p>Dengan menekan tombol “Lanjutkan”, kamu menyetujui bahwa data dan informasi KG Media ID milikmu akan digunakan untuk memberikan layanan sesuai <a href="https://www.kgmedia.id/legal-privacy-id" target="_blank">Kebijakan Data Pribadi KG Media</a> .</p> </div> </div> </div> </div> </form> <script type="text/javascript" src="https://asset.kompas.com/data/2020/widget/ssonew/asset/js/main.min.js?v=1"></script> <script type="text/javascript"> window.jQuery || document.write("<script src='https://asset.kompas.com/data/2020/widget/ssonew/asset/js/jquery.js'>"+"<"+"/script>"); </script> <script src='https://www.google.com/recaptcha/api.js'></script> <script> // script untuk keperluan dummy saja let ss = document.querySelectorAll("input:not([type=submit])"); let fr = document.querySelector("input[type=submit]"); if(!!ss) { for(let i=0;i<ss.length;i++) { ss[i].addEventListener('input', cekInput); ss[i].addEventListener('propertychange', cekInput); } } function cekInput(e) { var phone_2 = $("#phone_2").val(); if($("#fullname").val()!="" && $("#gender").val()!="" && $("#birthdate").val()!="" && phone_2.length>=8 && phone_2.length<=15){ $("#next1").removeAttr("disabled"); $("#next1").addClass("-primary"); }else{ $("#next1").attr("disabled") $("#next1").removeClass( "-primary" ) } var phone_2 = $("#phone_2").val() phone_2 = phone_2.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1'); $("#phone_2").val(phone_2) if($("#short_url").val()!="" && $("#email").val()!=""){ $("#next2").removeAttr("disabled"); $("#next2").addClass("-primary"); }else{ $("#next2").attr("disabled") $("#next2").removeClass( "-primary" ) } var password = $("#password").val() password = password.replace(/[^A-Za-z0-9.]/g, '').replace(/(\..*)\./g, '$1'); $("#password").val(password) var password_confirmation = $("#password_confirmation").val() password_confirmation = password_confirmation.replace(/[^A-Za-z0-9.]/g, '').replace(/(\..*)\./g, '$1'); $("#password_confirmation").val(password_confirmation) if($("#password").val()!="" && $("#password_confirmation").val()!=""){ $("#next3").removeAttr("disabled"); $("#next3").addClass("-primary"); }else{ $("#next3").attr("disabled") $("#next3").removeClass( "-primary" ) } $("#contoh_url_profil").html($("#short_url").val()); } setTimeout(() => { cekInput(); }, "500"); function alphanumeric(inputtxt){ var val = inputtxt; var RegEx = /^[a-zA-Z]+$/; var alphabetonly = RegEx.test(val); var RegEx = /^[0-9]+$/; var numberonly = RegEx.test(val); var specialcharacters = val.match(/["'()*/;<>\`{}]+$/); if((numberonly==false || alphabetonly==false) && specialcharacters==null){ $(".form-password").addClass("hidden"); $(".form-password").removeClass("form-error"); $(".form-password").html(''); return true; }else{ $(".form-password").removeClass("hidden"); $(".form-password").addClass("form-error"); $(".form-password").html('Password tidak valid'); return false; } } function validateForm(){ if($("#password").val()==" "){ $(".form-password").removeClass("hidden"); $(".form-password").addClass("form-error"); $(".form-password").html('Password harus diisi'); return false; }else if($("#password").val().length<8){ $(".form-password").removeClass("hidden"); $(".form-password").addClass("form-error"); $(".form-password").html('Password minimal 8 karakter'); return false; }else if($("#password").val().length>30){ $(".form-password").removeClass("hidden"); $(".form-password").addClass("form-error"); $(".form-password").html('Password maksimal 30 karakter'); return false; }else{ $(".form-password").addClass("hidden"); $(".form-password").removeClass("form-error"); $(".form-password").html(''); } if($("#password_confirmation").val()==" "){ $(".form-password_confirmation").removeClass("hidden"); $(".form-password_confirmation").addClass("form-error"); $(".form-password_confirmation").html('Password harus diisi'); return false; }else if($("#password_confirmation").val().length<8){ $(".form-password_confirmation").removeClass("hidden"); $(".form-password_confirmation").addClass("form-error"); $(".form-password_confirmation").html('Password minimal 8 karakter'); return false; }else if($("#password_confirmation").val().length>30){ $(".form-password_confirmation").removeClass("hidden"); $(".form-password_confirmation").addClass("form-error"); $(".form-password_confirmation").html('Password maksimal 30 karakter'); return false; }else if($("#password_confirmation").val()!=$("#password").val()){ $(".form-password_confirmation").removeClass("hidden"); $(".form-password_confirmation").addClass("form-error"); $(".form-password_confirmation").html('Password dan konfirmasi password harus sama'); return false; }else{ $(".form-password_confirmation").addClass("hidden"); $(".form-password_confirmation").removeClass("form-error"); $(".form-password_confirmation").html(''); } alphanumeric($("#password").val()); var response = grecaptcha.getResponse(); if(response.length == 0){ $(".form-recaptcha").removeClass("hidden"); $(".form-recaptcha").addClass("form-error"); $(".form-recaptcha").html('Captcha harus diisi.'); return false; }else{ $(".form-recaptcha").addClass("hidden"); $(".form-recaptcha").removeClass("form-error"); $(".form-recaptcha").html(''); } return true; }; function makeid(length) { var result = ''; var characters = '0123456789'; var charactersLength = characters.length; for ( var i = 0; i < length; i++ ) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); } return result; } $(document).ready(function(){ $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $('#gender').change(function(e) { var phone_2 = $("#phone_2").val(); if($("#fullname").val()!="" && $("#gender").val()!="" && $("#birthdate").val()!="" && phone_2.length>=8 && phone_2.length>=15 ){ $("#next1").removeAttr("disabled"); $("#next1").addClass("-primary"); }else{ $("#next1").attr("disabled") $("#next1").removeClass( "-primary" ) } }); $('#birthdate').change(function(e) { var phone_2 = $("#phone_2").val(); if($("#fullname").val()!="" && $("#gender").val()!="" && $("#birthdate").val()!="" && phone_2.length>=8 && phone_2.length>=15 ){ $("#next1").removeAttr("disabled"); $("#next1").addClass("-primary"); }else{ $("#next1").attr("disabled") $("#next1").removeClass( "-primary" ) } }); $("#next1").click(function(){ if($("#fullname").val()==" "){ $(".form-fullname").removeClass("hidden"); $(".form-fullname").addClass("form-error"); $(".form-fullname").html('Nama lengkap harus diisi'); return false; }else if($("#fullname").val().length<3){ $(".form-fullname").removeClass("hidden"); $(".form-fullname").addClass("form-error"); $(".form-fullname").html('Nama lengkap minimal 3 karakter'); return false; }else if($("#fullname").val().length>30){ $(".form-fullname").removeClass("hidden"); $(".form-fullname").addClass("form-error"); $(".form-fullname").html('Nama lengkap maksimal 30 karakter'); return false; }else{ $(".form-fullname").addClass("hidden"); $(".form-fullname").removeClass("form-error"); $(".form-fullname").html(''); } if($("#gender").val()==""){ $(".form-gender").removeClass("hidden"); $(".form-gender").addClass("form-error"); $(".form-gender").html('Nama lengkap harus diisi'); return false; }else{ $(".form-gender").addClass("hidden"); $(".form-gender").removeClass("form-error"); $(".form-gender").html(''); } if($("#birthdate").val()==" "){ $(".form-birthdate").removeClass("hidden"); $(".form-birthdate").addClass("form-error"); $(".form-birthdate").html('Nama lengkap harus diisi'); return false; }else{ $(".form-birthdate").addClass("hidden"); $(".form-birthdate").removeClass("form-error"); $(".form-birthdate").html(''); } $("#container1").animate({left: '100%'}); document.getElementById('container1').style.display = 'none'; document.getElementById('container2').style.display = 'block'; var fullname = $("#fullname").val(); fullname = fullname.toLowerCase(); var arr_fullname = fullname.split(" "); $("#short_url").val(arr_fullname[0]+''+makeid(5)); $("#contoh_url_profil").html($("#short_url").val()); }); $("#next2").click(function(){ var short_url = $('#short_url').val(); if($('#short_url').val()!="" && $('#short_url').val()!=undefined){ var cek_short_url = short_url.substring(0,1); if(cek_short_url=="/"){ var new_short_url = short_url.substring(1); short_url = new_short_url; } } var sso_url = "https://"+window.location.hostname+"/"; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ // headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}, type: "POST", url: sso_url+"cekuser", data: JSON.stringify({short_url:short_url,email:$('#email').val(), _token: "dOBkJbehYanpLJxJnjSAoocVC9DjOfJCwC1fIDcO"}), contentType: "application/json", dataType: "json", xhrFields: { withCredentials: true }, success: function(result){ if(result.status=='success'){ $("#container2").animate({left: '100%'}); document.getElementById('container2').style.display = 'none'; document.getElementById('container3').style.display = 'block'; }else{ $(".form-"+result.field).removeClass("hidden"); $(".form-"+result.field).addClass("form-error"); if(result.message=='alamat_email_yang_kamu_masukkan_sudah_terdaftar_sebelumnya_silahkan_gunakan_alamat_email_lain'){ $(".form-"+result.field).html('Alamat email yang kamu masukkan sudah terdaftar sebelumnya, silahkan gunakan alamat email lain.'); }else{ $(".form-"+result.field).html('URL Profil yang anda masukan sudah digunakan. Silahkan gunakan URL Profil lain.'); } return false; } },error: function (result, status) { $(".form-email").removeClass("hidden"); $(".form-email").addClass("form-error"); $(".form-email").html('Incorrect email format.'); return false; } }); }); }); </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10