use cdnjs instead of netdna

This commit is contained in:
Athou
2013-04-21 10:46:30 +02:00
parent cb55865652
commit 74227c2fef
2 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ public class BootstrapReference extends UrlResourceReference {
public BootstrapReference() {
super(
Url.parse("https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"));
Url.parse("https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.0/bootstrap.min.js"));
}
@SuppressWarnings("unchecked")
@@ -29,9 +29,9 @@ public class BootstrapReference extends UrlResourceReference {
.asList(JavaScriptHeaderItem
.forReference(JQueryReference.INSTANCE),
CssHeaderItem.forReference(new UrlResourceReference(
Url.parse("https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.no-icons.min.css"))),
Url.parse("https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.0/css/bootstrap.no-icons.min.css"))),
CssHeaderItem.forReference(new UrlResourceReference(
Url.parse("https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-responsive.min.css"))));
Url.parse("https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.0/css/bootstrap-responsive.min.css"))));
}
public static void renderHead(final IHeaderResponse response) {

View File

@@ -13,7 +13,7 @@ public class FontAwesomeReference extends UrlResourceReference {
public FontAwesomeReference() {
super(
Url.parse("https://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css"));
Url.parse("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"));
}
public static void renderHead(final IHeaderResponse response) {