Difference between revisions of "MediaWiki:Bootstrap.rythm"

From BITPlan Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
= Rythm source =
 
<source lang='html'>
 
<source lang='html'>
 
@// Rythm template for Boostrap initialization
 
@// Rythm template for Boostrap initialization
 +
@def header(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
 
@// initialize bootstrap
 
@def bootstrap() {
 
@def bootstrap() {

Revision as of 15:09, 3 November 2017

Rythm source

@// Rythm template for Boostrap initialization
@def header(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>
}