Difference between revisions of "MediaWiki:Bootstrap.rythm"
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
<!-- optional: Einbinden der Bootstrap-JavaScript-Plugins --> | <!-- optional: Einbinden der Bootstrap-JavaScript-Plugins --> | ||
<script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/bootstrap.min.js"></script> | <script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/bootstrap.min.js"></script> | ||
+ | <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-validator/0.4.5/js/bootstrapvalidator.min.js"></script> | ||
} | } | ||
</source> | </source> |
Revision as of 13:26, 4 November 2017
Rythm source
@// Rythm template for Boostrap initialization and header and footer
@def header(String lang,String title) {
<!doctype html>
<html lang="@(lang)">
<head>
<!-- https://de.wikipedia.org/wiki/Bootstrap_(Framework) -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@(title)</title>
}
@// initialize bootstrap
@def bootstrap() {
<!-- Einbinden des Bootstrap-Stylesheets -->
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- optional: Einbinden der jQuery-Bibliothek -->
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.4.min.js"></script>
<!-- optional: Einbinden der Bootstrap-JavaScript-Plugins -->
<script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-validator/0.4.5/js/bootstrapvalidator.min.js"></script>
}