Kamis, 11 Februari 2016

Cara Membuat Widget Email Subcribe dengan Ripple Animasi di Blogger

Cara Membuat Widget Email Subcribe dengan Ripple Animasi di Blogger

Tujuan kita dalam membuat sebuah blog tentu tidak lepas dengan pengunjung (visitor), baik visitor bertarget maupun tidak, visitor yang datang melalui Search Engine maupun hasil Blogwalking. Nah, biasanya ada suatu visitor yang menganggap blog anda selalu berguna untuknya, selalu dianggap menarik dalam segi isi dan cara penulisannya. Maka dari itu dibutuhkan widget seperti Artikel Berlangganan agar memudahkan visitor mengakses artikel anda apabila suatu saat anda meng-update.

Kali ini saya akan posting tentang Cara Membuat Widget Email Subcribe dengan Ripple Animasi di Blogger, memang sudah banyak artikel tentang cara mendisain widget Email Subscribe namun desain kali ini cukup sederhana menarik dan responsive. 

Lihat DEMO


Catatan :Disini Anda harus memiliki ID Feedburnersebelum memasang Widget Subscribe dengan Ripple Animasi di atas. Untuk mendaftarkan Blog Anda di Feedburner terlebih dahulu untuk mendapatkan ID Feedburner yang nantinya akan diletakkan pada script yang akan saya terangkan lebih lengkap seperti dibawah ini.



Ikuti langkah-langkahnya berikut ini :

1. Masuk ke akun Blogger Anda
2. Masuk ke Dashboard >> Templete >>Edit HTML
3. Cari kode berikut ini ]]</b:skin>jika sudak ketemu, letakkan kode dibawah ini sebelum kode ]]</b:skin>


CCS - Bloggingpasuruan.blogspot.co.id

/* CSS Subscribe email by bloggingpasuruan.blogspot.co.id */
@import url(https://fonts.googleapis.com/css?family=Oswald);
.subscribe-box { background: #00ACF5;color: #FFF;width:86%;letter-spacing: 1px;text-align: center;padding: 20px;font-family:&#39;Open Sans&#39;box-shadow: 1px 1px 2px;}
.text-subscribe {text-transform: uppercase;}
.bigger-text {font-size: 50px;font-weight: 900;}
.text2-subscribe {text-align: justify;font-family:&#39;Open Sans&#39;margin-top: 3px;line-height: 1.5em;margin-bottom: 20px;font-size: 12px;}
input.newsletter-address {width: 80%;padding: 24px;background: #008BC5;color: #FFFFFF;font-family: Oswald;border: 0;}
.newsletter-address::-webkit-input-placeholder {color: #00ACF5;}
input.newsletter-submit {color: #FFF;transition: ease .3s all;font-family:&#39;Oswald&#39;cursor: pointer;background: #005D84;border: 0;width: 100%;padding: 10px;font-size: 15px;margin-top: 10px;text-align: center;}
.attention-subscribe { font-size: 11px;margin-top: 7px;font-family:&#39;Open Sans&#39;
}
input.newsletter-submit:hover {box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);}
input.ripple-effect.newsletter-submit:focus {box-shadow: 0px 5px 10px 2px rgba(0, 78, 111, 0.43);}

4. Setelah itu silahkan cari kode </head>jika sudah ketemu silahkan letakkan kode dibawah ini sebelum kode </head>

jQuery - Bloggingpasuruan.blogspot.co.id

<script>
//<![CDATA[
jQuery(document).ready(function(e){e("body").on("click",".ripple-effect",function(t){t.preventDefault();var i=e(this),a=i.attr("data-ripple-limit"),n=i.attr("data-ripple-color");if("undefined"==typeof n)var n="rgba( 0, 0, 0, 0.3 )";var o=i.attr("data-ripple-wrap-radius");if("undefined"==typeof o)var o=0;if("undefined"==typeof a)var r=i;else var r=i.closest(a);var p=r.offset(),d=t.pageX,s=t.pageY,f=r.outerWidth(),l=r.outerHeight(),u=e('<span class="ripple-effect-wrap"></span>');u.css({width:f,height:l,position:"absolute",top:p.top,left:p.left,"z-index":1e4,overflow:"hidden","background-clip":"padding-box","-webkit-border-radius":o,"border-radius":o});var c=i.attr("data-ripple-wrap-class");"undefined"!=typeof c&&u.addClass(c),u.appendTo("body");var b=d-p.left,m=s-p.top,g=1e3,h=e('<span class="ripple"></span>');h.css({width:g,height:g,background:n,position:"absolute",top:m-g/2,left:b-g/2,content:"","background-clip":"padding-box","-webkit-border-radius":"50%","border-radius":"50%","-webkit-animation-name":"ripple-animation","animation-name":"ripple-animation","-webkit-animation-duration":"5s","animation-duration":"5s","-webkit-animation-fill-mode":"both","animation-fill-mode":"both"}),e(".ripple-effect-wrap:last").append(h),setTimeout(function(){u.fadeOut(function(){e(this).remove()})},500);var v=i.attr("href"),w=i.attr("target");w||(w="_self"),"undefined"!=typeof v&&"#"!=v.substring(0,1)&&setTimeout(function(){window.open(v,w)},200),(i.is("input")||i.is("button"))&&setTimeout(function(){i.removeClass("ripple-effect"),i.trigger("click"),i.addClass("ripple-effect")},200)})});
//]]>
</script>


5. Setelah itu tekan Save ( simpan )

6. Kemudian silahkan masuk ke Dashboad >> Tata Letak >>Add Gadget (tambah gadget).Pada kotak yang di sediakan, silahkan masukan kode HTML dibawah ini ke dalam kotak tersebut.

HTML - Bloggingpasuruan.blogspot.co.id

<div class="subscribe-box"><div class="text-subscribe">Dapatkan Update Artikel Terbaru<div class="bigger-text">GRATIS !</div><div class="text2-subscribe"> Hanya dengan memasukkan  id email Anda di bawah ini dan kemudian tekan tombol "Berlangganan" maka secara otomatis Anda akan menerima update artikel  terbaru dari blog ini langsung di inbox email Anda!</div></div>
<div>
<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open
('http://feedburner.google.com/fb/a/mailverify?uri=ID-FEEDBURNER-ANDA', 'popupwindow', 'scrollbars=yes,width=550,height=520');return
true" id="bg-embedded-subscribe-form" name="bg-embedded-subscribe-form" class="validate" target="_blank" novalidate>
    <div>
 <input type="email" value="" name="EMAIL" class="newsletter-address" placeholder="Email Address" required />
    <div style="position: absolute; left: -5000px;"><input type="text" tabindex="-1" value="" /></div>
    <div class="clear"><input type="submit" value="Berlangganan" name="subscribe" class="ripple-effect newsletter-submit" /></div>
    </div>
</form>
</div>
<div class="attention-subscribe"> Kami tidak akan pernah spam Anda.</div></div>


7. Simpan, Selesai dan lihat hasilnya….

Jika Anda menemui masalah terkait desain dari Widget Email Subcribe dengan Ripple Animasi, silahklan tinggalkan pesan pada kotak komentar dibawah ini. Sebelumnya Admin mengucapkan terima kasih atas kunjungannya..

Anda suka artikel di atas ? Jangan lupa share ya…….

Minggu, 31 Januari 2016

Honored to be Microsoft #MCC award - 2016

I was surprised on last Friday evening, when I saw my MSDN profile which has automatically added the Microsoft Community Contributor award Affiliations from Microsoft. Microsoft awarded me the MCC (Microsoft Community Contributor) award for the first time in my carrier. I am very pleased and share this with you all that my community contributions are recognized by Microsoft.



Thanks a lot to Microsoft, Microsoft MCC Award team for this special recognition. And also thank you all my community friends for your support and feedback throughout the year.
What is MCC Award?

People may want to know, what is this MCC Award? So, this point is for those who don’t know about the Microsoft MCC Award Programme. Here is a short snippet from the Microsoft profile affiliations:

The Microsoft Community Contributor (MCC) Award seeks to recognize notable contributors to Microsoft online community forums: TechNet, MSDN® and Answers in areas such as: moderation, content, translation/localization and feedback.

These valuable resources are enhanced by the efforts of Microsoft Community Contributors, who help other participants in a range of ways, such as providing helpful answers, translating online resources into local languages and serving as volunteer moderators.

Each day around the world, Microsoft Community Contributor recipients contribute to Microsoft online technical communities in a range of ways, including providing helpful answers, translating online resources into local languages and serving as moderators.

The MCC badge ends after ninety days (three months) from the date found within the welcome email.

Important Note:
It looks like MCC award is no longer given to TechNet and MSDN users to participate actively in the forums but rather automatically assigned to all MVPs

Please read below links for more info:
1. Information on Profile Affiliations
2. How to Become an MVP or MCC

Follow me always at  
Have a nice day by  :)

Sabtu, 23 Januari 2016

WinRT Windows Phone 8.1: Copy and past TextBox text within the app, beginners tutorials (C#-XAML)

Introduction:

TextBox control that can be used to display or edit unformatted text. And some times we may need to manipulate the TextBox text to create cut and paste within the app. So we can learn how to create custom ClipBoard functionality from this article

Requirements:

  • This sample is targeted for windows phone WinRT 8.1 OS,So make sure you’ve downloaded and installed the Windows Phone 8.1 SDK or later. For more information, see Get the SDK.
  • I assumes that you’re going to test your app on the Windows Phone emulator. If you want to test your app on a phone, you have to take some additional steps. For more info, see Register your Windows Phone device for development.
  • This post assumes you’re using Microsoft Visual Studio Express 2013 for Windows or Later.

Description:

Step 1:
1. Open Microsoft Visual Studio Express 2013 for Windows (or) later.
2. Create new windows phone WinRT project using the "Blank App" template available under Visual C# -> Store Apps -> Windows Phone Apps. (for example project name : WinrtCut_Paste)
Step 2: And lets add below code in MainPage.xaml, which is having mainly three buttons for performing copy,cut & paste operation on entered text in TextBox.
  1. <Grid>  
  2.         <StackPanel>              
  3.             <!--Sample Tile-->  
  4.             <TextBlock Text="WinRT Copy & Past Text:" FontSize="25" />  
  5.               
  6.             <!--Textbox for entering text-->  
  7.             <TextBox Name="TbxEnteredText" Header="Entered Text:" MinHeight="100" TextWrapping="Wrap" AcceptsReturn="True"/>  
  8.               
  9.             <!--Three buttons for copy,cut & paste operations-->  
  10.             <Button Content="Copy" HorizontalAlignment="Stretch" Click="CopyClick"/>  
  11.             <Button Content="Cut" HorizontalAlignment="Stretch" Click="CutClick" />  
  12.             <Button Content="Paste" HorizontalAlignment="Stretch" Click="PasteClick"/>  
  13.         </StackPanel>  
  14.     </Grid>  
Press F5 to run the our project and screen could be like below:


Step 3: 
1. How to copy text from TextBox?
In generally to select text, we need to double tap on textbox text, In TextBox,we have property like SelectedText can used to get content of the current selection in the text box. So I taken one global string variable name is ClipboardText for storing selected text of TextBox
  1.        private string ClipboardText;  
  2.         private async void CopyClick(object sender, RoutedEventArgs e)  
  3.         {  
  4.             if (TbxEnteredText .SelectedText != "" && ClipboardText != "")  
  5.             {  
  6.                 //Copy selected text to CustomClipboard  
  7.                 this.ClipboardText = TbxEnteredText .SelectedText;  
  8.             }  
  9.             else  
  10.             {  
  11.                 MessageDialog messageDialog = new MessageDialog("Please select text for copy operation");  
  12.                 await messageDialog.ShowAsync();  
  13.             }  
  14.         }  

2. How to cut text from TextBox?
When user can select the text by double tap on it and press the cut operation button, we need to remove the selected text from the textbox.
It means we need to replace the TextBox original text with the text before and after the selection like below:
  1. private async void CutClick(object sender, RoutedEventArgs e)  
  2.         {  
  3.             if (TbxEnteredText .SelectedText != "" && ClipboardText != "")  
  4.             {  
  5.                 //Copy selected text to CustomClipboard  
  6.                 this.ClipboardText = TbxEnteredText .SelectedText;  
  7.   
  8.                 var removeAt = TbxEnteredText .SelectionStart;  
  9.   
  10.                 var AfterSelectionLocText = TbxEnteredText .Text.Substring(removeAt + TbxEnteredText .SelectionLength);  
  11.   
  12.                 var BeforeSelectionLocText = TbxEnteredText .Text.Substring(0, removeAt);  
  13.   
  14.                 TbxEnteredText .Text = BeforeSelectionLocText + AfterSelectionLocText;  
  15.   
  16.                 TbxEnteredText .SelectionStart = BeforeSelectionLocText.Length;  
  17.             }  
  18.             else  
  19.             {  
  20.                 MessageDialog messageDialog = new MessageDialog("Please select text for cut operation");   
  21.                 await messageDialog.ShowAsync();  
  22.             }  
  23.         }  

In above code, I am using SelectionStart property which is useful to get character index for the beginning of the current selection.

3. How to paste text in TextBox?
Upto now, when user copy the text or cut the text from textbox, it can stored in our global string is 'ClipboardText '. So to perform paste operation, first we need to get position where user place the cursor on textbox and after that we need to place the our ClipboardText on that selection position.
  1. private async void PasteClick(object sender, RoutedEventArgs e)  
  2.        {  
  3.            if (ClipboardText != "" && ClipboardText != null)  
  4.            {  
  5.                var SelectionLocation = TbxEnteredText .SelectionStart;  
  6.                var BeforeSelectionLocText = TbxEnteredText .Text.Substring(0, SelectionLocation);  
  7.                var AfterSelectionLocText = TbxEnteredText .Text.Substring(SelectionLocation + TbxEnteredText .SelectionLength);  
  8.   
  9.                TbxEnteredText .Text = BeforeSelectionLocText +  
  10.                          this.ClipboardText +  
  11.                          AfterSelectionLocText;  
  12.   
  13.                TbxEnteredText .SelectionStart = SelectionLocation + this.ClipboardText.Length;  
  14.                TbxEnteredText .SelectionLength = 0;  
  15.            }  
  16.            else  
  17.            {  
  18.                MessageDialog messageDialog = new MessageDialog("No selected text for paste operation");  
  19.                await messageDialog.ShowAsync();  
  20.            }  
  21.        }  
4. Demo:
4.1 Type some text in TextBox like below:
4.2 double tap on text which you want to copy, and press copy Button
4.3 Place cursor where you want to paste the your copied text and click on the paste button.




Important Notes:
1. In WinRT, there are more properties added for TextBox control compare to Silverlight platfrom (Ex: Header, PlaceholderText..etc)
2. Just reminder is, this sample can also run for windowsphone silverligh platform. Because this  sample used very basic coding to perform copy,cut & paste operation within the app.
3. This sample will be work on windows phone 8.1 OS devices or later. and this sample was tested in Emulator,Nokia Lumia 530, Nokia Lumia 735& Microsoft 535.
Custom ClipBoard
FeedBack Note:
Please share your thoughts,what you think about this post,Is this post really helpful for you?I always welcome if you drop comments on this post and it would be impressive.

Follow me always at  
Have a nice day by  :)