https://github.com/prabirshrestha/nuget-button
javascript helper for generating nuget button
https://github.com/prabirshrestha/nuget-button
Last synced: about 2 months ago
JSON representation
javascript helper for generating nuget button
- Host: GitHub
- URL: https://github.com/prabirshrestha/nuget-button
- Owner: prabirshrestha
- Created: 2011-08-23T22:39:19.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-09-05T07:46:08.000Z (almost 14 years ago)
- Last Synced: 2025-02-07T19:35:02.276Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NuGet Button
Javascript helper for generating nuget.org style Install-Package buttons.## Usage
###Add the following javascript code just before the end of the body tag.
(function () {
var nb = document.createElement('script'); nb.type = 'text/javascript'; nb.async = true;
nb.src = 'http://s.prabir.me/nuget-button/0.2.1/nuget-button.min.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(nb, s);
})();
###Then add the following html code to get the nuget button rendered.
#### Full Stretch with link (default)
Install-Package Facebook#### Full Stretch with link disabled (same as seen in nuget.org)
Install-Package AzureToolkit#### Fixed Width
Install-Package SimpleJson#### Minimal Required Width
Install-Package FluentHttp.Core#### Custom size with minimal required width
Install-Package FluentHttp.Core### Redirect to custom link
Install-Package Facebook# License
Copyright 2011, Prabir ShresthaDual licensed under the MIT or GPL Version 2 licenses.