GAS-Bootstrap

Twitter Bootstrap for Google Apps Script.

Update add new version bootstrap, 2.3.2. v2.3.3 is Experimental!


...
But Sorry, right now Chrome 29 does not work as SandboxMode.NATIVE.
GAS-Bootsrtap v2.3.3 needs SandboxMode.NATIVE.


It's based on Twitter Bootstrap 2.0.2 or 2.3.2.

If you want to see it as a stand alone web app, Please see this.
If you want to see this code, Please see this.
Library ID: MKvZneZcEte-sNijM1TaY_eMffa6w-w2J

How to use

Please see below.
on script.
var content = Bootstrap.getBootstrapContents(
    "http://dl.dropbox.com/u/29897928/glyphicons-halflings.png", 
    "http://dl.dropbox.com/u/29897928/glyphicons-halflings-white.png",
    Bootstrap.v2_0_1()
    ); //this args are icon image path. u can chage it your own. 
  
  var t = HtmlService.createTemplateFromFile("index");
  
  t.content = content;

on temlate html.
<head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <?!=content?>
...
</head>
<body>
    <div class="body">

Issue Tracker

If you find some problem, please tell me on Github Issues.

Caution

You should add <div class="body"> to <body> in template html of HtmlService,
the `.body` class is  instead of <body>. Because Caja does not allow adding event and setting styles to <body>.

Showcase

The first loading may take a long time...
If so,Please reload this page.



Comments