File: example.ace

package info (click to toggle)
golang-github-yosssi-ace 0.0.4%2Bgit20160102.51.71afeb7-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 468 kB
  • ctags: 249
  • sloc: makefile: 3; sh: 1
file content (38 lines) | stat: -rw-r--r-- 1,146 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
= doctype html
html lang=en
  head
    meta charset=utf-8
    title External CSS and JS

    link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"

  body
    div.container
      h1.
        External CSS and JS

      div.row
        div.col-xs-12
          label
            input#completed-css disabled="disabled" type="checkbox"
            span Load CSS from external source
      div.row
        div.col-xs-12
          label
            input#completed-js disabled="disabled" type="checkbox"
            span Load JS from external source

    script src="http://code.jquery.com/jquery-2.1.4.min.js" type="text/javascript"

    = javascript
      // verification that we are using downloaded javascript
      window.onload = function() {
        if (jQuery !== undefined) {
          document.getElementById("completed-js").checked = true;
        }
        for (var i = 0; i < document.styleSheets.length; ++i) {
          if (document.styleSheets[i].href.indexOf("bootstrap.min.css") !== -1) {
            document.getElementById("completed-css").checked = true;
          }
        }
      };