$(document).ready(function() { $(".dropdown").click(function() { $(this).next().toggleClass("hideme"); }); $('body').on('click','.CloseNotification',function(){ $(this).parent().hide(); }); $('body').on('click','.CloseAlert',function(){ $(this).parent().parent().hide(); }); //amin vegen empty element $(document).on('animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd', '.anim-end-empty', function() { $(".alert_area").html(""); }); }); function notify(content,color) { $(".notification_area").prepend('
'+content+'
'); } function alertarea(content) { $(".alert_area").html('
'+content+'
'); $(".alert_area").show(); } function copyText(from) { /* Get the text field */ var copyText = document.getElementById(from); /* Select the text field */ copyText.select(); copyText.setSelectionRange(0, 99999); /* For mobile devices */ /* Copy the text inside the text field */ try { // Now that we've selected the anchor text, execute the copy command var successful = document.execCommand('copy'); var msg = successful ? 'successful' : 'unsuccessful'; console.log('Copy email command was ' + msg); } catch(err) { console.log('Oops, unable to copy'); } /* Alert the copied text */ notify("The URL copied: "+copyText.value,"zold"); } //# sourceURL=main.js