Skip to content

Commit

Permalink
Merge pull request #1628 from NuGet/anurse/1584-byebyeprivacybox
Browse files Browse the repository at this point in the history
Fix #1584 by removing the privacy box because it's not really helping
  • Loading branch information
analogrelay committed Oct 7, 2013
2 parents 05353dd + 6b50554 commit 45002a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 41 deletions.
15 changes: 0 additions & 15 deletions src/NuGetGallery/Content/Site.css
Expand Up @@ -621,21 +621,6 @@ hgroup.page-heading h2 { padding-left: 7px; }
margin-bottom: 0;
}

#overlayWrapper {
background-color: #eff7fa;
border: solid 1px;
color: #52a4ca;
cursor: pointer;
font-size: 2em;
height: 240px;
left: 0;
line-height: 220px;
position: absolute;
text-align: center;
top: 0;
width: 100%;
}

#generateKey .form input[type="submit"] { width: auto; }

/* Sequence Steps */
Expand Down
30 changes: 4 additions & 26 deletions src/NuGetGallery/Views/Users/Account.cshtml
Expand Up @@ -85,8 +85,8 @@
<span id="key">@Model.ApiKey</span>
@* Why width=0, height=0 for the object tag? See the script below *@
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="0"
height="0"
width="110"
height="14"
id="clippy"
aria-hidden="true"
role="presentation">
Expand All @@ -97,8 +97,8 @@
<param name="FlashVars" value="text=@Model.ApiKey">
<param name="bgcolor" value="#fff">
<embed src="@Url.Content("~/Content/clippy.swf")"
width="0"
height="0"
width="110"
height="14"
aria-hidden="true"
role="presentation"
name="clippy"
Expand Down Expand Up @@ -127,28 +127,6 @@
nuget.exe push MyPackage.1.0.nupkg</pre>
</p>
</div>

<div id="overlayWrapper" title="Click to show API Key">
Your key is hidden for privacy, click to show.
</div>
</div>
}
</section>

@section BottomScripts {
<script>
$(function() {
$("#overlayWrapper").click(function() {
$("#overlayWrapper").fadeOut(function () {
// Show clippy!
// We hide clippy using width=0,height=0 because IE9 renders it above
// the overlay wrapper no matter what we do :(. IE9 only looks at the object tag though
// so we can avoid doing it on the embed for Chrome and Firefox.
$("#clippy, #clippy embed").attr('width', 110);
$("#clippy, #clippy embed").attr('height', 14);
});
return false;
});
});
</script>
}

0 comments on commit 45002a9

Please sign in to comment.