From 05b1eb588e8f4fd3154fd02f1ccca0e95b4b719e Mon Sep 17 00:00:00 2001 From: Otto Chrons Date: Thu, 28 Jan 2016 17:27:08 +0200 Subject: [PATCH] Moved badge generator to Libraries main page. --- _includes/badge-generator.html | 15 ++++++++------- libraries/index.md | 7 +++++++ libraries/libs.md | 8 -------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/_includes/badge-generator.html b/_includes/badge-generator.html index c19f8898..e3023d25 100644 --- a/_includes/badge-generator.html +++ b/_includes/badge-generator.html @@ -1,6 +1,6 @@
- +
@@ -19,7 +19,7 @@
- +
@@ -27,12 +27,13 @@
- +
+ class="clippy" width="13" src="{{ "/assets/img/clippy.svg" | prepend: site.baseurl }}"> +
@@ -43,8 +44,8 @@ var version = $("#version-sel").val(); var style = $("#style-sel").val(); $("#shield").attr("src", "/assets/badges/scalajs-"+version+".svg"); - var code = style == "Markdown" ? "[![Scala.js](http://scala-js.org/assets/badges/scalajs-"+version+".svg)](http://scala-js.org)" : - ''; + var code = style == "Markdown" ? "[![Scala.js](https://www.scala-js.org/assets/badges/scalajs-"+version+".svg)](https://www.scala-js.org)" : + ''; $("#shieldCode").val(code); $("#shieldCodeBtn").attr("data-clipboard-text", code); } diff --git a/libraries/index.md b/libraries/index.md index 4bdb73c4..ecadad97 100644 --- a/libraries/index.md +++ b/libraries/index.md @@ -17,3 +17,10 @@ Make sure your code starts correct and stays correct. ### [Project Skeletons](skeletons.html) Get started quickly. +### Add a Scala.js badge on your library site + +Show your true colors by adding a Scala.js badge on your site! Select the lowest Scala.js version your library is compatible with. + +{% include badge-generator.html %} + +Badge images generated with shields.io diff --git a/libraries/libs.md b/libraries/libs.md index 62c98701..8e2f6e6d 100644 --- a/libraries/libs.md +++ b/libraries/libs.md @@ -15,11 +15,3 @@ just click on the dependency clipboard button to get the relevant SBT dependency Additions and corrections to this section may be reported through [GitHub issues](https://github.com/scala-js/scala-js-website/issues). Please include Name, Url, Description and Dependency - -## Add a Scala.js shield on your library site - -Show your true colors by adding a Scala.js shield on your site! Select the lowest Scala.js version your library is compatible with. - -{% include badge-generator.html %} - -Shield images generated with shields.io