Line 16: | Line 16: | ||
$("p").filter( function() { | $("p").filter( function() { | ||
return $.trim($(this).text()) == ''; | return $.trim($(this).text()) == ''; | ||
− | }).remove( | + | }).remove( |
// Pop up boxes on menu | // Pop up boxes on menu | ||
Line 37: | Line 37: | ||
$temp.remove(); | $temp.remove(); | ||
} | } | ||
− | console.log( | + | console.log(5); |
Revision as of 20:24, 26 April 2017
(function () {
var first = "igem"; var secon = "tudelft"; var third = "gmail"; var forth = "com"; var all = first + "." + secon + "@" + third + "." + forth; var sall = " " + " " + all; var ma = "ma" + "il"; var mm = ma + "to" + ":"; $(function () { // Dynamically add e-mail $("#mail-button").attr("href", mm + all); $("#email").text(sall);
// Removing empty p tages $("p").filter( function() { return $.trim($(this).text()) == ; }).remove(
// Pop up boxes on menu $("#contact span").hide(); $("#contact li").hover(function () { $(this).find("span").animate({width: 'show'}); }, function () { $(this).find("span").animate({width: 'hide'}); }); });
}());
// function for copying text to clipboard (used for phone number) function copyToClipboard(element) {
var $temp = $("<input>"); $("body").append($temp); $temp.val(element).select(); document.execCommand("copy"); $temp.remove();
} console.log(5);